aboutsummaryrefslogtreecommitdiff
path: root/source/cpumacro.h
diff options
context:
space:
mode:
authorJoão Silva2017-01-14 23:08:50 +0000
committerJoão Silva2017-01-14 23:08:50 +0000
commit3b8323853f4eeddb61398e77c51bb2349f430227 (patch)
tree55cb980be4bf5bf93041392470637d78c73b4854 /source/cpumacro.h
parentd59c856fbf576daa91fa4a8bade38d97b4edbbe4 (diff)
downloadsnesemu-3b8323853f4eeddb61398e77c51bb2349f430227.tar.gz
snesemu-3b8323853f4eeddb61398e77c51bb2349f430227.tar.bz2
snesemu-3b8323853f4eeddb61398e77c51bb2349f430227.zip
Removed a LOT of useless stuff.
Diffstat (limited to 'source/cpumacro.h')
-rw-r--r--source/cpumacro.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/cpumacro.h b/source/cpumacro.h
index 1b2564b..5539445 100644
--- a/source/cpumacro.h
+++ b/source/cpumacro.h
@@ -178,7 +178,6 @@ static void ASL16(long Addr)
uint16_t Work16 = S9xGetWord(Addr);
ICPU._Carry = (Work16 & 0x8000) != 0;
Work16 <<= 1;
- //S9xSetWord (Work16, Addr);
S9xSetByte(Work16 >> 8, Addr + 1);
S9xSetByte(Work16 & 0xFF, Addr);
SetZN16(Work16);
@@ -290,7 +289,6 @@ static void DEC16(long Addr)
#endif
uint16_t Work16 = S9xGetWord(Addr) - 1;
- //S9xSetWord (Work16, Addr);
S9xSetByte(Work16 >> 8, Addr + 1);
S9xSetByte(Work16 & 0xFF, Addr);
SetZN16(Work16);
@@ -352,7 +350,6 @@ static void INC16(long Addr)
#endif
uint16_t Work16 = S9xGetWord(Addr) + 1;
- //S9xSetWord (Work16, Addr);
S9xSetByte(Work16 >> 8, Addr + 1);
S9xSetByte(Work16 & 0xFF, Addr);
SetZN16(Work16);
@@ -430,7 +427,6 @@ static void LSR16(long Addr)
uint16_t Work16 = S9xGetWord(Addr);
ICPU._Carry = Work16 & 1;
Work16 >>= 1;
- //S9xSetWord (Work16, Addr);
S9xSetByte(Work16 >> 8, Addr + 1);
S9xSetByte(Work16 & 0xFF, Addr);
SetZN16(Work16);
@@ -487,7 +483,6 @@ static void ROL16(long Addr)
Work32 <<= 1;
Work32 |= CheckCarry();
ICPU._Carry = Work32 >= 0x10000;
- //S9xSetWord ((uint16_t) Work32, Addr);
S9xSetByte((Work32 >> 8) & 0xFF, Addr + 1);
S9xSetByte(Work32 & 0xFF, Addr);
SetZN16((uint16_t) Work32);
@@ -534,7 +529,6 @@ static void ROR16(long Addr)
Work32 |= (int) CheckCarry() << 16;
ICPU._Carry = (uint8_t)(Work32 & 1);
Work32 >>= 1;
- //S9xSetWord ((uint16_t) Work32, Addr);
S9xSetByte((Work32 >> 8) & 0x00FF, Addr + 1);
S9xSetByte(Work32 & 0x00FF, Addr);
SetZN16((uint16_t) Work32);
@@ -714,7 +708,6 @@ static void TSB16(long Addr)
uint16_t Work16 = S9xGetWord(Addr);
ICPU._Zero = (Work16 & ICPU.Registers.A.W) != 0;
Work16 |= ICPU.Registers.A.W;
- //S9xSetWord (Work16, Addr);
S9xSetByte(Work16 >> 8, Addr + 1);
S9xSetByte(Work16 & 0xFF, Addr);
}
@@ -732,7 +725,6 @@ static void TRB16(long Addr)
uint16_t Work16 = S9xGetWord(Addr);
ICPU._Zero = (Work16 & ICPU.Registers.A.W) != 0;
Work16 &= ~ICPU.Registers.A.W;
- //S9xSetWord (Work16, Addr);
S9xSetByte(Work16 >> 8, Addr + 1);
S9xSetByte(Work16 & 0xFF, Addr);
}