}
MEMORY {
# 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;
}
SEGMENTS {
\r
.include "osic1p.inc"\r
.include "extzp.inc"\r
+ .include "zeropage.inc"\r
\r
; Input routine from 65V PROM MONITOR, show cursor if enabled\r
_cgetc:\r
beq nocursor\r
ldy CURS_X\r
lda (SCREEN_PTR),y ; fetch current character\r
- sta CURS_SAV ; save it\r
+ sta tmp1 ; save it\r
lda #$A1 ; full white square\r
sta (SCREEN_PTR),y ; store at cursor position\r
nocursor:\r
pha ; save retrieved character\r
lda cursor ; was cursor on?\r
beq nocursor2\r
- lda CURS_SAV ; fetch saved character\r
+ lda tmp1 ; fetch saved character\r
ldy CURS_X\r
sta (SCREEN_PTR),y ; store at cursor position\r
nocursor2:\r
; ------------------------------------------------------------------------
- .globalzp CURS_X, CURS_Y, CURS_SAV, SCREEN_PTR
+ .globalzp CURS_X, CURS_Y, SCREEN_PTR
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