2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
.export print_a
|
|
|
|
.export print_cr
|
2009-03-08 10:18:59 +00:00
|
|
|
.export cls
|
|
|
|
.export beep
|
2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
.data
|
2009-03-21 06:40:53 +00:00
|
|
|
;use C64 Kernel ROM function to print a character to the screen
|
|
|
|
;inputs: A contains petscii value of character to print
|
|
|
|
;outputs: none
|
2009-01-22 01:27:03 +00:00
|
|
|
print_a = $ffd2
|
|
|
|
|
|
|
|
.code
|
|
|
|
|
2009-03-21 06:40:53 +00:00
|
|
|
;use C64 Kernel ROM function to move to a new line
|
|
|
|
;inputs: none
|
|
|
|
;outputs: none
|
2009-01-22 01:27:03 +00:00
|
|
|
print_cr:
|
|
|
|
lda #13
|
2009-03-08 10:18:59 +00:00
|
|
|
jmp print_a
|
2009-01-22 01:27:03 +00:00
|
|
|
|
2009-03-21 06:40:53 +00:00
|
|
|
;use C64 Kernel ROM function to clear the screen
|
|
|
|
;inputs: none
|
|
|
|
;outputs: none
|
2009-03-08 10:18:59 +00:00
|
|
|
cls:
|
|
|
|
lda #147 ; 'CLR/HOME'
|
|
|
|
jmp print_a
|
|
|
|
|
2009-03-21 06:40:53 +00:00
|
|
|
;currently does nothing (should make a 'beep noise')
|
|
|
|
;inputs: none
|
|
|
|
;outputs: none
|
2009-03-08 10:18:59 +00:00
|
|
|
beep:
|
|
|
|
rts
|