aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-02-09 08:18:05 -0500
committerLioncash <mathew1800@gmail.com>2017-02-09 08:18:05 -0500
commit896bb1b7813e9197b0532841b681fec1cefb6146 (patch)
tree0f97349282d6d54c9f45f58d3ad2abd800865ae9
parent2bd67aef64e6932019fa90db982a1755ce100c0f (diff)
ARM: Fix out of bounds array indexing in RestoreCPSR
-rw-r--r--ARM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ARM.cpp b/ARM.cpp
index f582deb..10b8795 100644
--- a/ARM.cpp
+++ b/ARM.cpp
@@ -197,7 +197,7 @@ void ARM::RestoreCPSR()
switch (CPSR & 0x1F)
{
case 0x11:
- CPSR = R_FIQ[8];
+ CPSR = R_FIQ[7];
break;
case 0x12: