1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-13 23:25:29 +00:00

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

@@ -96,6 +96,7 @@ Short options:
-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
-mm model Set the memory model
-o name Name the output file -o name Name the output file
-s Enable smart mode -s Enable smart mode
-t sys Set the target system -t sys Set the target system
@@ -109,8 +110,9 @@ Long options:
--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
@@ -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
@@ -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>