diff --git a/cfg/geos-c-da.cfg b/cfg/geos-c-da.cfg new file mode 100644 index 000000000..a11b637a7 --- /dev/null +++ b/cfg/geos-c-da.cfg @@ -0,0 +1,49 @@ +FEATURES { + STARTADDRESS: default = $1000; +} +SYMBOLS { + __BACKBUFSIZE__: type = weak, value = $2000; + __STACKSIZE__: type = weak, value = $0400; # 1k stack + __STACKADDR__: type = weak, value = __VLIR0_LAST__; + __SAVEDZPADDR__: type = weak, value = __STACKADDR__ + __STACKSIZE__; + __HIMEM__: type = weak, value = __SAVEDZPADDR__ + __ZP_SIZE__; + __VLIR0_BLOCKS__: type = export, value = ((__VLIR0_LAST__ - __VLIR0_START__ - __BSS_SIZE__) + 253) / 254; +} +MEMORY { + CVT: file = %O, start = $0, size = $40000; + ZP: define = yes, start = $58, size = $1A + $06; + + VLIR0: define = yes, start = %S, size = ($6000 - %S) - __STACKSIZE__ - __ZP_SIZE__; + SAVEDZP: define = yes, start = __SAVEDZPADDR__, size = __ZP_SIZE__; +} +SEGMENTS { + ZEROPAGE: type = zp, load = ZP; + EXTZP: type = zp, load = ZP, optional = yes; + DIRENTRY: type = ro, load = CVT, align = $FE; + FILEINFO: type = ro, load = CVT, align = $FE; + RECORDS: type = ro, load = CVT, align = $FE, optional = yes; + STARTUP: type = ro, run = VLIR0, load = CVT, align_load = $FE, define = yes; + LOWCODE: type = ro, run = VLIR0, load = CVT, optional = yes; + ONCE: type = ro, run = VLIR0, load = CVT, optional = yes; + CODE: type = ro, run = VLIR0, load = CVT; + RODATA: type = ro, run = VLIR0, load = CVT; + DATA: type = rw, run = VLIR0, load = CVT; + INIT: type = bss, load = VLIR0, optional = yes; + BSS: type = bss, load = VLIR0, define = yes; + SAVEDZP: type = bss, load = SAVEDZP; +} +FEATURES { + CONDES: type = constructor, + label = __CONSTRUCTOR_TABLE__, + count = __CONSTRUCTOR_COUNT__, + segment = ONCE; + CONDES: type = destructor, + label = __DESTRUCTOR_TABLE__, + count = __DESTRUCTOR_COUNT__, + segment = RODATA; + CONDES: type = interruptor, + label = __INTERRUPTOR_TABLE__, + count = __INTERRUPTOR_COUNT__, + segment = RODATA, + import = __CALLIRQ__; +} diff --git a/doc/grc65.sgml b/doc/grc65.sgml index d256c31e6..2ab88f7f5 100644 --- a/doc/grc65.sgml +++ b/doc/grc65.sgml @@ -24,8 +24,9 @@ Optional resources might be menu definitions, other headers (e.g., for data files of an app.), dialog definitions, etc. Without an application's header, GEOS is unable to load and start it. -Currently, "dosname" "classname" "version" { } The header definition describes the GEOS header sector which is unique to each file. The definition starts with the keyword Building desk accessories