X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=libsrc%2Fatari%2Fcgetc.s;h=82b6cdd8e5e0bef570c92fca19936aac3ed186ec;hb=eab19873f3497658af7bf68c3519815811e7e096;hp=f64d97b3771cc153eba9c5d6135d20768775ff82;hpb=53dd513176425872128ef26031d00952ef7a0628;p=cc65 diff --git a/libsrc/atari/cgetc.s b/libsrc/atari/cgetc.s index f64d97b37..82b6cdd8e 100644 --- a/libsrc/atari/cgetc.s +++ b/libsrc/atari/cgetc.s @@ -8,10 +8,14 @@ .export _cgetc _cgetc: - lda KEYBDV+5 + 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 - ldx #0 - rts