50 cfgline0(
"STARTADDRESS: default = $1001;");
53 cfgline0(
"__LOADADDR__: type = import;");
56 cfgline0(
"ZP: file = \"\", start = $0002, size = $001A, define = yes;");
57 cfgline0(
"LOADADDR: file = %O, start = %S - 2, size = $0002;");
58 cfgline0(
"MAIN: file = %O, start = %S, size = $57FF - %S;");
62 cfgline3(
"RAM%3.3x: file = \"\", start = $%4.4x, size = $%4.4x;", actual->
id, (
unsigned short)actual->
start, (
unsigned short)(actual->
end - actual->
start) );
64 actual = actual->
next;
69 cfgline0(
"ZEROPAGE: load = ZP, type = zp, optional = yes;");
70 cfgline0(
"LOADADDR: load = LOADADDR, type = ro;");
71 cfgline0(
"EXEHDR: load = MAIN, type = ro, optional = yes;");
72 cfgline0(
"CODE: load = MAIN, type = rw;");
73 cfgline0(
"RODATA: load = MAIN, type = ro, optional = yes;");
74 cfgline0(
"DATA: load = MAIN, type = rw, optional = yes;");
75 cfgline0(
"BSS: load = MAIN, type = bss, optional = yes, define = yes;");
80 cfgline3(
"MA%3.3x: load = RAM%3.3x, type = overwrite, optional = yes, start = $%4.4x;", actual->
id, actual->
id, actual->
start);
82 cfgline2(
"MA%3.3x: load = MAIN, type = overwrite, optional = yes, start = $%4.4x;", actual->
id, actual->
start);
84 actual = actual->
next;
void linker_setup(Environment *_environment)
Emit tail of linker's configuration file lines.
void linker_cleanup(Environment *_environment)
Emit tail of linker's configuration file lines.
struct _MemoryArea * next
struct _Environment Environment
Structure of compilation environment.
struct _MemoryArea MemoryArea
#define cfgline2(s, a, b)
#define cfgline3(s, a, b, c)