Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Moves the print cursor, clipping x and y to visible screen
- ; @param a New X position
- ; @param b New Y position
- PrintGotoXY:
- cp a, PRINT_MAX_X
- jr c, .setX
- ld a, PRINT_MAX_X
- .setX
- ld [PrintX], a
- ld a, b
- cp a, PRINT_MAX_Y
- jr c, .setY
- ld a, PRINT_MAX_Y
- .setY
- ld [PrintY], a
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement