Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Printputc
- ; c == character to print
- Printputc:
- ld a, [PrintY]
- ; Multiplies y coordinate by 32
- swap a
- rlca
- ld l, a
- and %00000011
- ld h, a
- ld a, l
- and %11100000
- ld l, a
- ld a, [PrintX]
- ld e, a
- ld d, HIGH(_SCRN0)
- add hl, de
- ld [hl], c
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement