mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
3a5fbd34da
keypresses from the keypad. Includes sample program illustrating how to use them. Tested on real KIM-1 hardware.
19 lines
324 B
ArmAsm
19 lines
324 B
ArmAsm
;
|
|
; int __fastcall__ getkey();
|
|
;
|
|
|
|
.include "kim1.inc"
|
|
|
|
.import popa
|
|
|
|
.export _getkey
|
|
|
|
.proc _getkey
|
|
|
|
jsr KEYIN ; Open up keyboard channel
|
|
jsr GETKEY ; Get key code
|
|
ldx #0 ; MSB of return value is zero
|
|
rts
|
|
|
|
.endproc
|