Advertisement
Oldbitcollector

Text Display

Feb 4th, 2022
1,698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Set Cursor postion X,Y and print text.
  2.  
  3.  
  4. setcursor   = $e50c
  5. print       = $ab1e
  6.  
  7.     ldx #1          ; Select row
  8.     ldy #25         ; Select column
  9.     jsr setcursor   ; Set cursor
  10.  
  11.     lda #<prginfo   ; Load lo-byte of string adress
  12.     ldy #>prginfo   ; Load hi-byte of string adress
  13.     jsr print       ; Print Program Info   
  14.  
  15.  
  16. prginfo
  17. !byte $05
  18. !text "Program"
  19. !byte $0d
  20. !byte $99
  21. !text "                         "
  22. !text "by jeff ledger"
  23. !byte $0d, $0d, $9a
  24. !text "                         "
  25. !text "score"
  26. !byte $0d
  27.  
  28. !byte $00
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement