repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add arduino uno compatability
[mTask.git]
/
client
/
interpret.c
diff --git
a/client/interpret.c
b/client/interpret.c
index
6f2f20d
..
92e58d1
100644
(file)
--- a/
client/interpret.c
+++ b/
client/interpret.c
@@
-16,13
+16,14
@@
#define f16(p) program[pc]*265+program[pc+1]
#define f16(p) program[pc]*265+program[pc+1]
+uint8_t stack[STACKSIZE] = {0};
+
void run_task(struct task *t)
{
uint8_t *program = t->bc;
int plen = t->tasklength;
int pc = 0;
int sp = 0;
void run_task(struct task *t)
{
uint8_t *program = t->bc;
int plen = t->tasklength;
int pc = 0;
int sp = 0;
- char stack[STACKSIZE] = {0};
debug("Running task with length: %d", plen);
while(pc < plen){
switch(program[pc++]){
debug("Running task with length: %d", plen);
while(pc < plen){
switch(program[pc++]){