mirror of
https://github.com/cc65/cc65.git
synced 2024-11-12 07:07:19 +00:00
a86b97cc89
opened R: devices git-svn-id: svn://svn.cc65.org/cc65/trunk@1129 b7a2c559-68d2-44c3-8de9-860c34a00d81
22 lines
281 B
ArmAsm
22 lines
281 B
ArmAsm
;
|
|
; get a kbd char.
|
|
;
|
|
; char cgetc(void)
|
|
;
|
|
|
|
.include "atari.inc"
|
|
.export _cgetc
|
|
|
|
_cgetc:
|
|
jsr @1
|
|
ldx #0
|
|
rts
|
|
|
|
@1: lda KEYBDV+5
|
|
pha
|
|
lda KEYBDV+4
|
|
pha
|
|
lda #12
|
|
sta ICAX1Z ; fix problems with direct call to KEYBDV
|
|
rts
|