-=> Quoting Chris Berkhout to All <=-
CB> With this code:
CB> mov ah,b[var]
CB> mov al,b[var+1]
CB> var dw 0102Fh
CB> AX = 0102Fh, but with this:
CB> mov ax,w[var]
CB> var dw 0102Fh
CB> AX = 0201h, aren't they meant to do the same thing ?
No. A multiple byte value is stored "backwards". This is:
The Low Byte before the High Byte. If you are reading memory
containing 10h 2Fh then if you read it as a word, it'll result
as 02F10h.
Try it with a double word..
Octavio Alvarez Piza, 1:202/707.1 & 4:972/4 ** Internet: alvarezp@telnor.net
--- GEcho/32 1.20/Pro
---------------
* Origin: =+> MEXICAN_LINK ECO <+= Informes en 1:202/707 (4:972/4)
|