Allow to pass arguments to a program compiled for the Oric Atmos. Code

contributed by Stefan A. Haubenthal.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4941 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-01-28 12:12:59 +00:00
parent 5d7001dc93
commit 8685bb116c
2 changed files with 101 additions and 8 deletions

View File

@@ -162,13 +162,17 @@ following functions (and a few others):
<sect>Other hints<p>
<!--<sect1>Passing arguments to the program<p>
<sect1>Function keys<p>
These are defined to be FUNCT + number key.
<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 chosen:
<tscreen><verb>
CALL#500:REM,ARG1," ARG2", ARG 3,, ARG5, ...
CALL#500:REM ARG1 " ARG2 IS QUOTED" ARG3 "" ARG5
</verb></tscreen>
<enum>
@@ -179,7 +183,7 @@ supported by BASIC, the following syntax was chosen:
<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>-->
</enum>
<sect1>Interrupts<p>