Re: A86: More beginner questions


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

Re: A86: More beginner questions




I'm sure there's a better way, but try this:

push de	; 11T -- remove if DE can be trashed
ld d,0		;  7T
ld e,a		;  7T
add hl,de	; 11T
pop de		; 10T -- as above

		; 25T with DE trashed, 46T with DE saved

BC can be used instead of DE, of course.  Hope this helps.

At 10:20 PM 5/11/98 EDT, you wrote:
>
>As I said before, I'm still a beginner.  How do I add the mem address that HL
>points to with the value in the accumulator, so that HL points to a new
>address?
>
>Like this:
>HL points to $9000
>and A has the value 200
>add them so that HL now points to $90C8
>
>??
>
>


// David Phillips
// mailto: electrum@tfs.net
// AIM: electrum32


References: