Re: A83: Help with my rpg


[Next][Index][Thread]

Re: A83: Help with my rpg




>Oh and if anyone has any tutorials for reading a list(something like this:
>var:
>     .db 5,5,6
>and get the 3rd number )
>please tell me
>
>Thanks
>

Use the nice IX register for constant offsets:
ld ix,var
ld a,(ix+3)

Or use HL for variable offsets:  (this example gets element A, very crude)
ld hl,var
ld b,0
ld c,a
add hl,bc
ld a,(hl)
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.