]> git.sur5r.net Git - cc65/blobdiff - libsrc/atmos/cgetc.s
Dropped VER_PATCH (and VER_RC) and added build date.
[cc65] / libsrc / atmos / cgetc.s
index e6473471906357cccbc7fb57bc49c7e491ebce17..e13d143d2d86866dd4010f097fe8033f88205760 100644 (file)
@@ -1,15 +1,15 @@
 ;
-; Ullrich von Bassewitz, 2003-04-13
+; 2003-04-13, Ullrich von Bassewitz
+; 2013-07-26, Greg King
 ;
 ; char cgetc (void);
 ;
 
-       .export         _cgetc
+        .export         _cgetc
         .constructor    initcgetc
-       .import         cursor
-
-       .include        "atmos.inc"
+        .import         cursor
 
+        .include        "atmos.inc"
 
 
 ; ------------------------------------------------------------------------
@@ -41,8 +41,8 @@
 
 @L2:    and     #$7F            ; Mask out avail flag
         sta     KEYBUF
-        ldy     $209
-        cpy     #$A5
+        ldy     MODEKEY
+        cpy     #FUNCTKEY
         bne     @L3
         ora     #$80            ; FUNCT pressed