From 7592321cdfa3e0334add80c8a15938eca0e88783 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sun, 3 Jun 2018 19:23:13 +0800 Subject: [PATCH] GBA: Update OP_RSB --- src/gba.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gba.cpp b/src/gba.cpp index 5c7bd00f..03ad601d 100755 --- a/src/gba.cpp +++ b/src/gba.cpp @@ -2862,9 +2862,9 @@ static void armUnknownInsn(u32 opcode) #endif #ifndef OP_RSB #define OP_RSB \ - u32 lhs = bus.reg[(opcode>>16)&15].I; \ - u32 rhs = value; \ - u32 res = rhs - lhs; \ + u32 lhs = value; \ + u32 rhs = bus.reg[(opcode>>16)&15].I; \ + u32 res = lhs - rhs; \ bus.reg[dest].I = res; #endif #ifndef OP_RSBS