Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Start: ; Screen size 32(Y) * 24(X) characters.
- ; Print numbers using the ‘line number’ ROM routine
- ; Screen size = 32(X) * 24(Y) characters
- ld a, 22 ; Ctrl character for 'print at'
- rst 16 ; Send it to the screen
- ld a, 12 ; X coordinate
- rst 16 ; Send it to the screen
- ld a, 12 ; Y coordinate
- rst 16 ; Send it to the screen
- ld bc, 50 ; Number to print
- call 6683 ; Use the 'line number' routine in ROM
- ; Print numbers using the ‘stack bc’ & the
- ; ‘Top of calculator stack’ ROM routines
- ld a, 22 ; Ctrl character for 'print at'.
- rst 16 ; Send it to the screen.
- ld a, 12 ; X coordinate.
- rst 16 ; Send it to the screen.
- ld a, 16 ; Y coordinate.
- rst 16 ; Send it to the screen.
- ld bc, 100 ; Number to print
- call 11563 ; Use the 'stack bc' routine in ROM
- ; to put the contents of bc on the stack.
- call 11747 ; Display top of calculator stack.
- quit: jp quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement