Apply "improved" cursor-off handling for native GEOS API too.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5876 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc
2012-10-25 20:02:01 +00:00
parent ce47ebbbf4
commit 3aabd85bf4
2 changed files with 12 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
; unsigned char cgetc (void); ; unsigned char cgetc (void);
.export _cgetc .export _cgetc
.import cursor .import cursor, _PromptOff
.importzp cursor_x, cursor_y .importzp cursor_x, cursor_y
.include "jumptab.inc" .include "jumptab.inc"
@@ -33,15 +33,7 @@ L0: jsr GetNextChar
tax tax
beq L0 beq L0
pha pha
jsr _PromptOff
; from 'The Hitchhiker's Guide To GEOS'
php
sei
jsr PromptOff
lda #0
sta alphaFlag
plp
pla pla
ldx #0 ldx #0
rts rts

View File

@@ -8,5 +8,14 @@
.export _PromptOff .export _PromptOff
.include "jumptab.inc" .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