Moves.pas - Unit for 16-bit move transfers
ver 1.0, 07-12-88
Makes a copy of one array of bytes to another. Overlapping is
accounted for for. Both routines are about twice as fast the
original TP move, because 16-bit transfers are used in lieu of
the 8-bit.
Move16 - replacement for TP move;
Move16 is a suitable replacement for TP move and is only 11 bytes
more. Just like TP move, it is used for INTRAsegment moves,
twice as fast.
Move16n - for intersegment moves which normalizes the pointers
first. It is is needed for special applications for Pointers
such as the heap when you need to make absolutely sure there is
no overlap. It is used for either INTER- or INTRA-segment moves.
The "n" stands for normalize which always makes the offset less
than 16. Because it normalizes the pointers, it takes a little
longer to get started.
The NumOfBytes at which these routine surpass the TP move routine
for speed is 6 and 56 bytes respectively, after which, both get
to be twice as fast.
Only 112 bytes of code for both procedures.
by James H. LeMay (CIS: 76011,217)
|