A86: help with 16-bit vars


[Prev][Next][Index][Thread]

A86: help with 16-bit vars



Can anyone tell me how to load a 16-bit variable into af like this:
 
ld af,var
 
var:
    .db 0,0
 
I want it so that a contains the first byte and f contains the second byte.  Is that possible??  Also, why can't I say "ex a,f"??
Thanks,
--------------
Jbrett
tbarwick@esn.net
http://ww2.esn.net/~tbarwick
I just added a TI-86 page, Check it out!!!