59 lines
1.5 KiB
HTML
59 lines
1.5 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.20">
|
||
|
<TITLE>Apple ][ specific information for cc65: Other hints</TITLE>
|
||
|
<LINK HREF="apple2-8.html" REL=next>
|
||
|
<LINK HREF="apple2-6.html" REL=previous>
|
||
|
<LINK HREF="apple2.html#toc7" REL=contents>
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<A HREF="apple2-8.html">Next</A>
|
||
|
<A HREF="apple2-6.html">Previous</A>
|
||
|
<A HREF="apple2.html#toc7">Contents</A>
|
||
|
<HR>
|
||
|
<H2><A NAME="s7">7.</A> <A HREF="apple2.html#toc7">Other hints</A></H2>
|
||
|
|
||
|
|
||
|
|
||
|
<H2><A NAME="ss7.1">7.1</A> <A HREF="apple2.html#toc7.1">Passing arguments to the program</A>
|
||
|
</H2>
|
||
|
|
||
|
|
||
|
<P>Command line arguments can be passed to <CODE>main()</CODE> after BLOAD. Since this is not
|
||
|
supported by BASIC, the following syntax was chosen:</P>
|
||
|
<P>
|
||
|
<BLOCKQUOTE><CODE>
|
||
|
<PRE>
|
||
|
]CALL2048:REM ARG1 " ARG2 IS QUOTED" ARG3 "" ARG5
|
||
|
</PRE>
|
||
|
</CODE></BLOCKQUOTE>
|
||
|
</P>
|
||
|
<P>
|
||
|
<OL>
|
||
|
<LI>Arguments are separated by spaces.</LI>
|
||
|
<LI>Arguments may be quoted.</LI>
|
||
|
<LI>Leading and trailing spaces around an argument are ignored. Spaces within
|
||
|
a quoted argument are allowed.</LI>
|
||
|
<LI>The first argument passed to <CODE>main</CODE> is the program name.</LI>
|
||
|
<LI>A maximum number of 10 arguments (including the program name) are
|
||
|
supported.</LI>
|
||
|
</OL>
|
||
|
</P>
|
||
|
|
||
|
|
||
|
<H2><A NAME="ss7.2">7.2</A> <A HREF="apple2.html#toc7.2">Function keys</A>
|
||
|
</H2>
|
||
|
|
||
|
|
||
|
<P>These are defined to be OpenApple + number key.</P>
|
||
|
|
||
|
|
||
|
|
||
|
<HR>
|
||
|
<A HREF="apple2-8.html">Next</A>
|
||
|
<A HREF="apple2-6.html">Previous</A>
|
||
|
<A HREF="apple2.html#toc7">Contents</A>
|
||
|
</BODY>
|
||
|
</HTML>
|