mirror of
https://github.com/cc65/cc65.git
synced 2024-11-03 10:07:02 +00:00
18 lines
212 B
ArmAsm
18 lines
212 B
ArmAsm
|
;
|
||
|
; get a kbd char.
|
||
|
;
|
||
|
; char cgetc(void)
|
||
|
;
|
||
|
|
||
|
.include "atari.inc"
|
||
|
.export _cgetc
|
||
|
|
||
|
_cgetc:
|
||
|
lda KEYBDV+5
|
||
|
pha
|
||
|
lda KEYBDV+4
|
||
|
pha
|
||
|
rts
|
||
|
ldx #0
|
||
|
rts
|