aboutsummaryrefslogtreecommitdiff
path: root/source/cpumacro.h
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-04 23:12:10 -0500
committerNebuleon Fumika2013-01-04 23:12:10 -0500
commit7c1327bd24d539a79824c504a9ac438c8a97a207 (patch)
tree2ede500df41a26deac7355d750c68de63382dd43 /source/cpumacro.h
parentbfef6f17bdec77fdbbd2f99387058024673818a4 (diff)
downloadsnesemu-7c1327bd24d539a79824c504a9ac438c8a97a207.tar.gz
snesemu-7c1327bd24d539a79824c504a9ac438c8a97a207.tar.bz2
snesemu-7c1327bd24d539a79824c504a9ac438c8a97a207.zip
Move all CPU cycle calculations into cpuops.cpp.
Diffstat (limited to 'source/cpumacro.h')
-rw-r--r--source/cpumacro.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/source/cpumacro.h b/source/cpumacro.h
index fc9b4a6..c5ed835 100644
--- a/source/cpumacro.h
+++ b/source/cpumacro.h
@@ -266,9 +266,6 @@ static inline void A_ASL8 ()
static void ASL16 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint16 Work16 = S9xGetWord (Addr);
ICPU._Carry = (Work16 & 0x8000) != 0;
Work16 <<= 1;
@@ -280,9 +277,6 @@ static void ASL16 (long Addr)
static void ASL8 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint8 Work8 = S9xGetByte (Addr);
ICPU._Carry = (Work8 & 0x80) != 0;
Work8 <<= 1;
@@ -382,9 +376,6 @@ static inline void A_DEC8 ()
static void DEC16 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
#ifdef CPU_SHUTDOWN
CPU.WaitAddress = NULL;
#endif
@@ -398,9 +389,6 @@ static void DEC16 (long Addr)
static void DEC8 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
#ifdef CPU_SHUTDOWN
CPU.WaitAddress = NULL;
#endif
@@ -450,9 +438,6 @@ static inline void A_INC8 ()
static void INC16 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
#ifdef CPU_SHUTDOWN
CPU.WaitAddress = NULL;
#endif
@@ -466,9 +451,6 @@ static void INC16 (long Addr)
static void INC8 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
#ifdef CPU_SHUTDOWN
CPU.WaitAddress = NULL;
#endif
@@ -536,9 +518,6 @@ static inline void A_LSR8 ()
static void LSR16 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint16 Work16 = S9xGetWord (Addr);
ICPU._Carry = Work16 & 1;
Work16 >>= 1;
@@ -550,9 +529,6 @@ static void LSR16 (long Addr)
static void LSR8 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint8 Work8 = S9xGetByte (Addr);
ICPU._Carry = Work8 & 1;
Work8 >>= 1;
@@ -598,9 +574,6 @@ static inline void A_ROL8 ()
static void ROL16 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint32 Work32 = S9xGetWord (Addr);
Work32 <<= 1;
Work32 |= CheckCarry();
@@ -613,9 +586,6 @@ static void ROL16 (long Addr)
static void ROL8 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint16 Work16 = S9xGetByte (Addr);
Work16 <<= 1;
Work16 |= CheckCarry ();
@@ -651,9 +621,6 @@ static inline void A_ROR8 ()
static void ROR16 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint32 Work32 = S9xGetWord (Addr);
Work32 |= (int) CheckCarry() << 16;
ICPU._Carry = (uint8) (Work32 & 1);
@@ -666,9 +633,6 @@ static void ROR16 (long Addr)
static void ROR8 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint16 Work16 = S9xGetByte (Addr);
Work16 |= (int) CheckCarry () << 8;
ICPU._Carry = (uint8) (Work16 & 1);
@@ -840,9 +804,6 @@ static void STZ8 (long Addr)
static void TSB16 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint16 Work16 = S9xGetWord (Addr);
ICPU._Zero = (Work16 & ICPU.Registers.A.W) != 0;
Work16 |= ICPU.Registers.A.W;
@@ -853,9 +814,6 @@ static void TSB16 (long Addr)
static void TSB8 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint8 Work8 = S9xGetByte (Addr);
ICPU._Zero = Work8 & ICPU.Registers.AL;
Work8 |= ICPU.Registers.AL;
@@ -864,9 +822,6 @@ static void TSB8 (long Addr)
static void TRB16 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint16 Work16 = S9xGetWord (Addr);
ICPU._Zero = (Work16 & ICPU.Registers.A.W) != 0;
Work16 &= ~ICPU.Registers.A.W;
@@ -877,9 +832,6 @@ static void TRB16 (long Addr)
static void TRB8 (long Addr)
{
-#ifndef SA1_OPCODES
- CPU.Cycles += ONE_CYCLE;
-#endif
uint8 Work8 = S9xGetByte (Addr);
ICPU._Zero = Work8 & ICPU.Registers.AL;
Work8 &= ~ICPU.Registers.AL;