From 59579cb66fcae7b014af6a97b5821a802bcdad6e Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Sat, 2 Feb 2013 03:48:32 +0000 Subject: [PATCH] commit abhoriels RSBS and RSCS patch git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1151 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/gba/GBA-arm.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gba/GBA-arm.cpp b/src/gba/GBA-arm.cpp index 58da037b..6063ce46 100644 --- a/src/gba/GBA-arm.cpp +++ b/src/gba/GBA-arm.cpp @@ -964,9 +964,8 @@ static void count(u32 opcode, int cond_res) #endif #ifndef OP_RSB #define OP_RSB \ - u32 lhs = reg[(opcode>>16)&15].I; \ - u32 rhs = value; \ - u32 res = rhs - lhs; \ + u32 lhs = value; \ + u32 rhs = reg[(opcode>>16)&15].I; \ reg[dest].I = res; #endif #ifndef OP_RSBS