Use tables, add --memory-model

git-svn-id: svn://svn.cc65.org/cc65/trunk@3580 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2005-08-12 22:26:06 +00:00
parent ce5089decf
commit 3e43521d19

View File

@@ -88,34 +88,36 @@ The assembler accepts the following options:
Usage: ca65 [options] file Usage: ca65 [options] file
Short options: Short options:
-D name[=value] Define a symbol -D name[=value] Define a symbol
-I dir Set an include directory search path -I dir Set an include directory search path
-U Mark unresolved symbols as import -U Mark unresolved symbols as import
-V Print the assembler version -V Print the assembler version
-W n Set warning level n -W n Set warning level n
-g Add debug info to object file -g Add debug info to object file
-h Help (this text) -h Help (this text)
-i Ignore case of symbols -i Ignore case of symbols
-l Create a listing if assembly was ok -l Create a listing if assembly was ok
-o name Name the output file -mm model Set the memory model
-s Enable smart mode -o name Name the output file
-t sys Set the target system -s Enable smart mode
-v Increase verbosity -t sys Set the target system
-v Increase verbosity
Long options: Long options:
--auto-import Mark unresolved symbols as import --auto-import Mark unresolved symbols as import
--cpu type Set cpu type --cpu type Set cpu type
--debug-info Add debug info to object file --debug-info Add debug info to object file
--feature name Set an emulation feature --feature name Set an emulation feature
--help Help (this text) --help Help (this text)
--ignore-case Ignore case of symbols --ignore-case Ignore case of symbols
--include-dir dir Set an include directory search path --include-dir dir Set an include directory search path
--list-bytes n Maximum number of bytes per listing line --listing Create a listing if assembly was ok
--listing Create a listing if assembly was ok --list-bytes n Maximum number of bytes per listing line
--memory-model model Set the memory model
--pagelength n Set the page length for the listing --pagelength n Set the page length for the listing
--smart Enable smart mode --smart Enable smart mode
--target sys Set the target system --target sys Set the target system
--verbose Increase verbosity --verbose Increase verbosity
--version Print the assembler version --version Print the assembler version
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
</verb></tscreen> </verb></tscreen>
@@ -188,6 +190,12 @@ Here is a description of all the command line options:
number of printed bytes. number of printed bytes.
<tag><tt>-mm model, --memory-model model</tt></tag>
Define the default memory model. Possible model specifiers are near, far and
huge.
<tag><tt>-o name</tt></tag> <tag><tt>-o name</tt></tag>
The default output name is the name of the input file with the extension The default output name is the name of the input file with the extension
@@ -289,7 +297,7 @@ contain a label (which is identified by a colon), and, in addition to the
label, an assembler mnemonic, a macro, or a control command (see section <ref label, an assembler mnemonic, a macro, or a control command (see section <ref
id="control-commands" name="Control Commands"> for supported control id="control-commands" name="Control Commands"> for supported control
commands). Alternatively, the line may contain a symbol definition using commands). Alternatively, the line may contain a symbol definition using
the '=' token. Everything after a semicolon is handled as a comment (that is, the '=' token. Everything after a semicolon is handled as a comment (that is,
it is ignored). it is ignored).
Here are some examples for valid input lines: Here are some examples for valid input lines:
@@ -496,59 +504,52 @@ problem in most cases.
Available operators sorted by precedence: Available operators sorted by precedence:
<tscreen><verb> <table>
Op Description Precedence <tabular ca="llc">
------------------------------------------------------------------- Op|Description|Precedence@<hline>
Builtin string functions 0 &nbsp;|Builtin string functions|0@
&nbsp;|Builtin pseudo variables|1@
Builtin pseudo variables 1 &nbsp;|Builtin pseudo functions|1@
Builtin pseudo functions 1 +|Unary plus|1@
+ Unary plus 1 -|Unary minus|1@
- Unary minus 1 &tilde;|Unary bitwise not|1@
~ Unary bitwise not 1 .BITNOT|Unary bitwise not|1@
.BITNOT Unary bitwise not 1 &lt;|Low byte operator|1@
&lt; Low byte operator 1 &gt;|High byte operator|1@
&gt; High byte operator 1 ^|Bank byte operator|1@
^ Bank byte operator 1 *|Multiplication|2@
/|Division|2@
* Multiplication 2 .MOD|Modulo operation|2@
/ Division 2 &amp;|Bitwise and|2@
.MOD Modulo operation 2 .BITAND|Bitwise and|2@
&amp; Bitwise and 2 ^|Bitwise xor|2@
.BITAND Bitwise and 2 .BITXOR|Bitwise xor|2@
^ Bitwise xor 2 &lt;&lt;|Shift left operator|2@
.BITXOR Bitwise xor 2 .SHL|Shift left operator|2@
&lt;&lt; Shift left operator 2 &gt;&gt;|Shift right operato|r@
.SHL Shift left operator 2 .SHR|Shift right operator|2@
&gt;&gt; Shift right operator +|Binary plus|3@
.SHR Shift right operator 2 -|Binary minus|3@
&verbar;|Binary or|3@
+ Binary plus 3 .BITOR|Binary or|3@
- Binary minus 3 =|Compare operation (equal)|4@
| Binary or 3 &lt;&gt;|Compare operation (not equal)|4@
.BITOR Binary or 3 &lt;|Compare operation (less)|4@
&gt;|Compare operation (greater)|4@
= Compare operation (equal) 4 &lt;=|Compare operation (less or equal)|4@
&lt;&gt; Compare operation (not equal) 4 &gt;=|Compare operation (greater or equal)|4@
&lt; Compare operation (less) 4 &amp;&amp;|Boolean and|5@
&gt; Compare operation (greater) 4 .AND|Boolean and|5@
&lt;= Compare operation (less or equal) 4 .XOR|Boolean xor|5@
&gt;= Compare operation (greater or equal) 4 &verbar;&verbar;|Boolean or|6@
.OR|Boolean or|6@
&amp;&amp; Boolean and 5 !|Boolean not|7@
.AND Boolean and 5 .NOT|Boolean not|7@
.XOR Boolean xor 5 </tabular>
<caption>Available operators sorted by precedence
|| Boolean or 6 </table>
.OR Boolean or 6
! Boolean not 7
.NOT Boolean not 7
</verb></tscreen>
To force a specific order of evaluation, braces may be used as usual. To force a specific order of evaluation, braces may be used as usual.
<p> <p>