ref: acd4a952bd1ffca5447c93bf7a6e929472d2bde5
parent: cf7d50a1a1967b780fd6eb96bb22872d54e25150
author: spew <devnull@localhost>
date: Mon Jan 23 08:41:21 EST 2017
games/mix: fix STZ bug, print CMPA instruction
--- a/sys/src/games/mix/mix.c
+++ b/sys/src/games/mix/mix.c
@@ -288,7 +288,7 @@
break;
}
UNF(a, b, fpart);
- if(res[i+1].c != opc)
+ if(res[i+1].c != opc || opc == 56)
return fmtprint(f, "%s\t%d,%d(%d | %d:%d)", res[i].name, apart, ipart, fpart, a, b);
while(res[i].c == opc && i < nelem(res)) {
if(res[i].f == fpart)
@@ -1018,7 +1018,7 @@
cells[m] = mixst(cells[m], r, f);
break;
case 33:
- cells[m] = 0; /* STZ */
+ cells[m] = mixst(cells[m], 0, f);
break;
case 34:
curpc = mixjbus(m, f, curpc);