<sect>Memory layout<p>
cc65 generated programs with the default setup run with the I/O area and the
-kernal ROM enabled. The BASIC ROM is disabled, which gives a usable memory
-range of $0800 - $CFFF. This means that kernal entry points may
-be called directly, but using the BASIC ROM is not possible without additional
-code.
+kernal ROM enabled (memory under the kernal may be used for graphics or as
+extended memory - see the sections about graphics and extended memory
+drivers). The BASIC ROM is disabled, which gives a usable memory range of
+$0800 - $CFFF. This means that kernal entry points may be called
+directly, but using the BASIC ROM is not possible without additional code.
Special locations:
<tag/Stack/
The C runtime stack is located at $CFFF and growing downwards.
+
+ <tag/Heap/
+ The C heap is located at the end of the program and grows towards the C
+ runtime stack.
+
</descrip><p>
<descrip>
+ <tag><tt/c64-hitjoy.joy/</tag>
+ Driver for the Digital Excess & Hitmen adapter. See
+ <htmlurl url="http://www.digitalexcess.de/downloads/productions.php"
+ name="http://www.digitalexcess.de/downloads/productions.php"> on
+ instructions how to build one. Up to four joysticks are supported.
+
+ <tag><tt/c64-ptvjoy.joy/</tag>
+ Driver for the Protovision 4-player adapter. See
+ <htmlurl url="http://www.protovision-online.de/hardw/hardwstart.htm"
+ name="http://www.protovision-online.de/hardw/hardwstart.htm"> for prices
+ and building instructions. Up to four joysticks are supported.
+
<tag><tt/c64-stdjoy.joy/</tag>
Supports up to two standard joysticks connected to the joysticks port of
the C64.
<sect>Other hints<p>
+<sect1>Passing arguments to the program<p>
+
+Command line arguments can be passed to <tt/main()/. Since this is not
+supported by BASIC, the following syntax was choosen:
+
+<tscreen><verb>
+ RUN:REM,ARG1," ARG2", ARG 3,, ARG5, ...
+</verb></tscreen>
+
+<enum>
+<item>Arguments are separated by commas.
+<item>There must be a comma after the first <tt/REM/.
+<item>Leading spaces are ignored; trailing spaces are included unless the
+ argument was quoted.
+<item>The first argument passed to <tt/main/ is the program name.
+</enum>