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