toka.nbk: Home | Index | Next Page: debug.c | Previous Page: CtypeLibrary


 data.c

Use

These are words useful for accessing and modifying data.

Functions Provided

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

Primitives Provided

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