Was never specified, but itof/ftoi should be signed. (issue #4)

This commit is contained in:
chad
2014-10-08 17:06:04 -04:00
parent 65c9aeadc5
commit 54adca00e3
3 changed files with 7 additions and 3 deletions

View File

@@ -291,7 +291,7 @@ void Instruction::executeOn(Core &c) {
c.pc = c.shadowPc;
}
break;
case ITOF: reg[rdest] = Float(double(reg[rsrc[0]]), wordSz);
case ITOF: reg[rdest] = Float(double(Word_s(reg[rsrc[0]])), wordSz);
break;
case FTOI: reg[rdest] = Word_s(double(Float(reg[rsrc[0]], wordSz)));
reg[rdest].trunc(wordSz);