From 1a6a4d2f9d1a244e5897e57e1f5429e6891d429e Mon Sep 17 00:00:00 2001 From: bgk Date: Sun, 3 Feb 2013 12:43:01 +0000 Subject: [PATCH] GBA: Fix build git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1153 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/gba/GBA-arm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gba/GBA-arm.cpp b/src/gba/GBA-arm.cpp index 6063ce46..90d749e5 100644 --- a/src/gba/GBA-arm.cpp +++ b/src/gba/GBA-arm.cpp @@ -966,6 +966,7 @@ static void count(u32 opcode, int cond_res) #define OP_RSB \ u32 lhs = value; \ u32 rhs = reg[(opcode>>16)&15].I; \ + u32 res = lhs - rhs; \ reg[dest].I = res; #endif #ifndef OP_RSBS @@ -2959,4 +2960,4 @@ int armExecute() } while (cpuTotalTicks