mirror of
https://github.com/cc65/cc65.git
synced 2024-08-17 19:29:12 +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
|