copy

The copy command copies a specified number of bytes from one location in memory to another.

Format

The format of the copy command is:
copy from to size

where:
 
from  declares the source address location. 
to  declares the target address location. 
size  is the size of the block of memory to be copied. This quantity is specified in bytes. 

Functional Description

The copy command replicates a specified number of bytes from one place in memory to another.

If to is less than from, copying is performed in ascending order starting at from. If from is less than to, copying is performed in descending order starting at from + size.

When moving a data block down, the source data is copied from the bottom of the block upwards: and when moving a data block up, the source data is copied from the top of the block downwards. By this technique, there is no risk of copying over data in overlapping block move operations; as the data in the overlapping area is copied first.

Examples

See Also



Navigation: Document Home | Document Contents | Document Index