Memory
Nibble and byte memory operations, 16-bit and 32-bit access, search, and checksums.
import "lib/mem.nbl";
Addresses are nibble addresses. A byte occupies two consecutive nibbles, so
*8 helpers advance by two addresses per element. mem_move8 handles
overlapping ranges; mem_copy8 does not. mem_search8 returns the address of
the first match, or 0. mem_crc8 uses CRC-8/ATM with polynomial 0x07.
Constants
Name |
Type |
Value |
|---|---|---|
|
|
table |
Functions
Call |
Returns |
Notes |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
0 when the ranges match, 1 when they differ. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CRC-8/ATM (polynomial 0x07). |
|
|