X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=int%2Finterpret.c;h=dedf688c3be34e49cc41e73fa2d363a9e99099df;hb=e09afe083f9077d63a8bd6c27ed8fa5da60430a8;hp=e1245894cb27a1b58015d17ef017ca2d4513713b;hpb=fb5465ae10e39a9505634e0aaf8e1cab9710f5d7;p=mTask.git diff --git a/int/interpret.c b/int/interpret.c index e124589..dedf688 100644 --- a/int/interpret.c +++ b/int/interpret.c @@ -7,11 +7,10 @@ #include "task.h" #include "sds.h" -#ifdef STM32F767xx -#define trace(op, ...) ; +#ifdef STM +#define trace(op, ...) {}; #else -#define trace(op, ...) ; -//printf("pc: %d, sp: %d, op: " op "\n", pc, sp, ##__VA_ARGS__); +#define trace(op, ...) printf("pc: %d, sp: %d, op: " op "\n", pc, sp, ##__VA_ARGS__); #endif void run_task(struct task *t) @@ -23,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");