aboutsummaryrefslogtreecommitdiff
path: root/source/globals.cpp
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/globals.cpp
parente7ce8dd66c19de431fb347a0f3cd0ea867a802ce (diff)
downloadsnes9x2005-f29c76dc58689fe55f4ece494a0d3d44c831203f.tar.gz
snes9x2005-f29c76dc58689fe55f4ece494a0d3d44c831203f.tar.bz2
snes9x2005-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/globals.cpp')
-rw-r--r--source/globals.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/globals.cpp b/source/globals.cpp
index f00a621..ca2b12b 100644
--- a/source/globals.cpp
+++ b/source/globals.cpp
@@ -147,6 +147,7 @@ CMemory Memory;
struct SSNESGameFixes SNESGameFixes;
+#if 0
uint8 A1 = 0, A2 = 0, A3 = 0, A4 = 0, W1 = 0, W2 = 0, W3 = 0, W4 = 0;
uint8 Ans8 = 0;
uint16 Ans16 = 0;
@@ -157,6 +158,7 @@ uint32 Work32 = 0;
signed char Int8 = 0;
short Int16 = 0;
long Int32 = 0;
+#endif
#ifndef NO_OPEN_BUS
uint8 OpenBus = 0;
#endif