A85: Re: Assembly-85 Digest V1 #481


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

A85: Re: Assembly-85 Digest V1 #481




try something like this:
address	=$8000

  ld b,5
loop:
  ld hl,address
  ld de,1
  add hl,de
  dnjz loop

In a message dated 1/26/99 6:00:21 PM Eastern Standard Time, owner-
assembly-85-digest@lists.ticalc.org writes:

<< Hey,
   I need to be able to access memory locations in a loop.
 How do I go about changing the location each time through the loop?
 For instance:
 
 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.
 
 Can anyone help with this? >>


Follow-Ups: