diff options
author | twinaphex | 2015-11-05 16:37:11 +0100 |
---|---|---|
committer | twinaphex | 2015-11-05 16:37:11 +0100 |
commit | d68763cd7cb4f7487d760a1dea17ca167d45e182 (patch) | |
tree | 74a19723b2a04d6c01f6ce59a0c0572f486ee985 /source/spc700.c | |
parent | 3a892c0d1f6aef6b1785740d358d2159945a6110 (diff) | |
download | snes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.tar.gz snes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.tar.bz2 snes9x2005-d68763cd7cb4f7487d760a1dea17ca167d45e182.zip |
Start using stdint types
Diffstat (limited to 'source/spc700.c')
-rw-r--r-- | source/spc700.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/spc700.c b/source/spc700.c index 4e68ebe..140c832 100644 --- a/source/spc700.c +++ b/source/spc700.c @@ -149,7 +149,7 @@ void S9xAPUSetByte(uint8_t, uint32_t address); // XXX: HalfCarry - BJ fixed? #define SBC(a,b)\ -int16_t Int16 = (short) (a) - (short) (b) + (short) (APUCheckCarry ()) - 1;\ +int16_t Int16 = (int16_t) (a) - (int16_t) (b) + (int16_t) (APUCheckCarry ()) - 1;\ IAPU._Carry = Int16 >= 0;\ if ((((a) ^ (b)) & 0x80) && (((a) ^ (uint8_t) Int16) & 0x80))\ APUSetOverflow ();\ @@ -177,7 +177,7 @@ if(((a) ^ (b) ^ (uint8_t) Work16) & 0x10)\ APUSetZN8 ((uint8_t) Work16); #define CMP(a,b)\ -int16_t Int16 = (short) (a) - (short) (b);\ +int16_t Int16 = (int16_t) (a) - (int16_t) (b);\ IAPU._Carry = Int16 >= 0;\ APUSetZN8 ((uint8_t) Int16); |