Added, to Plus4 and GEOS linker configure files, the ability to set the start and end addresses of the program region.
This commit is contained in:
parent
a4591138ec
commit
2959ade6e6
3 changed files with 24 additions and 12 deletions
|
@ -1,15 +1,19 @@
|
||||||
|
FEATURES {
|
||||||
|
STARTADDRESS: default = $4000;
|
||||||
|
}
|
||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
__BACKBUFSIZE__: type = weak, value = $2000;
|
__BACKBUFSIZE__: type = weak, value = $2000;
|
||||||
|
__HIMEM__: type = weak, value = $C000 - __BACKBUFSIZE__;
|
||||||
__OVERLAYSIZE__: type = weak, value = $0000;
|
__OVERLAYSIZE__: type = weak, value = $0000;
|
||||||
__OVERLAYADDR__: type = weak, value = $C000 - __BACKBUFSIZE__ - __OVERLAYSIZE__;
|
__OVERLAYADDR__: type = weak, value = __HIMEM__ - __OVERLAYSIZE__;
|
||||||
__STACKSIZE__: type = weak, value = $0400;
|
__STACKSIZE__: type = weak, value = $0400; # 1k stack
|
||||||
__STACKADDR__: type = weak, value = $2000 - __STACKSIZE__;
|
__STACKADDR__: type = weak, value = $2000 - __STACKSIZE__;
|
||||||
}
|
}
|
||||||
MEMORY {
|
MEMORY {
|
||||||
CVT: file = %O, start = $0, size = $20000;
|
CVT: file = %O, start = $0, size = $20000;
|
||||||
ZP: define = yes, start = $80, size = $1A + $06;
|
ZP: define = yes, start = $80, size = $1A + $06;
|
||||||
EXT: define = yes, start = $0C00, size = __STACKADDR__ - $0C00;
|
EXT: define = yes, start = $0C00, size = __STACKADDR__ - __EXT_START__;
|
||||||
VLIR0: define = yes, start = $4000, size = __OVERLAYADDR__ - $4000;
|
VLIR0: define = yes, start = %S, size = __OVERLAYADDR__ - %S;
|
||||||
VLIR1: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
VLIR1: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
||||||
VLIR2: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
VLIR2: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
||||||
VLIR3: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
VLIR3: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
||||||
|
|
|
@ -1,14 +1,18 @@
|
||||||
|
FEATURES {
|
||||||
|
STARTADDRESS: default = $0400;
|
||||||
|
}
|
||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
__BACKBUFSIZE__: type = weak, value = $2000;
|
__BACKBUFSIZE__: type = weak, value = $2000;
|
||||||
|
__HIMEM__: type = weak, value = $8000 - __BACKBUFSIZE__;
|
||||||
__OVERLAYSIZE__: type = weak, value = $0000;
|
__OVERLAYSIZE__: type = weak, value = $0000;
|
||||||
__OVERLAYADDR__: type = weak, value = $8000 - __BACKBUFSIZE__ - __OVERLAYSIZE__;
|
__OVERLAYADDR__: type = weak, value = __HIMEM__ - __OVERLAYSIZE__;
|
||||||
__STACKSIZE__: type = weak, value = $0400;
|
__STACKSIZE__: type = weak, value = $0400; # 1k stack
|
||||||
__STACKADDR__: type = weak, value = __OVERLAYADDR__ - __STACKSIZE__;
|
__STACKADDR__: type = weak, value = __OVERLAYADDR__ - __STACKSIZE__;
|
||||||
}
|
}
|
||||||
MEMORY {
|
MEMORY {
|
||||||
CVT: file = %O, start = $0, size = $40000;
|
CVT: file = %O, start = $0, size = $40000;
|
||||||
ZP: define = yes, start = $58, size = $1A + $06;
|
ZP: define = yes, start = $58, size = $1A + $06;
|
||||||
VLIR0: define = yes, start = $0400, size = __STACKADDR__ - $0400;
|
VLIR0: define = yes, start = %S, size = __STACKADDR__ - %S;
|
||||||
VLIR1: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
VLIR1: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
||||||
VLIR2: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
VLIR2: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
||||||
VLIR3: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
VLIR3: define = yes, start = __OVERLAYADDR__, size = __OVERLAYSIZE__;
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
|
FEATURES {
|
||||||
|
STARTADDRESS: default = $1001;
|
||||||
|
}
|
||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
__LOADADDR__: type = import;
|
__LOADADDR__: type = import;
|
||||||
__EXEHDR__: type = import;
|
__EXEHDR__: type = import;
|
||||||
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
||||||
|
__HIMEM__: type = weak, value = $FD00;
|
||||||
}
|
}
|
||||||
MEMORY {
|
MEMORY {
|
||||||
ZP: file = "", define = yes, start = $0002, size = $001A;
|
ZP: file = "", define = yes, start = $0002, size = $001A;
|
||||||
LOADADDR: file = %O, start = $0FFF, size = $0002;
|
LOADADDR: file = %O, start = %S - 2, size = $0002;
|
||||||
HEADER: file = %O, start = $1001, size = $000C;
|
HEADER: file = %O, define = yes, start = %S, size = $000D;
|
||||||
MAIN: file = %O, define = yes, start = $100D, size = $ECF3 - __STACKSIZE__;
|
MAIN: file = %O, define = yes, start = __HEADER_LAST__, size = __HIMEM__ - __MAIN_START__ - __STACKSIZE__;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
|
@ -15,8 +19,8 @@ SEGMENTS {
|
||||||
EXEHDR: load = HEADER, type = ro;
|
EXEHDR: load = HEADER, type = ro;
|
||||||
STARTUP: load = MAIN, type = ro;
|
STARTUP: load = MAIN, type = ro;
|
||||||
LOWCODE: load = MAIN, type = ro, optional = yes;
|
LOWCODE: load = MAIN, type = ro, optional = yes;
|
||||||
ONCE: load = MAIN, type = ro, optional = yes;
|
|
||||||
CODE: load = MAIN, type = ro;
|
CODE: load = MAIN, type = ro;
|
||||||
|
ONCE: load = MAIN, type = ro, optional = yes;
|
||||||
RODATA: load = MAIN, type = ro;
|
RODATA: load = MAIN, type = ro;
|
||||||
DATA: load = MAIN, type = rw;
|
DATA: load = MAIN, type = rw;
|
||||||
INIT: load = MAIN, type = bss;
|
INIT: load = MAIN, type = bss;
|
||||||
|
|
Loading…
Add table
Reference in a new issue