]> git.sur5r.net Git - cc65/blobdiff - doc/plus4.sgml
Added note on the necessity of tab chars at the beginning of make command lines.
[cc65] / doc / plus4.sgml
index dcb62bd70f016735ffef8e4df448c8c2ab915a50..2fce4d86a5122f57fb67fcb54ca9956ad1b1a423 100644 (file)
@@ -180,14 +180,14 @@ does not exist).
 <descrip>
 
   <tag><tt/plus4-stdser.ser/</tag>
-  Driver for the 6551 ACIA chip built into the Plus/4 Supports up to 19200
+  Driver for the 6551 ACIA chip built into the Plus/4. Supports up to 19200
   baud, hardware flow control (RTS/CTS) and interrupt driven receives. Note
   that because of the peculiarities of the 6551 chip transmits are not
   interrupt driven, and the transceiver blocks if the receiver asserts flow
   control because of a full buffer.
 
-  Note that you need an adapter to use the builtin port, since the output
-  levels available at the user port don't follow the RS232 standard.
+  You need an adapter to use the builtin port, since the output levels
+  available at the user port don't follow the RS232 standard.
 
 </descrip><p>
 
@@ -201,7 +201,29 @@ does not exist).
 
 <sect1>Passing arguments to the program<p>
 
-Command line argument passing is currently not supported for the Plus/4.
+Command line arguments can be passed to <tt/main()/. Since this is not
+supported by BASIC, the following syntax was chosen:
+
+<tscreen><verb>
+    RUN:REM ARG1 " ARG2 IS QUOTED" ARG3 "" ARG5
+</verb></tscreen>
+
+<enum>
+<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>
+
+
+
+<sect1>Program return code<p>
+
+The program return code (low byte) is passed back to BASIC by use of the
+<tt/ST/ variable.
 
 
 <sect1>Interrupts<p>