1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-01-22 19:16:01 +00:00

Changes to macros and parameter list syntax:

* non-asm macros can now take `const` and `call` parameters
* register parameters to asm functions and macros can be given names if annotated explicitly
This commit is contained in:
Karol Stasiak
2020-03-30 19:23:48 +02:00
parent 5cdc599b1d
commit 63ff28e94e
50 changed files with 465 additions and 191 deletions

View File

@@ -4,7 +4,7 @@
The `stdlib` module is automatically imported on most targets.
#### `macro asm void poke(word const addr, byte a)`
#### `macro asm void poke(word const addr, byte register(a) value)`
Stores a byte at given constant address. Will not be optimized away by the optimizer.
@@ -20,11 +20,11 @@ Disables interrupts.
Enables interrupts.
#### `byte hi_nibble_to_hex(byte a)`
#### `byte hi_nibble_to_hex(byte register(a) value)`
Returns an ASCII representation of the upper nibble of the given byte.
#### `byte lo_nibble_to_hex(byte a)`
#### `byte lo_nibble_to_hex(byte register(a) value)`
Returns an ASCII representation of the lower nibble of the given byte.