From: cuz Date: Sun, 24 Jul 2005 13:32:38 +0000 (+0000) Subject: Small changes to work around problems in the linuxdoc implementation of X-Git-Tag: V2.12.0~302 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=43da460147c9f8f3b0aacdf116df08ccde6424a0;p=cc65 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 --- diff --git a/doc/ca65.sgml b/doc/ca65.sgml index 2cfe2e40a..03448cdc7 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -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 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, it -is ignored). +commands). Alternatively, the line may contain a symbol definition using +the '=' token. Everything after a semicolon is handled as a comment (that is, +it is ignored). Here are some examples for valid input lines: @@ -632,15 +632,15 @@ names like "Loop". Here is an example: Unnamed labels

-If you really want to write messy code, there are also unnamed -labels. These labels do not have a name (you guessed that already, -didn't you?). A colon is used to mark the absence of the name. +If you really want to write messy code, there are also unnamed labels. These +labels do not have a name (you guessed that already, didn't you?). A colon is +used to mark the absence of the name. -Unnamed labels may be accessed by using the colon plus several minus -or plus characters as a label designator. Using the '-' characters -will create a back reference (use the n'th label backwards), using -'+' will create a forward reference (use the n'th label in forward -direction). An example will help to understand this: +Unnamed labels may be accessed by using the colon plus several minus or plus +characters as a label designator. Using the '-' characters will create a back +reference (use the n'th label backwards), using '+' will create a forward +reference (use the n'th label in forward direction). An example will help to +understand this: : 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. -A special scope: cheap locals

+Cheap locals

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. @@ -3096,10 +3096,10 @@ Here's a list of all control commands and a description, what they do: .SMART

- 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 - is off (that is, the assembler doesn't try to be smart), but this - default may be changed by the -s switch on the command line. + 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 is off + (that is, the assembler doesn't try to be smart), but this default may be + changed by the -s switch on the command line. In smart mode the assembler will do the following: diff --git a/doc/cc65.sgml b/doc/cc65.sgml index fb94b5a89..08f27ad7d 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -560,9 +560,11 @@ This cc65 version has some extensions to the ISO C standard. unorthogonal). Flexible array members cannot be initialized... - ...when defining an array of structs with flexible members. - ...if such a struct is a member field of another struct which - is not the last field. ++ +  ...when defining an array of structs with flexible + members. +  ...if such a struct is a member field of another struct + which is not the last field. If the struct which contains a flexible array member is declared as -The expression is parsed from left to right, that means, the compiler sees -'i', and puts it contents into the secondary register. Next is OFFS, which is +The expression is parsed from left to right, that means, the compiler sees 'i', +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. -Same thing again for the constant 3. So the code produced contains a fetch of -'i', two additions of constants, and a store (into 'i'). Unfortunately, the +Same thing again for the constant 3. So the code produced contains a fetch +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 it's evaluation from left to right. There are some ways to help the compiler to recognize expression like this: diff --git a/doc/da65.sgml b/doc/da65.sgml index 5c611ee81..fd2429237 100644 --- a/doc/da65.sgml +++ b/doc/da65.sgml @@ -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 disassembled. The given address is interpreted as an octal value if - preceeded with a '0' digit, as a hexadecimal value if preceeded with '0x', - '0X', or '$', and as a decimal value in all other cases. If no start address - is specified, $10000 minus the size of the input file is used. + preceeded with a '0' digit, as a hexadecimal value if preceeded + with '0x', '0X', or '$', and as a decimal value in all other cases. If no + start address is specified, $10000 minus the size of the input file is used. -v, --verbose