Re: A85: Programming question


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

Re: A85: Programming question



>I've got a question for all you gurus on this list.  It's for a game (not
>shell) that I'm programming.
>
>What's the best way of doing something like this:
>
>   ld c, (hl + a)
>
>In other words, I want to be able to have some sequence of statements in a
>loop where I could increment a and automatically be pointing to the next
>memory location.  Is something like this possible?

	ld e,a
	ld d,0
	add hl,de
	ld c, (hl)

-Zico Kolter




Follow-Ups: References: