mirror of
https://github.com/KarolS/millfork.git
synced 2025-10-28 21:16:18 +00:00
Update documentation
This commit is contained in:
@@ -36,7 +36,7 @@ These keywords occur within function bodies:
|
|||||||
|
|
||||||
These keywords occur within bodies of certain other statements:
|
These keywords occur within bodies of certain other statements:
|
||||||
|
|
||||||
* for-loop directions: `to until downto parallelto parallel until`
|
* for-loop directions: `to until downto parallelto paralleluntil`
|
||||||
|
|
||||||
* special return-dispatch branch: `default`
|
* special return-dispatch branch: `default`
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ The exact value of `nullchar` is encoding-dependent:
|
|||||||
* in other encodings it's 0 (this might be a subject to change in future versions).
|
* in other encodings it's 0 (this might be a subject to change in future versions).
|
||||||
|
|
||||||
|
|
||||||
"this is a zero-terminated string" asciiz
|
"this is a zero-terminated string" asciiz
|
||||||
"this is also a zero-terminated string"z
|
"this is also a zero-terminated string"z
|
||||||
|
|
||||||
Most characters between the quotes are interpreted literally.
|
Most characters between the quotes are interpreted literally.
|
||||||
To allow characters that cannot be inserted normally,
|
To allow characters that cannot be inserted normally,
|
||||||
@@ -143,7 +143,7 @@ An array is initialized with either:
|
|||||||
* `@struct`: every term of the initializer is interpreted as a struct constructor (see below)
|
* `@struct`: every term of the initializer is interpreted as a struct constructor (see below)
|
||||||
and treated as a list of bytes with no padding
|
and treated as a list of bytes with no padding
|
||||||
`@struct [s(1, 2)]` is equivalent to `[1, 2]` when `struct s {byte x, byte y}` is defined
|
`@struct [s(1, 2)]` is equivalent to `[1, 2]` when `struct s {byte x, byte y}` is defined
|
||||||
`@struct [s(1, 2), s(3, 4)]` is equivalent to `[1, 0, 2, 0, 3, 0, 4, 0]` on little-endian machines when `struct s {word x, word y}` is defined
|
`@struct [s2(1, 2), s2(3, 4)]` is equivalent to `[1, 0, 2, 0, 3, 0, 4, 0]` on little-endian machines when `struct s2 {word x, word y}` is defined
|
||||||
|
|
||||||
* a list of literals and/or other array initializers, surrounded by brackets:
|
* a list of literals and/or other array initializers, surrounded by brackets:
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Vertical joystick movement. 1 if down, -1 if up, 0 if neither.
|
|||||||
|
|
||||||
#### `byte input_btn`
|
#### `byte input_btn`
|
||||||
|
|
||||||
1 if main button pressed, 0 id not pressed.
|
1 if main button pressed, 0 if not pressed.
|
||||||
|
|
||||||
#### `void reset_joy()`
|
#### `void reset_joy()`
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ Switches the ROM segment at $C000-$DFFF.
|
|||||||
|
|
||||||
Writes a byte into the VERA memory space.
|
Writes a byte into the VERA memory space.
|
||||||
|
|
||||||
|
#### `byte vera_peek(int24 address)`
|
||||||
|
|
||||||
|
Reads a byte from the VERA memory space.
|
||||||
|
|
||||||
#### `void vera_fill(int24 address, byte value, word size)`
|
#### `void vera_fill(int24 address, byte value, word size)`
|
||||||
|
|
||||||
Writes `size` bytes into the VERA memory space.
|
Writes `size` bytes into the VERA memory space.
|
||||||
|
|||||||
Reference in New Issue
Block a user