summaryrefslogtreecommitdiff
path: root/src/fxemu.c
diff options
context:
space:
mode:
authormeepingsnesroms2016-10-18 18:38:32 -0700
committermeepingsnesroms2016-10-18 18:38:32 -0700
commit32cfef97a6f652c6f23c35db0a00eb1cd2d8b320 (patch)
tree13308752c72a85bf149ac902f06d8037333cc890 /src/fxemu.c
parentbb0fecf54bff6b2754f03cc0b9142386d02dcb04 (diff)
downloadsnes9x2002-32cfef97a6f652c6f23c35db0a00eb1cd2d8b320.tar.gz
snes9x2002-32cfef97a6f652c6f23c35db0a00eb1cd2d8b320.tar.bz2
snes9x2002-32cfef97a6f652c6f23c35db0a00eb1cd2d8b320.zip
Remove breakpoint functions.
No one should use this emu for testing, and those functions where just floating there disconnected.
Diffstat (limited to 'src/fxemu.c')
-rw-r--r--src/fxemu.c48
1 files changed, 1 insertions, 47 deletions
diff --git a/src/fxemu.c b/src/fxemu.c
index 8cd2b66..fc2cc9c 100644
--- a/src/fxemu.c
+++ b/src/fxemu.c
@@ -629,10 +629,7 @@ int FxEmulate(uint32 nInstructions)
/* Execute GSU session */
CF(IRQ);
- if (GSU.bBreakPoint)
- vCount = fx_ppfFunctionTable[FX_FUNCTION_RUN_TO_BREAKPOINT](nInstructions);
- else
- vCount = fx_ppfFunctionTable[FX_FUNCTION_RUN](nInstructions);
+ vCount = fx_ppfFunctionTable[FX_FUNCTION_RUN](nInstructions);
/* Store GSU registers */
fx_writeRegisterSpace();
@@ -644,49 +641,6 @@ int FxEmulate(uint32 nInstructions)
return vCount;
}
-/* Breakpoints */
-void FxBreakPointSet(uint32 vAddress)
-{
- GSU.bBreakPoint = TRUE;
- GSU.vBreakPoint = USEX16(vAddress);
-}
-void FxBreakPointClear()
-{
- GSU.bBreakPoint = FALSE;
-}
-
-/* Step by step execution */
-int FxStepOver(uint32 nInstructions)
-{
- uint32 vCount;
- fx_readRegisterSpace();
-
- /* Check if the start address is valid */
- if (!fx_checkStartAddress())
- {
- CF(G);
-#if 0
- GSU.vIllegalAddress = (GSU.vPrgBankReg << 24) | R15;
- return FX_ERROR_ILLEGAL_ADDRESS;
-#else
- return 0;
-#endif
- }
-
- if (PIPE >= 0xf0)
- GSU.vStepPoint = USEX16(R15 + 3);
- else if ((PIPE >= 0x05 && PIPE <= 0x0f) || (PIPE >= 0xa0 && PIPE <= 0xaf))
- GSU.vStepPoint = USEX16(R15 + 2);
- else
- GSU.vStepPoint = USEX16(R15 + 1);
- vCount = fx_ppfFunctionTable[FX_FUNCTION_STEP_OVER](nInstructions);
- fx_writeRegisterSpace();
- if (GSU.vErrorCode)
- return GSU.vErrorCode;
- else
- return vCount;
-}
-
/* Errors */
int FxGetErrorCode()
{