From 5fe15ab61ae67edd2218bbd39cc0a83fb35d1b34 Mon Sep 17 00:00:00 2001 From: cpg Date: Sun, 4 Sep 2005 19:00:40 +0000 Subject: [PATCH] fix missing LOWCODE and INIT in the text git-svn-id: svn://svn.cc65.org/cc65/trunk@3623 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/atari.sgml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 { -- 2.39.5