]> git.sur5r.net Git - cc65/commitdiff
Apply "improved" cursor-off handling for native GEOS API too.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 25 Oct 2012 20:02:01 +0000 (20:02 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 25 Oct 2012 20:02:01 +0000 (20:02 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5876 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos-common/conio/cgetc.s
libsrc/geos-common/mousesprite/promptoff.s

index 94fd55ef024bcaa8097f276ab93b3f65e8f0f232..2c0f19a515563bd85967a92d26d24a8091f1709b 100644 (file)
@@ -7,7 +7,7 @@
 ; unsigned char cgetc (void);
 
            .export _cgetc
-           .import cursor
+           .import cursor, _PromptOff
            .importzp cursor_x, cursor_y
 
            .include "jumptab.inc"
@@ -33,15 +33,7 @@ L0:  jsr GetNextChar
        tax
        beq L0
        pha
-
-; from 'The Hitchhiker's Guide To GEOS'
-       php
-       sei
-       jsr PromptOff
-       lda #0
-       sta alphaFlag
-       plp
-
+       jsr _PromptOff
        pla
        ldx #0
        rts
index 741bb629bf60ab3135d59a45c5f689aaa4f59161..9b63b6672320d238222094d9137a419f770f03d9 100644 (file)
@@ -8,5 +8,14 @@
            .export _PromptOff
 
            .include "jumptab.inc"
+           .include "geossym.inc"
 
-_PromptOff     = PromptOff
+_PromptOff:
+; from 'The Hitchhiker's Guide To GEOS'
+       php
+       sei
+       jsr PromptOff
+       lda #0
+       sta alphaFlag
+       plp
+       rts