snes: updates to link script

More research turns up that the ROM is loaded to 40:0000 in HiROM mode,
and only mirrored in C0:0000
This commit is contained in:
Vince Weaver 2013-01-16 15:18:22 -05:00
parent 8d2a716d3f
commit 9522c3f533

View File

@ -8,7 +8,7 @@ MEMORY {
RAM: start = $7e2000, size = $e000, type = rw, define = yes;
STACK: start = $000000, size = $2000, type = rw, define = yes;
SRAM: start = $006000, size = $2000, type = rw, define = yes;
HIGHROM: start = $c00000, size = $10000, type = ro, file = %O, fill = yes, define = yes;
MOREROM: start = $400000, size = $10000, type = ro, file = %O, fill = yes, define = yes;
}
#------------------------------------------------------------------------------
#
@ -16,11 +16,12 @@ MEMORY {
SEGMENTS {
STARTUP: load = ROMST, type = ro, define = yes;
CARTINFO: load = ROMINFO, type = ro, define = yes;
RODATA: load = HIGHROM, type = ro, define = yes;
RODATA: load = ROMST, type = ro, define = yes;
DATA: load = ROMST, run = RAM,type = rw, define = yes;
BSS: load = RAM, type = bss, define = yes;
ZEROPAGE: load = ZP, type = zp;
CODE: load = ROMST, type = ro, define = yes;
HIGHROM: load = MOREROM, type = ro, define = yes;
}
#------------------------------------------------------------------------------
#