mirror of
https://github.com/cc65/cc65.git
synced 2024-11-16 02:10:52 +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.
20 lines
801 B
INI
20 lines
801 B
INI
# Configuration for assembler programs which don't need a special setup
|
|
|
|
FEATURES {
|
|
STARTADDRESS: default = $0803;
|
|
}
|
|
MEMORY {
|
|
ZP: file = "", start = $0000, size = $00FF;
|
|
HEADER: file = %O, start = %S - 4, size = $0004;
|
|
MAIN: file = %O, define = yes, start = %S, size = $C000 - %S;
|
|
BSS: file = "", start = __MAIN_LAST__, size = $C000 - __MAIN_LAST__;
|
|
}
|
|
SEGMENTS {
|
|
ZEROPAGE: load = ZP, type = zp, optional = yes;
|
|
EXEHDR: load = HEADER, 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 = BSS, type = bss, optional = yes, define = yes;
|
|
}
|