diff options
author | bunnei <bunneidev@gmail.com> | 2015-01-12 19:57:32 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-01-12 19:57:32 +0100 |
commit | ac05c4acb0dee32c9b64d03640bc4da53ec296b9 (patch) | |
tree | f463d3d6c833bad01ebdd622756a86b0a0e27fb1 /src/core/arm | |
parent | Merge pull request #461 from archshift/callstack (diff) | |
parent | dyncom: Remove unused flag macros (diff) | |
download | yuzu-ac05c4acb0dee32c9b64d03640bc4da53ec296b9.tar yuzu-ac05c4acb0dee32c9b64d03640bc4da53ec296b9.tar.gz yuzu-ac05c4acb0dee32c9b64d03640bc4da53ec296b9.tar.bz2 yuzu-ac05c4acb0dee32c9b64d03640bc4da53ec296b9.tar.lz yuzu-ac05c4acb0dee32c9b64d03640bc4da53ec296b9.tar.xz yuzu-ac05c4acb0dee32c9b64d03640bc4da53ec296b9.tar.zst yuzu-ac05c4acb0dee32c9b64d03640bc4da53ec296b9.zip |
Diffstat (limited to 'src/core/arm')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp index bae280b1c..c6a9baae3 100644 --- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp +++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp @@ -3905,21 +3905,9 @@ unsigned InterpreterMainLoop(ARMul_State* state) { } #endif - #define UPDATE_NFLAG(dst) (cpu->NFlag = BIT(dst, 31) ? 1 : 0) - #define UPDATE_ZFLAG(dst) (cpu->ZFlag = dst ? 0 : 1) - - #define UPDATE_CFLAG(dst, lop, rop) (cpu->CFlag = ((dst < lop) || (dst < rop))) - #define UPDATE_CFLAG_CARRY_FROM_ADD(lop, rop, flag) (cpu->CFlag = (((uint64_t) lop + (uint64_t) rop + (uint64_t) flag) > 0xffffffff) ) - #define UPDATE_CFLAG_NOT_BORROW_FROM_FLAG(lop, rop, flag) (cpu->CFlag = ((uint64_t) lop >= ((uint64_t) rop + (uint64_t) flag))) - #define UPDATE_CFLAG_NOT_BORROW_FROM(lop, rop) (cpu->CFlag = (lop >= rop)) - #define UPDATE_CFLAG_WITH_NOT(dst, lop, rop) (cpu->CFlag = !(dst < lop)) - #define UPDATE_CFLAG_WITH_SC (cpu->CFlag = cpu->shifter_carry_out) - - #define UPDATE_VFLAG(dst, lop, rop) (cpu->VFlag = (((lop < 0) && (rop < 0) && (dst >= 0)) || \ - ((lop >= 0) && (rop) >= 0 && (dst < 0)))) - #define UPDATE_VFLAG_WITH_NOT(dst, lop, rop) (cpu->VFlag = !(((lop < 0) && (rop < 0) && (dst >= 0)) || \ - ((lop >= 0) && (rop) >= 0 && (dst < 0)))) - #define UPDATE_VFLAG_OVERFLOW_FROM(dst, lop, rop) (cpu->VFlag = (((lop ^ rop) & (lop ^ dst)) >> 31)) + #define UPDATE_NFLAG(dst) (cpu->NFlag = BIT(dst, 31) ? 1 : 0) + #define UPDATE_ZFLAG(dst) (cpu->ZFlag = dst ? 0 : 1) + #define UPDATE_CFLAG_WITH_SC (cpu->CFlag = cpu->shifter_carry_out) #define SAVE_NZCVT cpu->Cpsr = (cpu->Cpsr & 0x0fffffdf) | \ (cpu->NFlag << 31) | \ |