Board index » delphi » Move data in 32bit. (64bit)

Move data in 32bit. (64bit)

Anyone know how to move data on a pentium in 32 bit. I want
a procedure which is simular to Move (S,D,C); in TP.

- Helge Hannisdal

 

Re:Move data in 32bit. (64bit)


On 30 Jan 1996, Helge J. Hannisdal wrote:

Quote
> Anyone know how to move data on a pentium in 32 bit. I want
> a procedure which is simular to Move (S,D,C); in TP.

procedure MoveDWord (var src, dest; count : integer); assembler;

asm
  mov cx, count
  les di, dest
  mov dx, ds
  lds si, src
  db $66; rep movsw
  mov ds, dx
end;

Make sure you've got Word-Align Data turned on.

    ________________________________________________________________________
   / Joshua Shagam                    /    (Quantum Porcupine / Versatile) /
  / mailto:JSha...@nmsu.edu          /       http://web.nmsu.edu/~jshagam /
 / phone://1.505.645.3856/~joshua   /  for the Quantum Porcupine Archive /
/__________________________________/____________________________________/
  Stop the execution of King Louis XVI!  If you agree, copy these three
             lines to your .signature file and send funds to:
       Long Live the King, 207 Alumni Avenue, Las Cruces, NM 88003

Other Threads