mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-10 20:29:35 +00:00
Docs: Fix some typos
This commit is contained in:
parent
05c017e375
commit
96b020ce62
@ -56,7 +56,7 @@ The implementation depends on the target architecture:
|
|||||||
it's implemented as a separate 256-byte memory area plus a single byte for the stack pointer,
|
it's implemented as a separate 256-byte memory area plus a single byte for the stack pointer,
|
||||||
exclusively for local stack variables; using it can help against stack overflows
|
exclusively for local stack variables; using it can help against stack overflows
|
||||||
|
|
||||||
* on 8080 and LR35902, the address is calculated from the stackpointer into the HL register pair
|
* on 8080 and LR35902, the address is calculated from the stack pointer into the HL register pair
|
||||||
|
|
||||||
* on Z80, the IX register is used as the base pointer; unlike all the previous platforms,
|
* on Z80, the IX register is used as the base pointer; unlike all the previous platforms,
|
||||||
this makes stack-allocated variables independent from other stack operations
|
this makes stack-allocated variables independent from other stack operations
|
||||||
|
@ -138,7 +138,7 @@ Default: 4 if targeting a 6502-based architecture, 0 otherwise.
|
|||||||
|
|
||||||
* `-fdecimal-mode`, `-fno-decimal-mode` –
|
* `-fdecimal-mode`, `-fno-decimal-mode` –
|
||||||
Whether hardware decimal mode should be used (6502 only).
|
Whether hardware decimal mode should be used (6502 only).
|
||||||
If disabled, a sofware decimal mode will be used.
|
If disabled, a software decimal mode will be used.
|
||||||
`.ini` equivalent: `decimal_mode`.
|
`.ini` equivalent: `decimal_mode`.
|
||||||
Default: no if targeting Ricoh, yes otherwise.
|
Default: no if targeting Ricoh, yes otherwise.
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ It is not allowed in any other places.
|
|||||||
|
|
||||||
String literals can be used as either array initializers or expressions of type `pointer`.
|
String literals can be used as either array initializers or expressions of type `pointer`.
|
||||||
|
|
||||||
String literals are equivalent to constanr arrays. Writing to them via their pointer is undefined behaviour.
|
String literals are equivalent to constant arrays. Writing to them via their pointer is undefined behaviour.
|
||||||
|
|
||||||
If a string literal is used as an expression, then the text data will be located in the default code segment,
|
If a string literal is used as an expression, then the text data will be located in the default code segment,
|
||||||
regardless of which code segment the current function is located it. This may be subject to change in future releases.
|
regardless of which code segment the current function is located it. This may be subject to change in future releases.
|
||||||
@ -97,7 +97,7 @@ You can create a constant of a given struct type by listing constant values of f
|
|||||||
point(5,6)
|
point(5,6)
|
||||||
|
|
||||||
|
|
||||||
## Array initialisers
|
## Array initializers
|
||||||
|
|
||||||
An array is initialized with either:
|
An array is initialized with either:
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ Encoding | lowercase letters | backslash | pound | yen | katakana | card suits
|
|||||||
`msx_ru` | yes | yes | no | no | no | yes
|
`msx_ru` | yes | yes | no | no | no | yes
|
||||||
all the rest | yes | yes | no | no | no | no
|
all the rest | yes | yes | no | no | no | no
|
||||||
|
|
||||||
1. `pet`, `origpet` and petscr` cannot display card suit symbols and lowercase letters at the same time.
|
1. `pet`, `origpet` and `petscr` cannot display card suit symbols and lowercase letters at the same time.
|
||||||
Card suit symbols are only available in graphics mode,
|
Card suit symbols are only available in graphics mode,
|
||||||
in which lowercase letters are displayed as uppercase and uppercase letters are displayed as symbols.
|
in which lowercase letters are displayed as uppercase and uppercase letters are displayed as symbols.
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ then text and character literals containing lowercase letters are automatically
|
|||||||
##### Escape sequence availability
|
##### Escape sequence availability
|
||||||
|
|
||||||
Encoding | new line | braces | backspace | cursor movement | text colour | reverse | background colour
|
Encoding | new line | braces | backspace | cursor movement | text colour | reverse | background colour
|
||||||
--|--|--|--|--|--|--
|
--|--|--|--|--|--|--|--
|
||||||
`pet`,`petjp` | yes | no | no | yes | yes | yes | no
|
`pet`,`petjp` | yes | no | no | yes | yes | yes | no
|
||||||
`origpet` | yes | no | no | yes | no | yes | no
|
`origpet` | yes | no | no | yes | no | yes | no
|
||||||
`oldpet` | yes | no | no | yes | no | yes | no
|
`oldpet` | yes | no | no | yes | no | yes | no
|
||||||
|
@ -122,7 +122,7 @@ then the enumeration is considered _plain_. Plain enumeration types can be used
|
|||||||
For plain enumerations, a constant `<name>.count` is defined,
|
For plain enumerations, a constant `<name>.count` is defined,
|
||||||
equal to the number of variants in the enumeration.
|
equal to the number of variants in the enumeration.
|
||||||
|
|
||||||
Assigment between numeric types and enumerations is not possible without an explicit type cast:
|
Assignment between numeric types and enumerations is not possible without an explicit type cast:
|
||||||
|
|
||||||
enum E { EA, EB }
|
enum E { EA, EB }
|
||||||
byte b
|
byte b
|
||||||
|
@ -76,6 +76,6 @@ TODO: buggy.
|
|||||||
|
|
||||||
#### void putbyte_safe(byte b)
|
#### void putbyte_safe(byte b)
|
||||||
|
|
||||||
Wrires a byte from file.
|
Writes a byte from file.
|
||||||
Sets `errno`.
|
Sets `errno`.
|
||||||
TODO: buggy.
|
TODO: buggy.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user