Re: A86: pppppppplllllllllllllllllllllease answer the simple question!
[Prev][Next][Index][Thread]
Re: A86: pppppppplllllllllllllllllllllease answer the simple question! :)
At 01:30 PM 4/14/98 -0500, you wrote:
>
>i mean like this:
>
>ld a,'X'
>ld (hl),a
>
>string:
> .db "STRING",0
>
>every time i try to put the character in a into (hl)+offset it doesnt work
>
You mean if you try to do this?
ld (hl+offset),a
cause the Z80 only lets you use an offset with ix and iy, you can't do that
with hl. I usually use ix if I want to do something like that, as I don't
think the calc uses it for anything. Or you can just use add, inc, etc, to
add the offset to hl.
--Joshua
References: