#include "task.h"
#include "sds.h"
-#ifdef ARDUINO
+#ifdef STM32F767xx
#define trace(op, ...) ;
#else
-#define trace(op, ...) printf("pc: %d, sp: %d, op: " op, pc, sp, ##__VA_ARGS__);
+#define trace(op, ...) ;
+//printf("pc: %d, sp: %d, op: " op, pc, sp, ##__VA_ARGS__);
#endif
void run_task(struct task *t)
char stack[STACKSIZE] = {0};
printf("Running task with length: %d\n", plen);
while(pc != plen){
- printf("program: %d\n", program[pc]);
- printf("stack: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n",
- stack[0], stack[1], stack[2], stack[3], stack[4],
- stack[5], stack[6], stack[7], stack[8], stack[9]);
+ //printf("program: %d\n", program[pc]);
+ //printf("stack: %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x\n",
+ // 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\n");