Arduino-FVM
Byte Token Threaded Forth Virtual Machine (FVM) for Arduino
|
#include "FVM.h"
Go to the source code of this file.
Functions | |
FVM_OP (DOES) | |
FVM_OP (SWAP) | |
FVM_OP (CELLS) | |
FVM_OP (PLUS) | |
FVM_OP (DUP) | |
FVM_OP (FETCH) | |
FVM_OP (CELL) | |
FVM_VARIABLE (2, X, x) | |
FVM_CONSTANT (3, Y,"y",-42) | |
FVM_CREATE (4, Z, ARRAY, z) | |
FVM_CREATE (5, C2, TWO_CONSTANT, c2) | |
FVM_VARIABLE (6, PAD, pad) | |
void | numbers (FVM::task_t &task, void *env) |
FVM_FUNCTION (7, NUMBERS, numbers, pad) | |
FVM_CONSTANT (8, OUTPUT_MODE,"OUTPUT", 1) | |
FVM_CONSTANT (9, LED_PIN,"LED", 13) | |
FVM_OP (ZERO) | |
FVM_OP (DO) | |
FVM_OP (DIGITALTOGGLE) | |
FVM_OP (OVER) | |
FVM_OP (DELAY) | |
FVM_OP (LOOP) | |
FVM_OP (TWO_DROP) | |
void | setup () |
void | loop () |
Variables | |
int | x = 42 |
int | z [] = { 1, 2, 4, 8 } |
int | c2 [] = { 1, 2 } |
const int | PAD_MAX = 32 |
char | pad [PAD_MAX] |
const int | DATA_MAX = 1024 |
uint8_t | data [1024] |
FVM | fvm (data, DATA_MAX) |
FVM::Task< 32, 16 > | task (Serial) |
FVM_CONSTANT | ( | 3 | , |
Y | , | ||
"y" | , | ||
- | 42 | ||
) |
FVM_CONSTANT | ( | 8 | , |
OUTPUT_MODE | , | ||
"OUTPUT" | , | ||
1 | |||
) |
FVM_CONSTANT | ( | 9 | , |
LED_PIN | , | ||
"LED" | , | ||
13 | |||
) |
FVM_CREATE | ( | 4 | , |
Z | , | ||
ARRAY | , | ||
z | |||
) |
FVM_CREATE | ( | 5 | , |
C2 | , | ||
TWO_CONSTANT | , | ||
c2 | |||
) |
FVM_OP | ( | DOES | ) |
FVM_OP | ( | SWAP | ) |
FVM_OP | ( | CELLS | ) |
FVM_OP | ( | PLUS | ) |
FVM_OP | ( | DUP | ) |
FVM_OP | ( | FETCH | ) |
FVM_OP | ( | CELL | ) |
FVM_OP | ( | ZERO | ) |
FVM_OP | ( | DO | ) |
FVM_OP | ( | DIGITALTOGGLE | ) |
FVM_OP | ( | OVER | ) |
FVM_OP | ( | DELAY | ) |
FVM_OP | ( | LOOP | ) |
FVM_OP | ( | TWO_DROP | ) |
FVM_VARIABLE | ( | 2 | , |
X | , | ||
x | |||
) |
FVM_VARIABLE | ( | 6 | , |
PAD | , | ||
pad | |||
) |
void loop | ( | ) |
Definition at line 164 of file Interpret.ino.
void numbers | ( | FVM::task_t & | task, |
void * | env | ||
) |
Definition at line 93 of file Interpret.ino.
void setup | ( | ) |
Definition at line 157 of file Interpret.ino.
int c2[] = { 1, 2 } |
Definition at line 84 of file Interpret.ino.
uint8_t data[1024] |
Definition at line 152 of file Interpret.ino.
const int DATA_MAX = 1024 |
Definition at line 151 of file Interpret.ino.
char pad[PAD_MAX] |
Definition at line 89 of file Interpret.ino.
const int PAD_MAX = 32 |
Definition at line 88 of file Interpret.ino.
FVM::Task<32,16> task(Serial) |
int x = 42 |
Definition at line 73 of file Interpret.ino.
int z[] = { 1, 2, 4, 8 } |
Definition at line 80 of file Interpret.ino.