1
0
Fork 0

Changes for debugger

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@526
This commit is contained in:
Ulf Wohlers 2002-11-17 12:27:17 +00:00
parent b677b59c7f
commit 813c012c4f

View file

@ -70,7 +70,7 @@ static Bitu CPU_Real_16_Slow_Decode(void) {
#endif
#if C_HEAVY_DEBUG
SAVEIP;
if (DEBUG_HeavyIsBreakpoint()) return CBRET_NONE;
if (DEBUG_HeavyIsBreakpoint()) return 1;
#endif
#include "core_16/main.h"
// if (prefix.count) LOG_DEBUG("Prefix for non prefixed instruction");
@ -82,16 +82,19 @@ static Bitu CPU_Real_16_Slow_Decode(void) {
static Bitu CPU_Real_16_Slow_Decode_Trap(void) {
Bits oldCycles = CPU_Cycles;
CPU_Cycles = 1;
CPU_Real_16_Slow_Decode();
LOG_DEBUG("TRAP: Trap Flag executed");
// LOG_DEBUG("TRAP: Trap Flag executed");
INTERRUPT(1);
cpudecoder=&CPU_Real_16_Slow_Decode;
CPU_Cycles = oldCycles-1;
cpudecoder = &CPU_Real_16_Slow_Decode;
return CBRET_NONE;
}
void CPU_Real_16_Slow_Start(void) {
cpudecoder=&CPU_Real_16_Slow_Decode;
EAPrefixTable[0]=&GetEA_16_n;