6502-OS/programs/printer.s65

16 lines
239 B
Plaintext
Raw Permalink Normal View History

2023-12-08 22:56:35 +01:00
.include "printer.h65"
.include "lcd.h65"
.include "keypad.h65"
2023-11-11 12:13:47 +01:00
.code
2023-12-08 22:56:35 +01:00
.proc printer
jsr lcd::clear
2023-11-01 13:13:23 +01:00
@printer_loop:
2023-12-08 22:56:35 +01:00
jsr kp::read
2023-11-01 13:13:23 +01:00
beq @printer_loop
2023-10-26 19:51:20 +02:00
cmp #'*'
2023-12-08 00:02:22 +01:00
jeq home
2023-12-08 22:56:35 +01:00
jsr lcd::print_char
2023-11-01 13:13:23 +01:00
bra @printer_loop
2023-12-08 22:56:35 +01:00
.endproc