eForth1
v2.4
|
Macros | |
#define | GET(d) (*(DU*)&ram[d]) |
#define | SET(d, v) (*(DU*)&ram[d] = (v)) |
Functions | |
void | _stat (U8 *ram, int sz, Stream *io) |
int | ef_save (U8 *ram) |
save user variables and dictionary to EEPROM More... | |
int | ef_load (U8 *ram) |
load user variables and dictionary from EEPROM More... | |
void | ef_setup (const char *code, Stream &io_stream) |
void | ef_run () |
char * | ef_ram (int i) |
expose VM RAM space to Sketch More... | |
Variables | |
U32 | forth_rom [] |
U32 | forth_rom_sz |
static U8 | forth_ram [FORTH_RAM_SZ] |
RAM pointer (malloc) More... | |
static Stream * | io |
#define GET | ( | d | ) | (*(DU*)&ram[d]) |
EEPROM interface
EEPROM Save/Load
#define SET | ( | d, | |
v | |||
) | (*(DU*)&ram[d] = (v)) |
void _stat | ( | U8 * | ram, |
int | sz, | ||
Stream * | io | ||
) |
display eForth system information
< freelist
< start of heap
< end of heap
int ef_save | ( | U8 * | ram | ) |
save user variables and dictionary to EEPROM
int ef_load | ( | U8 * | ram | ) |
load user variables and dictionary from EEPROM
< CP addr in EEPROM (aka HERE)
void ef_setup | ( | const char * | code, |
Stream & | io_stream | ||
) |
setup (called by Arduino setup)
void ef_run | ( | ) |
VM outer interpreter proxy
char* ef_ram | ( | int | i | ) |
expose VM RAM space to Sketch
VM RAM space
const U32 forth_rom |
Forth ROM image (eforth_rom.c, generated by eforth_asm.c)
U32 forth_rom_sz |
actual size of ROM
|
static |
RAM pointer (malloc)
Forth managed memory block
|
static |
IO stream (Serial Monito///