Advertisement
Guest User

Printputc v3.2

a guest
Apr 29th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Printputc
  2. ; c == character to print
  3. Printputc:
  4.     ld a, [PrintY]
  5.     ; Multiplies y coordinate by 32
  6.     swap a
  7.     rlca
  8.     ld l, a
  9.     and %00000011
  10.     add a, HIGH(_SCRN0)
  11.     ld h, a
  12.     ld a, l
  13.     and %11100000
  14.     ld l, a
  15.     ld a, [PrintX]
  16.     add a, l
  17.     ld l, a
  18.  
  19.     ld [hl], c
  20.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement