all repos — mgba @ 12f4ff6cbb524d97980100cb09c0c4e0e6ab5667

mGBA Game Boy Advance Emulator

Fix ARM_ROR
Jeffrey Pfau jeffrey@endrift.com
Mon, 20 Jan 2014 15:40:44 -0800
commit

12f4ff6cbb524d97980100cb09c0c4e0e6ab5667

parent

2db6d27496dcd66af0ab45a51a6bf94a4862b59d

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/arm/isa-inlines.hsrc/arm/isa-inlines.h

@@ -45,7 +45,7 @@ #define ARM_COND_LE (cpu->cpsr.z || !cpu->cpsr.n != !cpu->cpsr.v)

#define ARM_COND_AL 1 #define ARM_SIGN(I) ((I) >> 31) -#define ARM_ROR(I, ROTATE) ((((uint32_t) (I)) >> ROTATE) | (I << (32 - ROTATE))) +#define ARM_ROR(I, ROTATE) ((((uint32_t) (I)) >> ROTATE) | ((I) << (32 - ROTATE))) #define ARM_CARRY_FROM(M, N, D) (((uint32_t) (M) >> 31) + ((uint32_t) (N) >> 31) > ((uint32_t) (D) >> 31)) #define ARM_BORROW_FROM(M, N, D) (((uint32_t) (M)) >= ((uint32_t) (N)))