2009-01-22 01:27:03 +00:00
|
|
|
|
|
|
|
.export print_a
|
|
|
|
.export print_cr
|
|
|
|
.export cls
|
2009-02-01 03:29:44 +00:00
|
|
|
.export beep
|
2009-01-22 01:27:03 +00:00
|
|
|
.code
|
|
|
|
|
2009-03-21 06:40:53 +00:00
|
|
|
;
|
|
|
|
;use Apple 2 monitor ROM function to display 1 char
|
|
|
|
;inputs: A should be set to ASCII char to display
|
|
|
|
;outputs: none
|
2009-01-22 01:27:03 +00:00
|
|
|
print_a:
|
|
|
|
ora #$80 ;turn ASCII into Apple 2 screen codes
|
|
|
|
jmp $fdf0
|
|
|
|
|
|
|
|
|
2009-03-21 06:40:53 +00:00
|
|
|
;use Apple 2 monitor ROM function to move to new line
|
|
|
|
;inputs: none
|
|
|
|
;outputs: none
|
2009-01-22 01:27:03 +00:00
|
|
|
print_cr:
|
|
|
|
|
|
|
|
jmp $fd8e
|
|
|
|
|
|
|
|
|
2009-03-21 06:40:53 +00:00
|
|
|
;use Apple 2 monitor ROM function to move to clear the screen
|
|
|
|
;inputs: none
|
|
|
|
;outputs: none
|
2009-01-22 01:27:03 +00:00
|
|
|
cls:
|
|
|
|
jmp $fc58
|
2009-02-01 03:29:44 +00:00
|
|
|
|
2009-03-21 06:40:53 +00:00
|
|
|
;use Apple 2 monitor ROM function to move to make a 'beep' noise
|
|
|
|
;inputs: none
|
|
|
|
;outputs: none
|
2009-02-01 03:29:44 +00:00
|
|
|
beep:
|
|
|
|
jmp $fbdd
|