X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Finterpret.c;h=dedf688c3be34e49cc41e73fa2d363a9e99099df;hb=e09afe083f9077d63a8bd6c27ed8fa5da60430a8;hp=c3c6bd1cdc050db8b256efb32a8390b934cc2a14;hpb=3cac8340c7c822ecda3783286196c6bc4cdec66a;p=mTask.git diff --git a/int/interpret.c b/int/interpret.c index c3c6bd1..dedf688 100644 --- a/int/interpret.c +++ b/int/interpret.c @@ -8,7 +8,7 @@ #include "sds.h" #ifdef STM -#define trace(op, ...) ; +#define trace(op, ...) {}; #else #define trace(op, ...) printf("pc: %d, sp: %d, op: " op "\n", pc, sp, ##__VA_ARGS__); #endif @@ -22,10 +22,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");