]> git.sur5r.net Git - cc65/blobdiff - doc/c64.sgml
Fixed several address size issues
[cc65] / doc / c64.sgml
index c89fb3c9809f61407957f5f9a2ef80be7e2fcb22..fc71e5cb17dbdc2a234522af8551ebe3f7f26017 100644 (file)
@@ -41,10 +41,11 @@ config.
 <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 &dollar;0800 - &dollar;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
+&dollar;0800 - &dollar;CFFF. This means that kernal entry points may be called
+directly, but using the BASIC ROM is not possible without additional code.
 
 Special locations:
 
@@ -54,6 +55,11 @@ Special locations:
 
   <tag/Stack/
   The C runtime stack is located at &dollar;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>
 
 
@@ -189,6 +195,18 @@ setup without any memory loss or need for a changed configuration.
 
 <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.
@@ -217,6 +235,22 @@ does not exist).
 
 <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>