Advertisement
Guest User

hello.z80

a guest
Jul 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. org 64000
  2.      ld hl, 22625       ; load a memory address (screen attribute)
  3.      ld a, 17           ; repeating time for 17 vertical rows
  4. loop ld b,30            ; repeating time for 30 blocks row
  5. row  ld (hl),69         ; load attribute value (into address)
  6.      inc hl             ; increment address
  7.      djnz row           ; decrement jump if not zero (till 'b' reaches 0)
  8.      inc hl
  9.      inc hl             ; jump next row, col 1
  10.      dec a              ; decrement column counter
  11.      jr nz, loop        ; jump till all registers are not zero
  12.      ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement