aboutsummaryrefslogtreecommitdiff
path: root/source/cpumacro.h
diff options
context:
space:
mode:
authortwinaphex2015-11-05 16:37:11 +0100
committertwinaphex2015-11-05 16:37:11 +0100
commitd68763cd7cb4f7487d760a1dea17ca167d45e182 (patch)
tree74a19723b2a04d6c01f6ce59a0c0572f486ee985 /source/cpumacro.h
parent3a892c0d1f6aef6b1785740d358d2159945a6110 (diff)
downloadsnes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.tar.gz
snes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.tar.bz2
snes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.zip
Start using stdint types
Diffstat (limited to 'source/cpumacro.h')
-rw-r--r--source/cpumacro.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/cpumacro.h b/source/cpumacro.h
index 6975b04..986177f 100644
--- a/source/cpumacro.h
+++ b/source/cpumacro.h
@@ -306,8 +306,8 @@ static void CMP16(long Addr)
static void CMP8(long Addr)
{
- int16_t Int16 = (short) ICPU.Registers.AL -
- (short) S9xGetByte(Addr);
+ int16_t Int16 = (int16_t) ICPU.Registers.AL -
+ (int16_t) S9xGetByte(Addr);
ICPU._Carry = Int16 >= 0;
SetZN8((uint8_t) Int16);
}
@@ -322,8 +322,8 @@ static void CMX16(long Addr)
static void CMX8(long Addr)
{
- int16_t Int16 = (short) ICPU.Registers.XL -
- (short) S9xGetByte(Addr);
+ int16_t Int16 = (int16_t) ICPU.Registers.XL -
+ (int16_t) S9xGetByte(Addr);
ICPU._Carry = Int16 >= 0;
SetZN8((uint8_t) Int16);
}
@@ -338,8 +338,8 @@ static void CMY16(long Addr)
static void CMY8(long Addr)
{
- int16_t Int16 = (short) ICPU.Registers.YL -
- (short) S9xGetByte(Addr);
+ int16_t Int16 = (int16_t) ICPU.Registers.YL -
+ (int16_t) S9xGetByte(Addr);
ICPU._Carry = Int16 >= 0;
SetZN8((uint8_t) Int16);
}
@@ -742,8 +742,8 @@ static void SBC8(long Addr)
}
else
{
- int16_t Int16 = (short) ICPU.Registers.AL - (short) Work8 +
- (short) CheckCarry() - 1;
+ int16_t Int16 = (int16_t) ICPU.Registers.AL - (int16_t) Work8 +
+ (int16_t) CheckCarry() - 1;
ICPU._Carry = Int16 >= 0;
if ((ICPU.Registers.AL ^ Work8) &