TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: CHRIS BERKHOUT
from: BRIAN MCCLOUD
date: 1997-12-24 05:09:00
subject: Moving things in ASM

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 ?
You're forgetting about Intel byte order.  The most significant byte is 
tored
at the highest address.  If you're using a DW declaration, you really should
get the opposite, since it will be in memory as 2F 10
((Cloud))
MauveCloud@juno.com
 * OLX 2.2 * Chicken heads are the chief food of captive alligators.
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)

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™.