X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2Fplus4.sgml;h=b480d11303d6e215689230468e76354ed8267a9d;hb=8806c31e4a00785be628ea8cde35fa4c94cc2ab6;hp=93d5c15e26748d284a2234c763912485f05643a7;hpb=a87edce03e920ca04658dccccce4f2c8582294b2;p=cc65 diff --git a/doc/plus4.sgml b/doc/plus4.sgml index 93d5c15e2..b480d1130 100644 --- a/doc/plus4.sgml +++ b/doc/plus4.sgml @@ -41,10 +41,10 @@ C16 will always run on the Plus/4, while the reverse is not necessarily true. Binary format

The standard binary output format generated by the linker for the Plus/4 -target is a machine language program with a one line BASIC stub. This means -that a program can be loaded as BASIC program and started with RUN. It is of -course possible to change this behaviour by using a modified startup file and -linker config. +target is a machine language program with a one line BASIC stub, which calls +the machine language part via SYS. This means that a program can be loaded as +BASIC program and started with RUN. It is of course possible to change this +behaviour by using a modified startup file and linker config. Memory layout

@@ -185,7 +185,7 @@ does not exist). 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. - + You need an adapter to use the builtin port, since the output levels available at the user port don't follow the RS232 standard. @@ -201,7 +201,29 @@ does not exist). 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