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/cop400 | |
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/cop400')
-rw-r--r-- | src/emu/cpu/cop400/cop400.h | 4 | ||||
-rw-r--r-- | src/emu/cpu/cop400/cop410.c | 6 | ||||
-rw-r--r-- | src/emu/cpu/cop400/cop420.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/cpu/cop400/cop400.h b/src/emu/cpu/cop400/cop400.h index 3b6b718ac68..1d5eca904f8 100644 --- a/src/emu/cpu/cop400/cop400.h +++ b/src/emu/cpu/cop400/cop400.h @@ -42,9 +42,9 @@ extern void cop410_get_info(UINT32 state, cpuinfo *info); extern void cop411_get_info(UINT32 state, cpuinfo *info); extern void cop420_get_info(UINT32 state, cpuinfo *info); -#ifdef MAME_DEBUG +#ifdef ENABLE_DEBUGGER offs_t cop410_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); offs_t cop420_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); -#endif /* MAME_DEBUG */ +#endif /* ENABLE_DEBUGGER */ #endif /* _COP400_H */ diff --git a/src/emu/cpu/cop400/cop410.c b/src/emu/cpu/cop400/cop410.c index 3135a0cf2ea..415d7b1bf5d 100644 --- a/src/emu/cpu/cop400/cop410.c +++ b/src/emu/cpu/cop400/cop410.c @@ -215,7 +215,7 @@ static int cop410_execute(int cycles) { prevPC = PC; - CALL_MAME_DEBUG; + CALL_DEBUGGER(PC); opcode = ROM(PC); @@ -351,9 +351,9 @@ void cop410_get_info(UINT32 state, cpuinfo *info) case CPUINFO_PTR_RESET: info->reset = cop410_reset; break; case CPUINFO_PTR_EXECUTE: info->execute = cop410_execute; break; case CPUINFO_PTR_BURN: info->burn = NULL; break; -#ifdef MAME_DEBUG +#ifdef ENABLE_DEBUGGER case CPUINFO_PTR_DISASSEMBLE: info->disassemble = cop410_dasm; break; -#endif /* MAME_DEBUG */ +#endif /* ENABLE_DEBUGGER */ case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cop410_ICount; break; case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map = construct_map_cop410_RAM; break; diff --git a/src/emu/cpu/cop400/cop420.c b/src/emu/cpu/cop400/cop420.c index e012748d688..648a165f8fd 100644 --- a/src/emu/cpu/cop400/cop420.c +++ b/src/emu/cpu/cop400/cop420.c @@ -223,7 +223,7 @@ static int cop420_execute(int cycles) { prevPC = PC; - CALL_MAME_DEBUG; + CALL_DEBUGGER(PC); opcode = ROM(PC); @@ -380,9 +380,9 @@ void cop420_get_info(UINT32 state, cpuinfo *info) case CPUINFO_PTR_RESET: info->reset = cop420_reset; break; case CPUINFO_PTR_EXECUTE: info->execute = cop420_execute; break; case CPUINFO_PTR_BURN: info->burn = NULL; break; -#ifdef MAME_DEBUG +#ifdef ENABLE_DEBUGGER case CPUINFO_PTR_DISASSEMBLE: info->disassemble = cop420_dasm; break; -#endif /* MAME_DEBUG */ +#endif /* ENABLE_DEBUGGER */ case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &cop420_ICount; break; case CPUINFO_PTR_INTERNAL_MEMORY_MAP + ADDRESS_SPACE_DATA: info->internal_map = construct_map_cop420_RAM; break; |