IC has primitives for directly examining and modifying memory contents. These should be used with care as it is easy to corrupt memory and crash the system using these functions.
int peek(int loc)
loc
.
int peekword(int loc)
loc
and loc
$+$1. loc
has the most significant byte, as
per the 6811 16-bit addressing standard.
void poke(int loc, int byte)
byte
at memory address
loc
.
void pokeword(int loc, int word)
word
at memory
addresses loc
and loc
$+$1.
void bit_set(int loc, int mask)
mask
at memory
address loc
.
void bit_clear(int loc, int mask)
mask
at memory
address loc
.