[A83] Re: IX and IY Help


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

[A83] Re: IX and IY Help




At 23:50 2001-12-11, you wrote:
>I have heard that IX and IY can use offsets. I have no clue how to use them
>yet. Maybe someone could help me out a little bit. Can IX read a byte but not
>inside a byte boundary?? And write to it too?

No, the offset is counted in bytes.
the syntax is (IX+n)
that is, for example, if IX contains $4000 and you want to load the byte at 
$4004 in a, you use:

ld a,(IX+4)

///Olle





References: