diff options
author | Nebuleon Fumika | 2012-12-24 03:53:20 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2012-12-24 03:53:20 -0500 |
commit | f29c76dc58689fe55f4ece494a0d3d44c831203f (patch) | |
tree | 99379297882322e9bb77f818cff93ebe2dcb6623 /source/cpuaddr.h | |
parent | e7ce8dd66c19de431fb347a0f3cd0ea867a802ce (diff) | |
download | snes9x2005-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/cpuaddr.h')
-rw-r--r-- | source/cpuaddr.h | 2 |
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 |