Re: A85: X-Sender: hbonner@pop.ttu.edu (Unverified)


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

Re: A85: X-Sender: hbonner@pop.ttu.edu (Unverified)




> location = $xxxx  ;location is an initial memory address
>  label:
>   ld a, x
>   ld (location),a
>   ; Somehow change location to next memory address
>  goto label: 
>   ; I know its an inf. loop but its just an example.

That was a little vague, but load hl with the address.

 ld hl,location
label:
 ld a,x
 ld (hl),a
 inc hl           ;Point to the address 1byte after location ($xxxx+1)
 goto label

Hope that helps. The more specific you are, the more we can help you :)

-------
NAME : Mikel Blanchard, of Macross Software
WEB   : http://members.xoom.com/CashOnly/Macross.html
EMAIL : cashonly@aol.com
ICQ     : 3033904 (CashOnly)