mirror of
https://github.com/cc65/cc65.git
synced 2025-02-11 15:30:52 +00:00
move ZPSAVE into area already saved by 2nd load chunk
This commit is contained in:
parent
79d150b626
commit
164fb56580
@ -26,13 +26,13 @@ MEMORY {
|
|||||||
|
|
||||||
# "main program" load chunk
|
# "main program" load chunk
|
||||||
MAINHDR: file = %O, start = $0000, size = $0004;
|
MAINHDR: file = %O, start = $0000, size = $0004;
|
||||||
RAM: file = %O, start = %S + __SAVEAREA_SIZE__, size = $D000 - __STACKSIZE__ - %S - __SAVEAREA_SIZE__;
|
RAM: file = %O, define = yes, start = %S + __SAVEAREA_SIZE__ + __ZPSAVE_SIZE__, size = $D000 - __STACKSIZE__ - %S - __SAVEAREA_SIZE__ - __ZPSAVE_SIZE__;
|
||||||
|
|
||||||
# address of relocated character generator
|
# address of relocated character generator
|
||||||
CHARGEN: file = "", define = yes, start = $D800, size = $0400;
|
CHARGEN: file = "", define = yes, start = $D800, size = $0400;
|
||||||
|
|
||||||
# memory beneath the ROM
|
# memory beneath the ROM
|
||||||
SHADOW_RAM: file = "", define = yes, start = $DC00, size = $FFF0 - $DC00;
|
RAM_BELOW_ROM: file = "", start = $DC00, size = $FFF0 - $DC00;
|
||||||
|
|
||||||
# defines entry point into program
|
# defines entry point into program
|
||||||
TRAILER: file = %O, start = $0000, size = $0006;
|
TRAILER: file = %O, start = $0000, size = $0006;
|
||||||
@ -46,8 +46,9 @@ SEGMENTS {
|
|||||||
|
|
||||||
SRPREPHDR: load = SRPREPHDR, type = ro;
|
SRPREPHDR: load = SRPREPHDR, type = ro;
|
||||||
SAVEAREA: load = SRPREP, type = bss, define = yes; # shared btw. SRPREP and RAM
|
SAVEAREA: load = SRPREP, type = bss, define = yes; # shared btw. SRPREP and RAM
|
||||||
|
ZPSAVE: load = SRPREP, type = bss, define = yes;
|
||||||
SRPREP: load = SRPREP, type = rw, define = yes;
|
SRPREP: load = SRPREP, type = rw, define = yes;
|
||||||
SHADOW_RAM: load = SRPREP, run = SHADOW_RAM, type = rw, define = yes, optional = yes;
|
SHADOW_RAM: load = SRPREP, run = RAM_BELOW_ROM, type = rw, define = yes, optional = yes;
|
||||||
SRPREPTRL: load = SRPREPTRL, type = ro;
|
SRPREPTRL: load = SRPREPTRL, type = ro;
|
||||||
|
|
||||||
MAINHDR: load = MAINHDR, type = ro;
|
MAINHDR: load = MAINHDR, type = ro;
|
||||||
@ -57,7 +58,6 @@ SEGMENTS {
|
|||||||
CODE: load = RAM, type = ro, define = yes;
|
CODE: load = RAM, type = ro, define = yes;
|
||||||
RODATA: load = RAM, type = ro;
|
RODATA: load = RAM, type = ro;
|
||||||
DATA: load = RAM, type = rw;
|
DATA: load = RAM, type = rw;
|
||||||
ZPSAVE: load = RAM, type = bss, define = yes;
|
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
EXTZP: load = ZP, type = zp, optional = yes;
|
EXTZP: load = ZP, type = zp, optional = yes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user