summaryrefslogtreecommitdiff
path: root/src/cpuops.c
diff options
context:
space:
mode:
authortwinaphex2018-12-28 00:32:13 +0100
committertwinaphex2018-12-28 00:32:13 +0100
commitc007afe6fd51827fade7aa15a0a798be8bd97839 (patch)
tree3b8aca538bec3b42ef9bd33549a15110c3a20e37 /src/cpuops.c
parent29db3cf00f552808b3f1dc5d11fcdbbefc659ec4 (diff)
downloadsnes9x2002-c007afe6fd51827fade7aa15a0a798be8bd97839.tar.gz
snes9x2002-c007afe6fd51827fade7aa15a0a798be8bd97839.tar.bz2
snes9x2002-c007afe6fd51827fade7aa15a0a798be8bd97839.zip
Start significantly refactoring this codebase so we can get it
to work with MSVC
Diffstat (limited to 'src/cpuops.c')
-rw-r--r--src/cpuops.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/cpuops.c b/src/cpuops.c
index b0c4b78..c58502a 100644
--- a/src/cpuops.c
+++ b/src/cpuops.c
@@ -3292,13 +3292,14 @@ static void OpBBX0(void)
/* XCE *************************************************************************************** */
static void OpFB(void)
{
+ uint8 A1, A2;
#ifdef VAR_CYCLES
- CPU.Cycles += ONE_CYCLE;
+ CPU.Cycles += ONE_CYCLE;
#endif
- uint8 A1 = ICPU._Carry;
- uint8 A2 = Registers.PH;
- ICPU._Carry = A2 & 1;
+ A1 = ICPU._Carry;
+ A2 = Registers.PH;
+ ICPU._Carry = A2 & 1;
Registers.PH = A1;
if (CheckEmulation())
@@ -3881,6 +3882,7 @@ static void Op42(void)
{
#ifndef SA1_OPCODES
uint8 b;
+ int8_t s9xInt8;
CPU.WaitAddress = NULL;
CPU.Cycles = CPU.NextEvent;
@@ -3889,7 +3891,7 @@ static void Op42(void)
b = *CPU.PC++;
//relative
- signed char s9xInt8 = 0xF0 | (b & 0xF);
+ s9xInt8 = 0xF0 | (b & 0xF);
#ifdef VAR_CYCLES
CPU.Cycles += CPU.MemSpeed;
#endif