X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Finterpret.c;fp=int%2Finterpret.c;h=683638f7e908ac2466f368d154b682549f432bdb;hb=8c4fb11d9a590d3f9d361c36e0cb476568c00735;hp=06f46a0f60e292068e412a493d7197c8786897e2;hpb=2baa7d4b9df523436b38a4a7a0d9cb4e75fb527c;p=mTask.git diff --git a/int/interpret.c b/int/interpret.c index 06f46a0..683638f 100644 --- a/int/interpret.c +++ b/int/interpret.c @@ -10,7 +10,8 @@ #ifdef STM #define trace(op, ...) {}; #else -#define trace(op, ...) printf("pc: %d, sp: %d, op: " op "\n", pc, sp, ##__VA_ARGS__); +#define trace(op, ...) {}; +//#define trace(op, ...) printf("pc: %d, sp: %d, op: " op "\n", pc, sp, ##__VA_ARGS__); #endif #define f16(p) program[pc]*265+program[pc+1] @@ -24,10 +25,10 @@ void run_task(struct task *t) 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]); +// 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");