1
0
Fork 0

changes for debugger

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@195
This commit is contained in:
Ulf Wohlers 2002-08-20 09:51:06 +00:00
parent bd9a864d53
commit 57bd6890f5
5 changed files with 19 additions and 3 deletions

View file

@ -18,6 +18,7 @@
void DEBUG_DrawScreen(void);
bool DEBUG_BreakPoint(void);
bool DEBUG_IntBreakpoint(Bit8u intNum);
void DEBUG_Enable(void);
extern Bitu cycle_count;

View file

@ -50,6 +50,7 @@ typedef Bitu (LoopHandler)(void);
void DOSBOX_RunMachine();
void DOSBOX_SetLoop(LoopHandler * handler);
void DOSBOX_SetNormalLoop();
void DOSBOX_Init(int argc, char* argv[]);
void DOSBOX_StartUp(void);

View file

@ -887,10 +887,17 @@ restart:
break;
case 0xcc: /* INT3 */
INTERRUPT(3);
#if C_DEBUG
return 0;
#endif
break;
case 0xcd: /* INT Ib */
{
Bit8u num=Fetchb();
#if C_DEBUG
SAVEIP;
if (DEBUG_IntBreakpoint(num)) return 0;
#endif
INTERRUPT(num);
}
break;

View file

@ -24,6 +24,10 @@
#include "pic.h"
#include "fpu.h"
#if C_DEBUG
#include "debug.h"
#endif
typedef PhysPt EAPoint;
#define SegBase(c) SegPhys(c)
#define LoadMb(off) mem_readb(off)

View file

@ -105,7 +105,7 @@ void DOS_Init();
void RENDER_Init(void);
void CPU_Init();
void FPU_Init();
//void FPU_Init();
void IO_Init(void);
void DMA_Init(void);
void MIXER_Init(void);
@ -189,6 +189,9 @@ void DOSBOX_SetLoop(LoopHandler * handler) {
loop=handler;
}
void DOSBOX_SetNormalLoop() {
loop=Normal_Loop;
}
void DOSBOX_RunMachine(void){
Bitu ret;
@ -208,11 +211,11 @@ static void InitSystems(void) {
HARDWARE_Init();
TIMER_Init();
CPU_Init();
#ifdef C_FPU
#if C_FPU
FPU_Init();
#endif
MIXER_Init();
#ifdef C_DEBUG
#if C_DEBUG
DEBUG_Init();
#endif
//Start up individual hardware