Replace zeropage variable with standard tmp variable.

This commit is contained in:
Stephan Mühlstrasser
2015-02-12 21:29:19 +01:00
parent b1169cbb23
commit 94f83ea439
4 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ SYMBOLS {
} }
MEMORY { MEMORY {
# for size of ZP see runtime/zeropage.s and c1p/extzp.s # for size of ZP see runtime/zeropage.s and c1p/extzp.s
ZP: file = "", define = yes, start = $0002, size = $001A + $0005; ZP: file = "", define = yes, start = $0002, size = $001A + $0004;
RAM: file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S; RAM: file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
} }
SEGMENTS { SEGMENTS {

View File

@@ -6,6 +6,7 @@
.include "osic1p.inc" .include "osic1p.inc"
.include "extzp.inc" .include "extzp.inc"
.include "zeropage.inc"
; Input routine from 65V PROM MONITOR, show cursor if enabled ; Input routine from 65V PROM MONITOR, show cursor if enabled
_cgetc: _cgetc:
@@ -13,7 +14,7 @@ _cgetc:
beq nocursor beq nocursor
ldy CURS_X ldy CURS_X
lda (SCREEN_PTR),y ; fetch current character lda (SCREEN_PTR),y ; fetch current character
sta CURS_SAV ; save it sta tmp1 ; save it
lda #$A1 ; full white square lda #$A1 ; full white square
sta (SCREEN_PTR),y ; store at cursor position sta (SCREEN_PTR),y ; store at cursor position
nocursor: nocursor:
@@ -21,7 +22,7 @@ nocursor:
pha ; save retrieved character pha ; save retrieved character
lda cursor ; was cursor on? lda cursor ; was cursor on?
beq nocursor2 beq nocursor2
lda CURS_SAV ; fetch saved character lda tmp1 ; fetch saved character
ldy CURS_X ldy CURS_X
sta (SCREEN_PTR),y ; store at cursor position sta (SCREEN_PTR),y ; store at cursor position
nocursor2: nocursor2:

View File

@@ -4,4 +4,4 @@
; ------------------------------------------------------------------------ ; ------------------------------------------------------------------------
.globalzp CURS_X, CURS_Y, CURS_SAV, SCREEN_PTR .globalzp CURS_X, CURS_Y, SCREEN_PTR

View File

@@ -13,8 +13,7 @@
CURS_X: .byte 0 CURS_X: .byte 0
CURS_Y: .byte 0 CURS_Y: .byte 0
CURS_SAV: .byte 0
SCREEN_PTR: .res 2 SCREEN_PTR: .res 2
; size 5 ; size 4
; Adjust size of this segment in osic1p.cfg if the size changes ; Adjust size of this segment in osic1p.cfg if the size changes