X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=arch.devices.tex;h=db56b4887f3aee278860c75d01e0d280ad84462e;hb=d87a4fd64d0bb48c3b42f46f7ea8806627b65c4d;hp=b43a40f7736dd9fd4a3fc4f790e17bf9e1332323;hpb=b8953a28b8a7db87f446bc74a6e6f854e19cd639;p=msc-thesis1617.git diff --git a/arch.devices.tex b/arch.devices.tex index b43a40f..db56b48 100644 --- a/arch.devices.tex +++ b/arch.devices.tex @@ -182,12 +182,12 @@ void run_task(struct task *t){ pc+=2; break; // ... - case BCADD: trace("add"); + case BCADD: stack[sp-2] = stack[sp-2] + stack[sp-1]; sp -= 1; break; // ... - case BCJMPT: trace("jmpt to %d", program[pc]); + case BCJMPT: pc = stack[--sp] ? program[pc]-1 : pc+1; break; // ...