TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: CHRIS BERKHOUT
from: OCTAVIO ALVAREZ PIZA
date: 1997-12-24 04:10:00
subject: Moving things in ASM

 -=> 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.