aboutsummaryrefslogtreecommitdiff
path: root/source/cpuaddr.h
diff options
context:
space:
mode:
authorNebuleon Fumika2012-12-24 03:53:20 -0500
committerNebuleon Fumika2012-12-24 03:53:20 -0500
commitf29c76dc58689fe55f4ece494a0d3d44c831203f (patch)
tree99379297882322e9bb77f818cff93ebe2dcb6623 /source/cpuaddr.h
parente7ce8dd66c19de431fb347a0f3cd0ea867a802ce (diff)
downloadsnesemu-f29c76dc58689fe55f4ece494a0d3d44c831203f.tar.gz
snesemu-f29c76dc58689fe55f4ece494a0d3d44c831203f.tar.bz2
snesemu-f29c76dc58689fe55f4ece494a0d3d44c831203f.zip
End the use of global variables for CPU emulation. This creates fewer memory store instructions in many SNES, SA1 and APU opcodes.
Fix the APU half-carry bug, which may be audible. globals.cpp: Get rid of A1, A2, A3, A4, W1, W2, W3, W4, Int8, Int16, Int32, Work8, Work16, Work32, Ans8, Ans16, Ans32.
Diffstat (limited to 'source/cpuaddr.h')
-rw-r--r--source/cpuaddr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cpuaddr.h b/source/cpuaddr.h
index 84ee45b..09f5788 100644
--- a/source/cpuaddr.h
+++ b/source/cpuaddr.h
@@ -134,7 +134,7 @@ static void Immediate16 (AccessMode a, InternalOp op)
static void Relative (AccessMode a, InternalOp op)
{
- Int8 = *CPU.PC++;
+ int8 Int8 = *CPU.PC++;
#ifndef SA1_OPCODES
CPU.Cycles += CPU.MemSpeed;
#endif