make NEG update flags correctly (oops).

also misc graphics notes added.
This commit is contained in:
StapleButter
2017-03-06 18:13:57 +01:00
parent 52d866fa17
commit 383093c5ff
3 changed files with 13 additions and 9 deletions

View File

@ -1301,8 +1301,10 @@ void T_NEG_REG(ARM* cpu)
u32 b = cpu->R[(cpu->CurInstr >> 3) & 0x7];
u32 res = -b;
cpu->R[cpu->CurInstr & 0x7] = res;
cpu->SetNZ(res & 0x80000000,
!res);
cpu->SetNZCV(res & 0x80000000,
!res,
CARRY_SUB(0, b),
OVERFLOW_SUB(0, b, res));
}
void T_CMP_REG(ARM* cpu)