mirror of
https://github.com/cc65/cc65.git
synced 2024-10-30 12:28:25 +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
|