X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Finterpret.c;h=6f2f20d7ae70967f46a2e86c34d2b4a29f73096a;hb=09b207a39b7791098daafd7d87c3ad9d3db3e19f;hp=b9d0c88eddae750ea93400e50ab1f0a01ce58fc3;hpb=2b50c2537dbb28d062938a6c217f5ba27fed23d9;p=mTask.git diff --git a/client/interpret.c b/client/interpret.c index b9d0c88..6f2f20d 100644 --- a/client/interpret.c +++ b/client/interpret.c @@ -19,17 +19,12 @@ void run_task(struct task *t) { uint8_t *program = t->bc; - int plen = t->tlen; + int plen = t->tasklength; int pc = 0; int sp = 0; char stack[STACKSIZE] = {0}; debug("Running task with length: %d", plen); while(pc < plen){ -// debug("program: %d", program[pc]); -// debug("stack: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x", -// stack[0], stack[1], stack[2], stack[3], stack[4], -// stack[5], stack[6], stack[7], stack[8], stack[9]); - switch(program[pc++]){ case BCNOP: trace("nop"); break;