1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-05-29 04:41:30 +00:00

Update documentation

This commit is contained in:
Karol Stasiak 2019-10-23 11:03:01 +02:00
parent a55d95f2cb
commit aa09bc90a4
4 changed files with 9 additions and 5 deletions

View File

@ -36,7 +36,7 @@ These keywords occur within function bodies:
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`

View File

@ -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).
"this is a zero-terminated string" asciiz
"this is also a zero-terminated string"z
"this is a zero-terminated string" asciiz
"this is also a zero-terminated string"z
Most characters between the quotes are interpreted literally.
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)
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), 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:

View File

@ -17,7 +17,7 @@ Vertical joystick movement. 1 if down, -1 if up, 0 if neither.
#### `byte input_btn`
1 if main button pressed, 0 id not pressed.
1 if main button pressed, 0 if not pressed.
#### `void reset_joy()`

View File

@ -27,6 +27,10 @@ Switches the ROM segment at $C000-$DFFF.
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)`
Writes `size` bytes into the VERA memory space.