From: Alan Cox Date: Fri, 16 Jan 2015 20:46:06 +0000 (+0000) Subject: tgl6502: Store the reference commonmem ROM copy right at the top of memory X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=dcd3eec13a2a84e8aa40704d48980f532ca64e34;p=FUZIX.git tgl6502: Store the reference commonmem ROM copy right at the top of memory This plus discard etc can live anywhere really so stick them right up the top so it's easier to see what our memory usage looks like --- diff --git a/Kernel/platform-tgl6502/ld65.cfg b/Kernel/platform-tgl6502/ld65.cfg index a18cf93b..d10e008d 100644 --- a/Kernel/platform-tgl6502/ld65.cfg +++ b/Kernel/platform-tgl6502/ld65.cfg @@ -2,21 +2,22 @@ MEMORY { RAMZ: start = $0000, size = $0100, type = rw, define = yes; RAM0: start = $0200, size = $1E00, type = rw, define = yes; RAM1: start = $2000, size = $2000, type = rw, define = yes; - ROM0: start = $4000, size = $C000, fill = yes; + ROM0: start = $4000, size = $B000, fill = yes; + ROM1: start = $F000, size = $1000, fill = yes; } SEGMENTS { ZEROPAGE: load = RAMZ, type = zp, define = yes; CODE: load = ROM0, type = ro; RODATA: load = ROM0, type = ro; - DISCARD: load = ROM0, type = ro; - DISCARDDATA: load = ROM0, type = ro; + DISCARD: load = ROM1, type = ro; + DISCARDDATA: load = ROM1, type = ro; DATA: load = ROM0, run = RAM1, type = rw, define = yes; BSS: load = RAM1, type = bss, define=yes; COMMONDATA: load = RAM0, type= bss; - COMMONMEM: load = ROM0, run = RAM0, type = rw, define = yes; - STUBS: load = ROM0, run = RAM0, type = ro; - VECTORS: load = ROM0, type = ro, start = $FFFA; + COMMONMEM: load = ROM1, run = RAM0, type = rw, define = yes; + STUBS: load = ROM1, run = RAM0, type = ro; + VECTORS: load = ROM1, type = ro, start = $FFFA; } FILES {