diff --git a/doc/atari.sgml b/doc/atari.sgml index 646694d30..1d0dd4beb 100644 --- a/doc/atari.sgml +++ b/doc/atari.sgml @@ -7,7 +7,7 @@ url="mailto:shawnjefferson@24fightingchickens.com" name="shawnjefferson@24fightingchickens.com"> and Christian Groessler, -03-Sep-2005 +04-Sep-2005 An overview over the Atari runtime system as it is implemented for the cc65 C @@ -289,7 +289,8 @@ segments should go above $7FFF.

The main problem is that the EXE header generated by the cc65 runtine lib is wrong. It defines a single load chunk with the sizes/addresses -of the CODE, RODATA, and DATA segments (the whole user program). +of the LOWCODE, INIT, CODE, RODATA, and DATA segments (the whole user +program).

The contents of the EXE header come from the EXEHDR segment, which is defined in crt0.s. This cannot be changed w/o modifiying and @@ -390,8 +391,8 @@ cl65 -t atari -C split.cfg -o prog.com prog.c split.s Low data and high code example

-Goal: Put RODATA and DATA into low memory and CODE with BSS into high -memory (split2.cfg): +Goal: Put RODATA and DATA into low memory and LOWCODE, INIT, CODE, BSS +into high memory (split2.cfg): MEMORY {