X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Finterpret.c;fp=client%2Finterpret.c;h=92e58d1384f26953d95011db535c4187dfc8d48e;hb=de76c5f5ac6a0c4291b51d5b2c16e3611b5c99e3;hp=6f2f20d7ae70967f46a2e86c34d2b4a29f73096a;hpb=5ff699e2aacd37539f76e069524862dac401a303;p=mTask.git diff --git a/client/interpret.c b/client/interpret.c index 6f2f20d..92e58d1 100644 --- a/client/interpret.c +++ b/client/interpret.c @@ -16,13 +16,14 @@ #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++]){