add arduino uno compatability
[mTask.git] / client / interpret.c
index 6f2f20d..92e58d1 100644 (file)
 
 #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;
-       char stack[STACKSIZE] = {0};
        debug("Running task with length: %d", plen);
        while(pc < plen){
                switch(program[pc++]){