mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
fix setg
This commit is contained in:
parent
9ee754e5be
commit
a3253e8e3a
@ -263,7 +263,7 @@ public class SetccInstruction extends Instruction {
|
||||
* SETG, SETNLE Greater, Not Less or Equal SF=OF AND ZF=0
|
||||
*/
|
||||
private static Status setg(Target dst, int dstIndex, Status status) {
|
||||
boolean condition = (status.isSignFlag() == status.isOverflowFlag()) && status.isZeroFlag();
|
||||
boolean condition = (status.isSignFlag() == status.isOverflowFlag()) && !status.isZeroFlag();
|
||||
int value = condition ? 1 : 0;
|
||||
dst.set(dstIndex, value);
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user