1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-20 18:16:35 +00:00

Preprocessor. Z80 improvements. Library improvements.

This commit is contained in:
Karol Stasiak
2018-07-12 18:30:35 +02:00
parent 35f3638a4f
commit 215d8d92b4
91 changed files with 1560 additions and 169 deletions
+33
View File
@@ -0,0 +1,33 @@
[< back to index](../index.md)
## `stdlib` module
The `stdlib` module is automatically imported on most targets.
#### `macro asm void poke(word const addr, byte a)`
Stores a byte at given constant address. Will not be optimized away by the optimizer.
#### `macro asm byte peek(word const addr)`
Reads a byte from given constant address. Will not be optimized away by the optimizer.
#### `macro asm void disable_irq()`
Disables interrupts.
#### `macro asm void enable_irq()`
Enables interrupts.
#### `byte hi_nibble_to_hex(byte a)`
Returns an ASCII representation of the upper nibble of the given byte.
#### `byte lo_nibble_to_hex(byte a)`
Returns an ASCII representation of the lower nibble of the given byte.
#### `macro asm void panic()`
Crashes the program.