diff --git a/docs/lang/keywords.md b/docs/lang/keywords.md index 7899e94d..3a1715eb 100644 --- a/docs/lang/keywords.md +++ b/docs/lang/keywords.md @@ -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` diff --git a/docs/lang/literals.md b/docs/lang/literals.md index 2cf378c6..d5c52dde 100644 --- a/docs/lang/literals.md +++ b/docs/lang/literals.md @@ -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: diff --git a/docs/stdlib/input.md b/docs/stdlib/input.md index c445524f..e9351fb2 100644 --- a/docs/stdlib/input.md +++ b/docs/stdlib/input.md @@ -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()` diff --git a/docs/stdlib/x16.md b/docs/stdlib/x16.md index ee9b9ca6..019f28cb 100644 --- a/docs/stdlib/x16.md +++ b/docs/stdlib/x16.md @@ -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.