6Dh UT$CPYB copy a memory block
Input X register - Address of source buffer.
D register - Address of destination buffer.
UTW_S0 - Number of bytes to be copied.
Output - none -
Description Copies the buffer of length UTW_S0 at X to the buffer at D.

The two buffers can overlap in any way required. There may seem to be a difficulty when they overlap, since simply copying in ascending order could then result in some source bytes being over-written before being copied. To deal with this, if the source address is greater than the destination address the bytes are copied in ascending order, and otherwise in descending order.

The rate of copying large blocks of data is 81K per second.

If UTW_S0=0 or if X=D, the routine does nothing.

Errors - none -