Информационный сервер для программистов: Исходники со всего света. Паскальные исходники со всего света
  Powered by Поисковый сервер Яndex: Найдется ВСЁ!
На Главную Исходники Форум Информер Страны мира
   Управление Памятью    >>    moves
   
 
 Moves 1.0 - 16-bit Move Transfers Unit for TP.   James H.LeMay 12.06.1988

Две процедуры для копирования блоков памяти (замена команды MOVE). Скорость копирования примерно в два раза выше, чем в TP.
Two routines to make 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.



2k 
 

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)