Dandaman955

Z80Delay?

Oct 24th, 2015
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ClearZ80RAM:
  2.                move.w  #$1FFF,d0                ; Load length of Z80 RAM.
  3.                 lea     ($A00000).l,a0           ; Load start of Z80 RAM.
  4. loc_1168:
  5.                moveq   #$F,d1                   ; TODO - probably a timing issue?
  6. loc_116a:
  7.                move.b  #0,(a0)                  ; Clear a byte of Z80 RAM.
  8.                 tst.b   (a0)                     ; Is it clear? TODO what?! (probably to do with delay)
  9.                 dbeq    d1,loc_116a              ; If it isn't, branch.
Advertisement
Add Comment
Please, Sign In to add comment