eForth1
v2.4
|
eForth prototype and interface More...
Go to the source code of this file.
Macros | |
Compiler options | |
#define | EXE_TRACE 0 |
#define | COMPUTED_GOTO 0 |
Arduino Support Macros | |
#define | LOG(s) io->print(F(s)) |
#define | LOG_C(c) { io->print(c); if (c=='\n') io->flush(); } |
#define | LOG_V(s, n) { io->print(F(s)); io->print((DU)(n)); } |
#define | LOG_H(s, n) { io->print(F(s)); io->print((n), HEX); } |
#define | CLI() cli() |
#define | SEI() sei() |
Functions | |
interrupt handle routines | |
void | intr_reset () |
reset interrupts More... | |
U16 | intr_hits () |
IU | intr_service () |
void | intr_add_tmisr (U8 i, U16 ms, IU xt) |
void | intr_add_pcisr (U8 pin, IU xt) |
void | intr_timer_enable (U8 f) |
void | intr_pci_enable (U8 f) |
eForth Virtual Machine Functions | |
void | vm_init (PGM_P rom, U8 *ram, void *io_stream, const char *code) |
void | vm_outer () |
Forth outer interpreter. More... | |
eForth Assembler Functions | |
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... | |
eForth prototype and interface
#define EXE_TRACE 0 |
VM execution tracing flag
#define COMPUTED_GOTO 0 |
dispatcher (~3% faster, +180 bytes RAM)
#define LOG | ( | s | ) | io->print(F(s)) |
#define CLI | ( | ) | cli() |
#define SEI | ( | ) | sei() |
void intr_reset | ( | ) |
reset interrupts
reset interrupt states
U16 intr_hits | ( | ) |
IU intr_service | ( | ) |
cached interrupt flags
throttle counter
void intr_timer_enable | ( | U8 | f | ) |
enable/disable timer2 interrupt
void intr_pci_enable | ( | U8 | f | ) |
enable/disable pin change interrupt
void vm_init | ( | PGM_P | rom, |
U8 * | ram, | ||
void * | io_stream, | ||
const char * | code | ||
) |
rom | pointer to Arduino flash memory block (ROM) |
ram | pointer to Arduino RAM block (RAM) |
io_stream | pointer to Stream object of Arduino |
code | embeded Forth code |
void vm_outer | ( | ) |
Forth outer interpreter.
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)