mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 19:00:14 -05:00
Shader/F2I: Implemented the negate bit in the I2F instruction
This commit is contained in:
parent
5ef447cc0e
commit
40ecdda19e
1 changed files with 4 additions and 0 deletions
|
@ -1261,6 +1261,10 @@ private:
|
|||
op_a = "abs(" + op_a + ')';
|
||||
}
|
||||
|
||||
if (instr.conversion.negate_a) {
|
||||
op_a = "-(" + op_a + ')';
|
||||
}
|
||||
|
||||
regs.SetRegisterToFloat(instr.gpr0, 0, op_a, 1, 1);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue