Dandaman955

Like this?

May 19th, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RunObject:
  2.                lea     ($FF1000).l,a0              ; Load start of object RAM.
  3.                 moveq   #$40,d0                     ; Test $1000 bytes (or $40 objects).
  4.                 tst.l   (a0)                        ; Is there an object pointer in the first slot?
  5.                 beq.s   RO_Ret                      ; If not, branch.
  6. @hoop
  7.                 jsr     (a0)                        ; Run object's code.
  8.                 lea     $40(a0),a0                  ; Check next object.
  9.                 tst.l   (a0)                        ; Is there a pointer in it?
  10.                 dbeq    @hoop                       ; If there is, loop until there isn't.
  11. RO_Ret:
  12.                rts                                 ; Return.
Advertisement
Add Comment
Please, Sign In to add comment