aboutsummaryrefslogtreecommitdiff
path: root/source/fxinst.c
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/fxinst.c
parentd59c856fbf576daa91fa4a8bade38d97b4edbbe4 (diff)
downloadsnesemu-3b8323853f4eeddb61398e77c51bb2349f430227.tar.gz
snesemu-3b8323853f4eeddb61398e77c51bb2349f430227.tar.bz2
snesemu-3b8323853f4eeddb61398e77c51bb2349f430227.zip
Removed a LOT of useless stuff.
Diffstat (limited to 'source/fxinst.c')
-rw-r--r--source/fxinst.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/source/fxinst.c b/source/fxinst.c
index b0fa0d3..05ebba2 100644
--- a/source/fxinst.c
+++ b/source/fxinst.c
@@ -60,23 +60,6 @@ static void fx_cache()
fx_flushCache();
GSU.vCacheBaseReg = c;
GSU.bCacheActive = true;
-#if 0
- if (c < (0x10000 - 512))
- {
- uint8_t const* t = &ROM(c);
- memcpy(GSU.pvCache, t, 512);
- }
- else
- {
- uint8_t const* t1;
- uint8_t const* t2;
- uint32_t i = 0x10000 - c;
- t1 = &ROM(c);
- t2 = &ROM(0);
- memcpy(GSU.pvCache, t1, i);
- memcpy(&GSU.pvCache[i], t2, 512 - i);
- }
-#endif
}
R15++;
CLRFLAGS;
@@ -3261,11 +3244,6 @@ static uint32_t fx_run(uint32_t nInstructions)
READR14;
while (TF(G) && (GSU.vCounter-- > 0))
FX_STEP;
- /*
- #ifndef FX_ADDRESS_CHECK
- GSU.vPipeAdr = USEX16(R15-1) | (USEX8(GSU.vPrgBankReg)<<16);
- #endif
- */
return (nInstructions - GSU.vInstCount);
}
@@ -3282,11 +3260,6 @@ static uint32_t fx_run_to_breakpoint(uint32_t nInstructions)
break;
}
}
- /*
- #ifndef FX_ADDRESS_CHECK
- GSU.vPipeAdr = USEX16(R15-1) | (USEX8(GSU.vPrgBankReg)<<16);
- #endif
- */
return vCounter;
}
@@ -3305,11 +3278,6 @@ static uint32_t fx_step_over(uint32_t nInstructions)
if (USEX16(R15) == GSU.vStepPoint)
break;
}
- /*
- #ifndef FX_ADDRESS_CHECK
- GSU.vPipeAdr = USEX16(R15-1) | (USEX8(GSU.vPrgBankReg)<<16);
- #endif
- */
return vCounter;
}
@@ -3555,4 +3523,3 @@ void (*fx_apfOpcodeTable[])() =
&fx_lm_r0, &fx_lm_r1, &fx_lm_r2, &fx_lm_r3, &fx_lm_r4, &fx_lm_r5, &fx_lm_r6, &fx_lm_r7,
&fx_lm_r8, &fx_lm_r9, &fx_lm_r10, &fx_lm_r11, &fx_lm_r12, &fx_lm_r13, &fx_lm_r14, &fx_lm_r15,
};
-