toka.nbk: Home | Index | Next Page: debug.c | Previous Page: CtypeLibrary
These are words useful for accessing and modifying data.
make_literal() Compile a call to lit() and then place TOS into the next memory location. fetch() Fetch the value in the memory location pointed to by TOS. store() Store NOS into the memory location specified by TOS. fetch_char() Fetch the value in the memory location pointed to by TOS. This version reads a single byte. store_char() Store NOS into the memory location specified by TOS. This version stores a single byte. copy() Copies 'count' bytes from 'source' to 'dest'. The stack form for this is: source dest count The memory locations can overlap. cell_size() Push the size of a cell to the stack. char_size() Push the size of a char to the stack
char-size cell-size copy c! c@ ! @ #
toka.nbk: Home | Index | Next Page: debug.c | Previous Page: CtypeLibrary
Notebook exported on Sunday, 1 July 2007, 19:54:43 PM EDT