]> git.sur5r.net Git - cc65/commitdiff
fixed return paramter; setup ICAX1Z so the key routine isn't confused by
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 4 Dec 2001 01:04:20 +0000 (01:04 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 4 Dec 2001 01:04:20 +0000 (01:04 +0000)
opened R: devices

git-svn-id: svn://svn.cc65.org/cc65/trunk@1129 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/cgetc.s

index f64d97b3771cc153eba9c5d6135d20768775ff82..82b6cdd8e5e0bef570c92fca19936aac3ed186ec 100644 (file)
@@ -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