Go to the documentation of this file.
5 #ifndef __EFORTH_CORE_H
6 #define __EFORTH_CORE_H
12 #define COMPUTED_GOTO 0
19 #include <avr/pgmspace.h>
20 #define LOG(s) io->print(F(s))
21 #define LOG_C(c) { io->print(c); if (c=='\n') io->flush(); }
22 #define LOG_V(s, n) { io->print(F(s)); io->print((DU)(n)); }
23 #define LOG_H(s, n) { io->print(F(s)); io->print((n), HEX); }
30 typedef const char *PGM_P;
31 #define pgm_read_byte(b) *((U8*)(b))
34 #define millis() ((U32)clock())
36 #define digitalRead(p) (0)
37 #define digitalWrite(p,v)
38 #define analogRead(p) (0)
39 #define analogWrite(p,v)
40 #define map(a,b,c,d,e) (0)
41 #define LOG(s) printf("%s", (s))
42 #define LOG_C(c) printf("%c", (c))
43 #define LOG_V(s, n) printf("%s%d", (s), (n))
44 #define LOG_H(s, n) printf("%s%x", (s), (U16)((n)&0xffff))
77 #endif // __EFORTH_CORE_H
void vm_init(PGM_P rom, U8 *ram, void *io_stream, const char *code)
Definition: eforth_vm.cpp:169
void vm_outer()
Forth outer interpreter.
void intr_pci_enable(U8 f)
Definition: eforth_core.cpp:107
IU intr_service()
Definition: eforth_core.cpp:47
eForth configurations and opcode list
const PROGMEM char code[]
Definition: eforth1.ino.cpp:10
void intr_reset()
reset interrupts
Definition: eforth_core.cpp:22
U16 IU
instruction/address unit (16-bit)
Definition: eforth_config.h:28
int ef_save(U8 *ram)
save user variables and dictionary to EEPROM
Definition: eforth1.cpp:52
int ef_load(U8 *ram)
load user variables and dictionary from EEPROM
Definition: eforth1.cpp:61
void intr_add_pcisr(U8 pin, IU xt)
Definition: eforth_core.cpp:87
void intr_add_tmisr(U8 i, U16 ms, IU xt)
Definition: eforth_core.cpp:73
uint16_t U16
16-bit unsigned integer
Definition: eforth_config.h:21
void intr_timer_enable(U8 f)
Definition: eforth_core.cpp:120
uint8_t U8
8-bit unsigned integer
Definition: eforth_config.h:22