repositories
/
msc-thesis1617.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
camil's comment chp5
[msc-thesis1617.git]
/
arch.devices.tex
diff --git
a/arch.devices.tex
b/arch.devices.tex
index
b43a40f
..
db56b48
100644
(file)
--- 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;
// ...