Board index » delphi » 32 bit ops in 16 bit real mode TP

32 bit ops in 16 bit real mode TP

 db $66,$b8,$01,$02,$03,$04     -  mov EAX, $04030201
 db $f3                         -  rep
 db $66,$ab                     -  STOSD

 db $66,$a5                     -  MOVSD  : can be used with rep prefix too ...

   Glad to help,

             Simon Arbib, in the UK

 

Re:32 bit ops in 16 bit real mode TP


In article <4hphc1$...@mimas.brunel.ac.uk>,
Simon Joseph Arbib  <cb93...@brunel.ac.uk> wrote:

Quote

> db $66,$b8,$01,$02,$03,$04     -  mov EAX, $04030201
> db $f3                         -  rep
> db $66,$ab                     -  STOSD

You can do the following (which is slightly easier to read):

db 66h; mov ax,$5678 ; dw $1234  - mov eax,$12345678. Note the high word first
db 66h; rep movsw                - rep movsd

Quote
> db $66,$a5                     -  MOVSD  : can be used with rep prefix too ...

db 66h; movsw                    -  movsd

--TCA of NewOrder  |  iuzzo...@nmia.com  |  http://www.nmt.edu/~surface
Project WallyWorld:  Anyone feel up to doing some graphics?

Other Threads