1
0
Fork 0

Changed location of instructions.h

Only enable heavy_debug if normal debug is enabled.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@637
This commit is contained in:
Sjoerd van der Berg 2003-01-18 11:29:23 +00:00
parent e907697244
commit d74635f15c
3 changed files with 4 additions and 3 deletions

View file

@ -98,7 +98,6 @@ static INLINE Bit32u Pop_32() {
#include "helpers.h"
#include "table_ea.h"
#include "../modrm.h"
#include "instructions.h"
static Bit8s table_df_8[2]={1,-1};
@ -355,7 +354,7 @@ rep_again:
default:
IPPoint--;
LOG_DEBUG("Unhandled REP Prefix %X",Fetchb());
goto normalexit;
}
/* If we end up here it's because the CPU_Cycles counter is 0, so restart instruction */
IPPoint-=(prefix.count+2); /* Rep instruction and whatever string instruction */

View file

@ -63,6 +63,7 @@ extern Bitu cycle_count;
#endif
#include "instructions.h"
#include "core_16/support.h"
static Bitu CPU_Real_16_Slow_Decode_Trap(void);
@ -71,10 +72,10 @@ static Bitu CPU_Real_16_Slow_Decode(void) {
while (CPU_Cycles>0) {
#if C_DEBUG
cycle_count++;
#endif
#if C_HEAVY_DEBUG
SAVEIP;
if (DEBUG_HeavyIsBreakpoint()) return 1;
#endif
#endif
#include "core_16/main.h"
if (prefix.count) {
@ -103,6 +104,7 @@ static Bitu CPU_Real_16_Slow_Decode_Trap(void) {
return CBRET_NONE;
}
void CPU_Real_16_Slow_Start(void) {
cpudecoder=&CPU_Real_16_Slow_Decode;
EAPrefixTable[0]=&GetEA_16_n;