6502-OS/programs/keypad_printer.s65

21 lines
513 B
Plaintext
Raw Permalink Normal View History

2024-01-07 00:39:51 +01:00
.include "keypad_printer.h65"
2023-12-08 22:56:35 +01:00
.include "lcd.h65"
.include "keypad.h65"
2023-11-11 12:13:47 +01:00
.code
2024-08-08 20:15:50 +02:00
;;********************************************************************************
;; @brief Print characters to the display when a button was pressed
;; @ingroup applications
;;********************************************************************************
2024-01-07 00:39:51 +01:00
.proc keypad_printer
2023-12-08 22:56:35 +01:00
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