Set default start address to 0x300.
Make start address configurable via --start-addr.
This commit is contained in:
parent
3b379c10e4
commit
6edf57324e
2 changed files with 14 additions and 12 deletions
24
cfg/c1p.cfg
24
cfg/c1p.cfg
|
@ -1,9 +1,21 @@
|
||||||
|
FEATURES {
|
||||||
|
CONDES: type = constructor,
|
||||||
|
label = __CONSTRUCTOR_TABLE__,
|
||||||
|
count = __CONSTRUCTOR_COUNT__,
|
||||||
|
segment = INIT;
|
||||||
|
CONDES: type = destructor,
|
||||||
|
label = __DESTRUCTOR_TABLE__,
|
||||||
|
count = __DESTRUCTOR_COUNT__,
|
||||||
|
segment = RODATA;
|
||||||
|
STARTADDRESS: default = $0300;
|
||||||
|
}
|
||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
__STACKSIZE__: type = weak, value = $0400; # 1k stack
|
__STACKSIZE__: type = weak, value = $0400; # 1k stack
|
||||||
|
__HIMEM__: type = weak, value = $2000; # Presumed RAM end
|
||||||
}
|
}
|
||||||
MEMORY {
|
MEMORY {
|
||||||
ZP: file = "", define = yes, start = $0002, size = $001A;
|
ZP: file = "", define = yes, start = $0002, size = $001A;
|
||||||
RAM: file = %O, define = yes, start = $0400, size = $2000 - __STACKSIZE__;
|
RAM: file = %O, define = yes, start = %S, size = __HIMEM__ - __STACKSIZE__ - %S;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
STARTUP: load = RAM, type = ro;
|
STARTUP: load = RAM, type = ro;
|
||||||
|
@ -15,13 +27,3 @@ SEGMENTS {
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
BSS: load = RAM, type = bss, define = yes;
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
}
|
}
|
||||||
FEATURES {
|
|
||||||
CONDES: type = constructor,
|
|
||||||
label = __CONSTRUCTOR_TABLE__,
|
|
||||||
count = __CONSTRUCTOR_COUNT__,
|
|
||||||
segment = INIT;
|
|
||||||
CONDES: type = destructor,
|
|
||||||
label = __DESTRUCTOR_TABLE__,
|
|
||||||
count = __DESTRUCTOR_COUNT__,
|
|
||||||
segment = RODATA;
|
|
||||||
}
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ int main (int argc, char *argv[])
|
||||||
FILE *OutputFileFp = 0;
|
FILE *OutputFileFp = 0;
|
||||||
|
|
||||||
/* Initialize with default start address defined in c1p.cfg */
|
/* Initialize with default start address defined in c1p.cfg */
|
||||||
unsigned long StartAddr = 0x400;
|
unsigned long StartAddr = 0x300;
|
||||||
|
|
||||||
unsigned int I;
|
unsigned int I;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue