diff options
author | 2008-02-02 08:57:39 +0000 | |
---|---|---|
committer | 2008-02-02 08:57:39 +0000 | |
commit | aa16ee779d83c827b3c0b2c848b42321266fdffc (patch) | |
tree | f70c01e60e1b0ca9eb78d733f528568556448144 /src/emu/cpu/v60 | |
parent | 2df389a77d21a027c3c3cbddceb4a225003fdf04 (diff) |
Changed debugger-related code to be based off a new makefile define (DEBUGGER) which sets
a new compile-time define (ENABLE_DEBUGGER). This means that MAME_DEBUG no longer means
"enable debugger", it simply enables debugging features such as assertions and debug code
in drivers.
Also removed the various levels of opbase protection in memory.h and always just turned
on full bounds checking.
Fixed build break due to missing ampoker.lay -> ampoker2.lay renaming.
Diffstat (limited to 'src/emu/cpu/v60')
-rw-r--r-- | src/emu/cpu/v60/v60.c | 14 | ||||
-rw-r--r-- | src/emu/cpu/v60/v60d.c | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/cpu/v60/v60.c b/src/emu/cpu/v60/v60.c index e6e08e35e07..d1892b371e4 100644 --- a/src/emu/cpu/v60/v60.c +++ b/src/emu/cpu/v60/v60.c @@ -426,7 +426,7 @@ static int v60_execute(int cycles) v60_try_irq(); while(v60_ICount >= 0) { v60.PPC = PC; - CALL_MAME_DEBUG; + CALL_DEBUGGER(PC); v60_ICount -= 8; /* fix me -- this is just an average */ inc = OpCodeTable[OpRead8(PC)](); PC += inc; @@ -453,10 +453,10 @@ static void v60_set_context(void *src) } -#ifdef MAME_DEBUG +#ifdef ENABLE_DEBUGGER offs_t v60_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); offs_t v70_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); -#endif /* MAME_DEBUG */ +#endif /* ENABLE_DEBUGGER */ /************************************************************************** @@ -642,9 +642,9 @@ void v60_get_info(UINT32 state, cpuinfo *info) case CPUINFO_PTR_EXIT: info->exit = v60_exit; break; case CPUINFO_PTR_EXECUTE: info->execute = v60_execute; break; case CPUINFO_PTR_BURN: info->burn = NULL; break; -#ifdef MAME_DEBUG +#ifdef ENABLE_DEBUGGER case CPUINFO_PTR_DISASSEMBLE: info->disassemble = v60_dasm; break; -#endif /* MAME_DEBUG */ +#endif /* ENABLE_DEBUGGER */ case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &v60_ICount; break; /* --- the following bits of info are returned as NULL-terminated strings --- */ @@ -733,9 +733,9 @@ void v70_get_info(UINT32 state, cpuinfo *info) /* --- the following bits of info are returned as pointers to data or functions --- */ case CPUINFO_PTR_INIT: info->init = v70_init; break; -#ifdef MAME_DEBUG +#ifdef ENABLE_DEBUGGER case CPUINFO_PTR_DISASSEMBLE: info->disassemble = v70_dasm; break; -#endif /* MAME_DEBUG */ +#endif /* ENABLE_DEBUGGER */ /* --- the following bits of info are returned as NULL-terminated strings --- */ case CPUINFO_STR_NAME: strcpy(info->s, "V70"); break; diff --git a/src/emu/cpu/v60/v60d.c b/src/emu/cpu/v60/v60d.c index 0723715986f..97804598569 100644 --- a/src/emu/cpu/v60/v60d.c +++ b/src/emu/cpu/v60/v60d.c @@ -1460,7 +1460,7 @@ static int (*const dasm_optable[256])(unsigned ipc, unsigned pc, char *out) = /* 0xFF */ dopCLRTLB }; -#ifdef MAME_DEBUG +#ifdef ENABLE_DEBUGGER offs_t v60_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram) { rombase = oprom; |