Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Start:  ; Screen size 32(Y) * 24(X) characters.
  2.  
  3. ; Print numbers using the ‘line number’ ROM routine
  4. ; Screen size = 32(X) * 24(Y) characters
  5.     ld a, 22    ; Ctrl character for 'print at'
  6.     rst 16      ; Send it to the screen
  7.     ld a, 12    ; X coordinate
  8.     rst 16      ; Send it to the screen
  9.     ld a, 12    ; Y coordinate
  10.     rst 16      ; Send it to the screen
  11.     ld bc, 50   ; Number to print
  12.     call 6683   ; Use the 'line number' routine in ROM 
  13.  
  14. ; Print numbers using the ‘stack bc’ & the
  15. ; ‘Top of calculator stack’ ROM routines
  16.  
  17.     ld a, 22    ; Ctrl character for 'print at'.
  18.     rst 16      ; Send it to the screen.
  19.     ld a, 12    ; X coordinate.
  20.     rst 16      ; Send it to the screen.
  21.     ld a, 16    ; Y coordinate.
  22.     rst 16      ; Send it to the screen.
  23.     ld bc, 100  ; Number to print
  24.     call 11563      ; Use the 'stack bc' routine in ROM
  25.             ; to put the contents of bc on the stack.
  26.     call 11747      ; Display top of calculator stack.
  27.  
  28.  
  29. quit:   jp quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement