summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/alph8201
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-02-02 08:57:39 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-02-02 08:57:39 +0000
commitaa16ee779d83c827b3c0b2c848b42321266fdffc (patch)
treef70c01e60e1b0ca9eb78d733f528568556448144 /src/emu/cpu/alph8201
parent2df389a77d21a027c3c3cbddceb4a225003fdf04 (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/alph8201')
-rw-r--r--src/emu/cpu/alph8201/alph8201.c6
-rw-r--r--src/emu/cpu/alph8201/alph8201.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/alph8201/alph8201.c b/src/emu/cpu/alph8201/alph8201.c
index ae154bc398b..536c5bc7003 100644
--- a/src/emu/cpu/alph8201/alph8201.c
+++ b/src/emu/cpu/alph8201/alph8201.c
@@ -785,7 +785,7 @@ mame_printf_debug("ALPHA8201 START ENTRY=%02X PC=%03X\n",pcptr,PC);
/* run */
R.PREVPC = PC;
- CALL_MAME_DEBUG;
+ CALL_DEBUGGER(PC);
opcode =M_RDOP(PC);
#if TRACE_PC
mame_printf_debug("ALPHA8201: PC = %03x, opcode = %02x\n", PC, opcode);
@@ -949,9 +949,9 @@ static void alpha8xxx_get_info(UINT32 state, cpuinfo *info)
case CPUINFO_PTR_RESET: info->reset = ALPHA8201_reset; break;
case CPUINFO_PTR_EXIT: info->exit = ALPHA8201_exit; break;
case CPUINFO_PTR_BURN: info->burn = NULL; break;
-#ifdef MAME_DEBUG
+#ifdef ENABLE_DEBUGGER
case CPUINFO_PTR_DISASSEMBLE: info->disassemble = ALPHA8201_dasm; break;
-#endif /* MAME_DEBUG */
+#endif /* ENABLE_DEBUGGER */
case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &ALPHA8201_ICount; break;
/* --- the following bits of info are returned as NULL-terminated strings --- */
diff --git a/src/emu/cpu/alph8201/alph8201.h b/src/emu/cpu/alph8201/alph8201.h
index 015d3848f88..9b99e8eb86b 100644
--- a/src/emu/cpu/alph8201/alph8201.h
+++ b/src/emu/cpu/alph8201/alph8201.h
@@ -65,7 +65,7 @@ extern void ALPHA8301_get_info(UINT32 state, cpuinfo *info);
*/
#define ALPHA8201_RDOP_ARG(A) ((unsigned)cpu_readop_arg(A))
-#ifdef MAME_DEBUG
+#ifdef ENABLE_DEBUGGER
offs_t ALPHA8201_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
#endif