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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user