From acd4a952bd1ffca5447c93bf7a6e929472d2bde5 Mon Sep 17 00:00:00 2001 From: spew Date: Mon, 23 Jan 2017 13:41:21 -0600 Subject: games/mix: fix STZ bug, print CMPA instruction --- sys/src/games/mix/mix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/games/mix/mix.c b/sys/src/games/mix/mix.c index 64bad770c..f1b4d251c 100644 --- a/sys/src/games/mix/mix.c +++ b/sys/src/games/mix/mix.c @@ -288,7 +288,7 @@ Ifmt(Fmt *f) 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 @@ mixvm(int ip, int once) 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); -- cgit v1.2.3