From bc103fbf60e84b5ce0985c309310ec77b6d97bcd Mon Sep 17 00:00:00 2001 From: bgk Date: Sun, 3 Feb 2013 12:43:01 +0000 Subject: [PATCH] GBA: Fix build --- 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