Multiplication's the one what has the extra arms.

This commit is contained in:
cdkersey 2013-10-09 13:43:38 -04:00
parent bbb8d97479
commit 823a305b5d

View file

@ -150,7 +150,7 @@ void Instruction::executeOn(Core &c) {
case SUB: reg[rdest] = reg[rsrc[0]] - reg[rsrc[1]];
reg[rdest].trunc(wordSz);
break;
case MUL: reg[rdest] = reg[rsrc[0]] + reg[rsrc[1]];
case MUL: reg[rdest] = reg[rsrc[0]] * reg[rsrc[1]];
reg[rdest].trunc(wordSz);
break;
case DIV: if (reg[rsrc[1]] == 0) throw DomainException();