diff options
author | aliaspider | 2014-10-28 05:39:03 +0100 |
---|---|---|
committer | aliaspider | 2014-10-28 05:39:03 +0100 |
commit | 76fef9625dd83399979a653b74f377f730725a70 (patch) | |
tree | f043e3774bc36acd7af98a2e8c3beb4a6fcbbf88 /source/cpuops.cpp | |
parent | 5a96997f186b2cff1a24ed5572430fe0f031e8d3 (diff) | |
download | snes9x2005-76fef9625dd83399979a653b74f377f730725a70.tar.gz snes9x2005-76fef9625dd83399979a653b74f377f730725a70.tar.bz2 snes9x2005-76fef9625dd83399979a653b74f377f730725a70.zip |
64-bit safer
Diffstat (limited to 'source/cpuops.cpp')
-rw-r--r-- | source/cpuops.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cpuops.cpp b/source/cpuops.cpp index db88c34..2279158 100644 --- a/source/cpuops.cpp +++ b/source/cpuops.cpp @@ -790,7 +790,7 @@ static void Op3CM0 (void) /* CMP *************************************************************************************** */ static void OpC9M1 (void) { - int32 Int32 = (int) ICPU.Registers.AL - (int) *CPU.PC++; + int32 Int32 = (int) ICPU.Registers.AL - (intptr_t) *CPU.PC++; ICPU._Carry = Int32 >= 0; SetZN8 ((uint8) Int32); #ifndef SA1_OPCODES @@ -1052,7 +1052,7 @@ static void OpD3M0 (void) /* CMX *************************************************************************************** */ static void OpE0X1 (void) { - int32 Int32 = (int) ICPU.Registers.XL - (int) *CPU.PC++; + int32 Int32 = (int) ICPU.Registers.XL - (intptr_t) *CPU.PC++; ICPU._Carry = Int32 >= 0; SetZN8 ((uint8) Int32); #ifndef SA1_OPCODES @@ -1114,7 +1114,7 @@ static void OpECX0 (void) /* CMY *************************************************************************************** */ static void OpC0X1 (void) { - int32 Int32 = (int) ICPU.Registers.YL - (int) *CPU.PC++; + int32 Int32 = (int) ICPU.Registers.YL - (intptr_t) *CPU.PC++; ICPU._Carry = Int32 >= 0; SetZN8 ((uint8) Int32); #ifndef SA1_OPCODES |