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