From 3e43521d198612b2d9aa21f26e89ff3bfa9649ad Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 12 Aug 2005 22:26:06 +0000 Subject: [PATCH] Use tables, add --memory-model git-svn-id: svn://svn.cc65.org/cc65/trunk@3580 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/ca65.sgml | 147 +++++++++++++++++++++++++------------------------- 1 file changed, 74 insertions(+), 73 deletions(-) diff --git a/doc/ca65.sgml b/doc/ca65.sgml index f67ca40cd..04aa0b918 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -88,34 +88,36 @@ The assembler accepts the following options: Usage: ca65 [options] file Short options: -D name[=value] Define a symbol - -I dir Set an include directory search path - -U Mark unresolved symbols as import - -V Print the assembler version - -W n Set warning level n - -g Add debug info to object file - -h Help (this text) - -i Ignore case of symbols - -l Create a listing if assembly was ok - -o name Name the output file - -s Enable smart mode - -t sys Set the target system - -v Increase verbosity + -I dir Set an include directory search path + -U Mark unresolved symbols as import + -V Print the assembler version + -W n Set warning level n + -g Add debug info to object file + -h Help (this text) + -i Ignore case of symbols + -l Create a listing if assembly was ok + -mm model Set the memory model + -o name Name the output file + -s Enable smart mode + -t sys Set the target system + -v Increase verbosity Long options: --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 - --feature name Set an emulation feature - --help Help (this text) + --feature name Set an emulation feature + --help Help (this text) --ignore-case Ignore case of symbols --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 - --smart Enable smart mode - --target sys Set the target system - --verbose Increase verbosity - --version Print the assembler version + --smart Enable smart mode + --target sys Set the target system + --verbose Increase verbosity + --version Print the assembler version --------------------------------------------------------------------------- @@ -188,6 +190,12 @@ Here is a description of all the command line options: number of printed bytes. + -mm model, --memory-model model + + Define the default memory model. Possible model specifiers are near, far and + huge. + + -o name 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 for supported control 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). Here are some examples for valid input lines: @@ -496,59 +504,52 @@ problem in most cases. Available operators sorted by precedence: - - Op Description Precedence - ------------------------------------------------------------------- - Builtin string functions 0 - - Builtin pseudo variables 1 - Builtin pseudo functions 1 - + Unary plus 1 - - Unary minus 1 - ~ Unary bitwise not 1 - .BITNOT Unary bitwise not 1 - < Low byte operator 1 - > High byte operator 1 - ^ Bank byte operator 1 - - * Multiplication 2 - / Division 2 - .MOD Modulo operation 2 - & Bitwise and 2 - .BITAND Bitwise and 2 - ^ Bitwise xor 2 - .BITXOR Bitwise xor 2 - << Shift left operator 2 - .SHL Shift left operator 2 - >> Shift right operator - .SHR Shift right operator 2 - - + Binary plus 3 - - Binary minus 3 - | Binary or 3 - .BITOR Binary or 3 - - = Compare operation (equal) 4 - <> Compare operation (not equal) 4 - < Compare operation (less) 4 - > Compare operation (greater) 4 - <= Compare operation (less or equal) 4 - >= Compare operation (greater or equal) 4 - - && Boolean and 5 - .AND Boolean and 5 - .XOR Boolean xor 5 - - || Boolean or 6 - .OR Boolean or 6 - - ! Boolean not 7 - .NOT Boolean not 7 - - + + +Op|Description|Precedence@ + |Builtin string functions|0@ + |Builtin pseudo variables|1@ + |Builtin pseudo functions|1@ ++|Unary plus|1@ +-|Unary minus|1@ +˜|Unary bitwise not|1@ +.BITNOT|Unary bitwise not|1@ +<|Low byte operator|1@ +>|High byte operator|1@ +^|Bank byte operator|1@ +*|Multiplication|2@ +/|Division|2@ +.MOD|Modulo operation|2@ +&|Bitwise and|2@ +.BITAND|Bitwise and|2@ +^|Bitwise xor|2@ +.BITXOR|Bitwise xor|2@ +<<|Shift left operator|2@ +.SHL|Shift left operator|2@ +>>|Shift right operato|r@ +.SHR|Shift right operator|2@ ++|Binary plus|3@ +-|Binary minus|3@ +||Binary or|3@ +.BITOR|Binary or|3@ +=|Compare operation (equal)|4@ +<>|Compare operation (not equal)|4@ +<|Compare operation (less)|4@ +>|Compare operation (greater)|4@ +<=|Compare operation (less or equal)|4@ +>=|Compare operation (greater or equal)|4@ +&&|Boolean and|5@ +.AND|Boolean and|5@ +.XOR|Boolean xor|5@ +|||Boolean or|6@ +.OR|Boolean or|6@ +!|Boolean not|7@ +.NOT|Boolean not|7@ + +
Available operators sorted by precedence +
To force a specific order of evaluation, braces may be used as usual. -

-- 2.39.5