mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
3a5fbd34da
keypresses from the keypad. Includes sample program illustrating how to use them. Tested on real KIM-1 hardware.
22 lines
465 B
ArmAsm
22 lines
465 B
ArmAsm
;
|
|
; void __fastcall__ scandisplay(unsigned char left, unsigned char middle, unsigned char right);
|
|
;
|
|
|
|
.include "kim1.inc"
|
|
|
|
.import popa
|
|
|
|
.export _scandisplay
|
|
|
|
.proc _scandisplay
|
|
|
|
sta $F9 ; Rightmost display data
|
|
jsr popa
|
|
sta $FA ; Middle display data
|
|
jsr popa
|
|
sta $FB ; Leftmost display data
|
|
jsr SCANDS
|
|
rts
|
|
|
|
.endproc
|