mirror of
https://github.com/cc65/cc65.git
synced 2024-11-12 07:07:19 +00:00
78dcb61cb8
- All segments but CODE are optional and CODE is R/W. Both together allow to "just" write code/data without ever explicitly using a segment. - Symbols are defined for the BSS. This allows to use/implement zerobss. - The ZP memory area isn't artificially limited.
21 lines
699 B
INI
21 lines
699 B
INI
FEATURES {
|
|
STARTADDRESS: default = $0801;
|
|
}
|
|
SYMBOLS {
|
|
__LOADADDR__: type = import;
|
|
}
|
|
MEMORY {
|
|
ZP: file = "", start = $0002, size = $00FE, define = yes;
|
|
LOADADDR: file = %O, start = %S - 2, size = $0002;
|
|
MAIN: file = %O, start = %S, size = $D000 - %S;
|
|
}
|
|
SEGMENTS {
|
|
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
|
LOADADDR: load = LOADADDR, type = ro;
|
|
EXEHDR: load = MAIN, type = ro, optional = yes;
|
|
CODE: load = MAIN, type = rw;
|
|
RODATA: load = MAIN, type = ro, optional = yes;
|
|
DATA: load = MAIN, type = rw, optional = yes;
|
|
BSS: load = MAIN, type = bss, optional = yes, define = yes;
|
|
}
|