2009-06-21 09:30:11 +00:00
|
|
|
# CA65 config for a 16KB cart
|
|
|
|
|
|
|
|
MEMORY {
|
2009-08-24 10:20:21 +00:00
|
|
|
IP65ZP: start = $20, size = $13, type = rw, define = yes; #this cart replaces BASIC so ok to use that space
|
2009-06-21 09:30:11 +00:00
|
|
|
HEADER: start = $8000, size = $18, file = %O;
|
|
|
|
DEFAULTS: start = $8018, size = $1E, file = %O;
|
2009-09-27 10:32:03 +00:00
|
|
|
ROM: start = $8036, size = $3FCA, define = yes, file = %O;
|
2009-06-21 09:30:11 +00:00
|
|
|
RAM: start = $C010, size = $0fE0, define = yes;
|
2009-06-21 11:02:55 +00:00
|
|
|
RAM2: start = $0334, size = $CB, define = yes; #extra scratch area - Tape I/O buffer
|
2009-07-17 02:53:46 +00:00
|
|
|
RAM3: start = $0800, size = $7800, define = yes; #scratch area for apps embedded in cart to use
|
2009-06-21 09:30:11 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
SEGMENTS {
|
|
|
|
CARTRIDGE_HEADER: load = HEADER, type = ro;
|
|
|
|
IP65_DEFAULTS: load = DEFAULTS, type = ro;
|
|
|
|
CODE: load = ROM, type = ro;
|
|
|
|
RODATA: load = ROM, run=ROM, type = ro;
|
2009-08-20 10:06:33 +00:00
|
|
|
DATA: load = ROM, run = RAM, type = rw, define = yes;
|
|
|
|
SELF_MODIFIED_CODE: load = ROM, run = RAM2, type = rw, define = yes;
|
2009-06-21 11:02:55 +00:00
|
|
|
BSS: load = RAM, type = bss;
|
2009-07-17 02:53:46 +00:00
|
|
|
APP_SCRATCH: load = RAM3, type = bss;
|
2009-06-21 11:02:55 +00:00
|
|
|
TCP_VARS: load = RAM2, type = bss;
|
2009-06-21 09:30:11 +00:00
|
|
|
IP65ZP: load = IP65ZP, type = zp;
|
|
|
|
}
|