]> git.sur5r.net Git - cc65/blobdiff - doc/apple2.sgml
Small fixes by Greg King
[cc65] / doc / apple2.sgml
index 017a2bf096f18e2e8fba0284de31a56efda098d6..e74408609dc319ba6327090630b2ab7ad46f9c05 100644 (file)
@@ -61,7 +61,7 @@ program generated by the linker for the Apple ][ target.
 <sect>Memory layout<p>
 
 In the standard setup, cc65 generated programs use the memory from
-&dollar;800 to &dollar;9600, so 35.5K of memory is available. ROM calls are
+&dollar;800 to &dollar;95FF, so 35.5K of memory are available. ROM calls are
 possible without further precautions.
 
 Special locations:
@@ -91,6 +91,7 @@ the <htmlurl url="funcref.html" name="function reference"> for declaration and
 usage.
 
 <itemize>
+<item>_dos_type
 <item>get_ostype
 </itemize>
 
@@ -210,19 +211,21 @@ following functions (and a few others):
 
 <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:
+Command line arguments can be passed to <tt/main()/ after BLOAD. Since this is not
+supported by BASIC, the following syntax was chosen:
 
 <tscreen><verb>
-    CALL2048:REM,ARG1," ARG2", ARG 3,, ARG5, ...
+]CALL2048:REM ARG1 " ARG2 IS QUOTED" ARG3 "" 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>Arguments are separated by spaces.
+<item>Arguments may be quoted.
+<item>Leading and trailing spaces around an argument are ignored. Spaces within
+      a quoted argument are allowed.
 <item>The first argument passed to <tt/main/ is the program name.
+<item>A maximum number of 10 arguments (including the program name) are
+      supported.
 </enum>