X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2Fplus4.sgml;h=2fce4d86a5122f57fb67fcb54ca9956ad1b1a423;hb=d3ac0849973fd40751339151a2b6ef8f950b560d;hp=712afbabe31c588fe152bead427f54bd97c123ea;hpb=59d89796d50f2eec8148e57b0da16d406c6eed84;p=cc65 diff --git a/doc/plus4.sgml b/doc/plus4.sgml index 712afbabe..2fce4d86a 100644 --- a/doc/plus4.sgml +++ b/doc/plus4.sgml @@ -31,8 +31,8 @@ information. Since the Plus/4 and the Commodore 16/116 are almost identical (the latter are missing the 6551 ACIA and do only have 16KB of memory), the is also worth a look. The difference -between both targets is that the Plus/4 runtime uses banking to support full -64K RAM, while the C16 does not use banking and supports up to 32K RAM. +between both cc65 targets is that the Plus/4 runtime uses banking to support +full 64K RAM, while the C16 does not use banking and supports up to 32K RAM. Because banking is not needed, most C16 programs will be somewhat smaller than the same program compiled for the Plus/4. However, programs compiled for the C16 will always run on the Plus/4, while the reverse is not necessarily true. @@ -138,7 +138,7 @@ structures, accessing the struct fields will access the chip registers. declaration of the structure. - A character array that mirrors the color RAM of the C64 at $D800. + A character array that mirrors the color RAM of the Plus/4 at $0800.

@@ -180,24 +180,50 @@ does not exist). - 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.

+Limitations

+ + + Other hints

Passing arguments to the program

-Command line argument passing is currently not supported for the Plus/4. +Command line arguments can be passed to + RUN:REM ARG1 " ARG2 IS QUOTED" ARG3 "" ARG5 + + + +Arguments are separated by spaces. +Arguments may be quoted. +Leading and trailing spaces around an argument are ignored. Spaces within + a quoted argument are allowed. +The first argument passed to A maximum number of 10 arguments (including the program name) are + supported. + + + + +Program return code

+ +The program return code (low byte) is passed back to BASIC by use of the +Interrupts