implement ALL of abhoriels patch correctly.

This commit is contained in:
squall-leonhart 2013-02-03 17:25:22 +00:00
parent 26acc55d93
commit 306291cd55
1 changed files with 4 additions and 4 deletions

View File

@ -991,9 +991,9 @@ static void count(u32 opcode, int cond_res)
#endif #endif
#ifndef OP_RSC #ifndef OP_RSC
#define OP_RSC \ #define OP_RSC \
u32 lhs = reg[(opcode>>16)&15].I; \ u32 lhs = value; \
u32 rhs = value; \ u32 rhs = reg[(opcode>>16)&15].I; \
u32 res = rhs - lhs - !((u32)C_FLAG); \ u32 res = lhs - rhs - !((u32)C_FLAG); \
reg[dest].I = res; reg[dest].I = res;
#endif #endif
#ifndef OP_RSCS #ifndef OP_RSCS
@ -2947,4 +2947,4 @@ int armExecute()
} while (cpuTotalTicks<cpuNextEvent && armState && !holdState && !SWITicks); } while (cpuTotalTicks<cpuNextEvent && armState && !holdState && !SWITicks);
return 1; return 1;
} }