RODATA: load = RAM, type = ro;
INIT: load = RAM, type = ro, define = yes, optional = yes;
DATA: load = RAM, type = rw;
- ZPSAVE: load = RAM, type = rw, define = yes;
+ ZPSAVE1: load = RAM, type = rw, define = yes;
+ ZPSAVE2: load = RAM, type = bss;
BSS: load = RAM, type = bss, define = yes;
}
FEATURES {
; Startup code for cc65 (Oric version)
;
; By Debrune Jérôme <jede@oric.org> and Ullrich von Bassewitz <uz@cc65.org>
-; 2014-11-09, Greg King
+; 2015-01-08, Greg King
;
.export _exit
jsr zerobss
-; Unprotect screen columns 0 and 1.
+; Currently, color isn't supported on the text screen.
+; Unprotect screen columns 0 and 1 (where each line's color codes would sit).
lda STATUS
sta stsave
; ------------------------------------------------------------------------
-.segment "ZPSAVE"
+.segment "ZPSAVE1"
zpsave:
.byte 0
+.segment "ZPSAVE2"
+
.res zpspace - 1
; ------------------------------------------------------------------------
;
; Based on code by Debrune Jérôme <jede@oric.org>
-; 2013-08-15, Greg King
+; 2015-01-08, Greg King
;
; The following symbol is used by the linker config. file
.export __TAPEHDR__:abs = 1
; These symbols, also, come from the configuration file.
- .import __BASHDR_LOAD__, __ZPSAVE_LOAD__, __AUTORUN__, __PROGFLAG__
+ .import __BASHDR_LOAD__, __ZPSAVE1_LOAD__, __AUTORUN__, __PROGFLAG__
; ------------------------------------------------------------------------
.byte $00 ; $2AF
.byte <__PROGFLAG__ ; $2AE Language flag ($00=BASIC, $80=machine code)
.byte <__AUTORUN__ ; $2AD Auto-run flag ($C7=run, $00=only load)
- .dbyt __ZPSAVE_LOAD__ ; $2AB Address of end of file
+ .dbyt __ZPSAVE1_LOAD__ ;$2AB Address of end of file
.dbyt __BASHDR_LOAD__ ; $2A9 Address of start of file
.byte $00 ; $2A8