1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-29 17:56:21 +00:00

Small changes to work around problems in the linuxdoc implementation of

Debian Woody. Contributed by Michael Klein.


git-svn-id: svn://svn.cc65.org/cc65/trunk@3541 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-07-24 13:32:38 +00:00
parent 8334d54622
commit 43da460147
4 changed files with 28 additions and 26 deletions

View File

@ -288,9 +288,9 @@ The assembler accepts the standard 6502/65816 assembler syntax. One line may
contain a label (which is identified by a colon), and, in addition to the 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 the commands). Alternatively, the line may contain a symbol definition using
'=' token. Everything after a semicolon is handled as a comment (that is, it the '=' token. Everything after a semicolon is handled as a comment (that is,
is ignored). it is ignored).
Here are some examples for valid input lines: Here are some examples for valid input lines:
@ -632,15 +632,15 @@ names like "Loop". Here is an example:
<sect1>Unnamed labels<p> <sect1>Unnamed labels<p>
If you really want to write messy code, there are also unnamed If you really want to write messy code, there are also unnamed labels. These
labels. These labels do not have a name (you guessed that already, labels do not have a name (you guessed that already, didn't you?). A colon is
didn't you?). A colon is used to mark the absence of the name. used to mark the absence of the name.
Unnamed labels may be accessed by using the colon plus several minus Unnamed labels may be accessed by using the colon plus several minus or plus
or plus characters as a label designator. Using the '-' characters characters as a label designator. Using the '-' characters will create a back
will create a back reference (use the n'th label backwards), using reference (use the n'th label backwards), using '+' will create a forward
'+' will create a forward reference (use the n'th label in forward reference (use the n'th label in forward direction). An example will help to
direction). An example will help to understand this: understand this:
<tscreen><verb> <tscreen><verb>
: lda (ptr1),y ; #1 : lda (ptr1),y ; #1
@ -713,7 +713,7 @@ All (non cheap local) symbols that are declared outside of any nested scopes
are in global scope. are in global scope.
<sect1>A special scope: cheap locals<p> <sect1>Cheap locals<p>
A special scope is the scope for cheap local symbols. It lasts from one non A special scope is the scope for cheap local symbols. It lasts from one non
local symbol to the next one, without any provisions made by the programmer. local symbol to the next one, without any provisions made by the programmer.
@ -3096,10 +3096,10 @@ Here's a list of all control commands and a description, what they do:
<sect1><tt>.SMART</tt><label id=".SMART"><p> <sect1><tt>.SMART</tt><label id=".SMART"><p>
Switch on or off smart mode. The command must be followed by a '+' or Switch on or off smart mode. The command must be followed by a '+' or '-'
'-' character to switch the option on or off respectively. The default character to switch the option on or off respectively. The default is off
is off (that is, the assembler doesn't try to be smart), but this (that is, the assembler doesn't try to be smart), but this default may be
default may be changed by the -s switch on the command line. changed by the -s switch on the command line.
In smart mode the assembler will do the following: In smart mode the assembler will do the following:

View File

@ -560,9 +560,11 @@ This cc65 version has some extensions to the ISO C standard.
unorthogonal). Flexible array members cannot be initialized... unorthogonal). Flexible array members cannot be initialized...
<itemize> <itemize>
<item> ...when defining an array of structs with flexible members. + <!-- add &nbsp; to get rid of "..when undefined" message on Debian Woody -->
<item> ...if such a struct is a member field of another struct which <item> &nbsp;...when defining an array of structs with flexible
is not the last field. members.
<item> &nbsp;...if such a struct is a member field of another struct
which is not the last field.
<item> If the struct which contains a flexible array member is <item> If the struct which contains a flexible array member is
declared as <tt/register/ and the size and compiler settings declared as <tt/register/ and the size and compiler settings
do allow the compiler to actually place the struct into the do allow the compiler to actually place the struct into the

View File

@ -109,11 +109,11 @@ if you don't help. Look at this example:
i = i + OFFS + 3; i = i + OFFS + 3;
</verb></tscreen> </verb></tscreen>
The expression is parsed from left to right, that means, the compiler sees The expression is parsed from left to right, that means, the compiler sees 'i',
'i', and puts it contents into the secondary register. Next is OFFS, which is and puts it contents into the secondary register. Next is OFFS, which is
constant. The compiler emits code to add a constant to the secondary register. constant. The compiler emits code to add a constant to the secondary register.
Same thing again for the constant 3. So the code produced contains a fetch of Same thing again for the constant 3. So the code produced contains a fetch
'i', two additions of constants, and a store (into 'i'). Unfortunately, the of 'i', two additions of constants, and a store (into 'i'). Unfortunately, the
compiler does not see, that "OFFS + 3" is a constant for itself, since it does compiler does not see, that "OFFS + 3" is a constant for itself, since it does
it's evaluation from left to right. There are some ways to help the compiler it's evaluation from left to right. There are some ways to help the compiler
to recognize expression like this: to recognize expression like this:

View File

@ -148,9 +148,9 @@ Here is a description of all the command line options:
Specify the start/load address of the binary code that is going to be Specify the start/load address of the binary code that is going to be
disassembled. The given address is interpreted as an octal value if disassembled. The given address is interpreted as an octal value if
preceeded with a '0' digit, as a hexadecimal value if preceeded with '0x', preceeded with a '0' digit, as a hexadecimal value if preceeded
'0X', or '$', and as a decimal value in all other cases. If no start address with '0x', '0X', or '$', and as a decimal value in all other cases. If no
is specified, $10000 minus the size of the input file is used. start address is specified, $10000 minus the size of the input file is used.
<tag><tt>-v, --verbose</tt></tag> <tag><tt>-v, --verbose</tt></tag>