Replace zeropage variable with standard tmp variable.
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
.include "osic1p.inc"
|
||||
.include "extzp.inc"
|
||||
.include "zeropage.inc"
|
||||
|
||||
; Input routine from 65V PROM MONITOR, show cursor if enabled
|
||||
_cgetc:
|
||||
@@ -13,7 +14,7 @@ _cgetc:
|
||||
beq nocursor
|
||||
ldy CURS_X
|
||||
lda (SCREEN_PTR),y ; fetch current character
|
||||
sta CURS_SAV ; save it
|
||||
sta tmp1 ; save it
|
||||
lda #$A1 ; full white square
|
||||
sta (SCREEN_PTR),y ; store at cursor position
|
||||
nocursor:
|
||||
@@ -21,7 +22,7 @@ nocursor:
|
||||
pha ; save retrieved character
|
||||
lda cursor ; was cursor on?
|
||||
beq nocursor2
|
||||
lda CURS_SAV ; fetch saved character
|
||||
lda tmp1 ; fetch saved character
|
||||
ldy CURS_X
|
||||
sta (SCREEN_PTR),y ; store at cursor position
|
||||
nocursor2:
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
|
||||
.globalzp CURS_X, CURS_Y, CURS_SAV, SCREEN_PTR
|
||||
.globalzp CURS_X, CURS_Y, SCREEN_PTR
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
|
||||
CURS_X: .byte 0
|
||||
CURS_Y: .byte 0
|
||||
CURS_SAV: .byte 0
|
||||
SCREEN_PTR: .res 2
|
||||
|
||||
; size 5
|
||||
; size 4
|
||||
; Adjust size of this segment in osic1p.cfg if the size changes
|
||||
|
||||
Reference in New Issue
Block a user