16 bit Assembly

Home   Feedback   Site Map   Instruction Index  


16bit Memory Code

Clearing or Setting a Block of Memory

There will be times when you need to set the contents of a memory block to a default value.

The following code peforms this action quickly.

Moving a Block of Memory

This routine is about as fast as it gets in 16bit. It you want to move a null rerminate string without knowing its length use the string routine that follows.

It will also copy to and from other segments if you set the segment pointers before calling.

Moving a String in Memory

This routine is about as fast as it gets in 16bit. It you want to move a null rerminate string without knowing its length use the string routine that follows.

The routine can also be used to copy the left part of a string, in which case you must remember to add a NULL at the end.




Last Update 27/12/2022