[A83] need help with lists!


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

[A83] need help with lists!




does anyone know how to use 16-bit numbers in a list? I mean like this:

list:
 .db 260,1000,350

and then I want to be able to read the list and put the first value into a memoryvariable like this:

player = savesscreen

 ld hl,list
 ld a,(hl)
 ld (player),a

well, this works for a 8-bit number but not for a 16-bit number because >a< is only a 8-bit register. I know I can't do like this: 

 ld hl,(list)
 ld de,(hl)
 ld (player),de

but how should I do this?

-thanks
alex

_________________________________________________________
FreeBox - The World's Finest Web Mail Solution
Get your own FREE email account at http://www.freebox.com




Follow-Ups: