summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/pdp1/pdp1.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-11-08 09:20:43 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-11-08 09:20:43 +0000
commit2ba1a992834e8b50712f6dfbe87da3b7beb1ba05 (patch)
tree8281f706ae83c8adcefda66dcdfab9b1b457f50e /src/emu/cpu/pdp1/pdp1.c
parente8ec5637ac26e2129abd0607818fc68e3148d30e (diff)
Added macros for all CPU callbacks to ease future changes.
Updated all CPU cores to use them.
Diffstat (limited to 'src/emu/cpu/pdp1/pdp1.c')
-rw-r--r--src/emu/cpu/pdp1/pdp1.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/cpu/pdp1/pdp1.c b/src/emu/cpu/pdp1/pdp1.c
index 555b757f1f2..771e286f4d2 100644
--- a/src/emu/cpu/pdp1/pdp1.c
+++ b/src/emu/cpu/pdp1/pdp1.c
@@ -585,13 +585,13 @@ static CPU_RESET( pdp1 )
/* nothing to do */
}
-static void pdp1_get_context (void *dst)
+static CPU_GET_CONTEXT( pdp1 )
{
if (dst)
*(pdp1_Regs *) dst = pdp1;
}
-static void pdp1_set_context (void *src)
+static CPU_SET_CONTEXT( pdp1 )
{
if (src)
pdp1 = *(pdp1_Regs *) src;
@@ -864,7 +864,7 @@ static CPU_EXECUTE( pdp1 )
}
-static void pdp1_set_info(UINT32 state, cpuinfo *info)
+static CPU_SET_INFO( pdp1 )
{
switch (state)
{
@@ -930,7 +930,7 @@ static void pdp1_set_info(UINT32 state, cpuinfo *info)
}
-void pdp1_get_info(UINT32 state, cpuinfo *info)
+CPU_GET_INFO( pdp1 )
{
switch (state)
{
@@ -1015,15 +1015,15 @@ void pdp1_get_info(UINT32 state, cpuinfo *info)
case CPUINFO_INT_REGISTER + PDP1_IOS: info->i = pdp1.ios; break;
/* --- the following bits of info are returned as pointers to data or functions --- */
- case CPUINFO_PTR_SET_INFO: info->setinfo = pdp1_set_info; break;
- case CPUINFO_PTR_GET_CONTEXT: info->getcontext = pdp1_get_context; break;
- case CPUINFO_PTR_SET_CONTEXT: info->setcontext = pdp1_set_context; break;
+ case CPUINFO_PTR_SET_INFO: info->setinfo = CPU_SET_INFO_NAME(pdp1); break;
+ case CPUINFO_PTR_GET_CONTEXT: info->getcontext = CPU_GET_CONTEXT_NAME(pdp1); break;
+ case CPUINFO_PTR_SET_CONTEXT: info->setcontext = CPU_SET_CONTEXT_NAME(pdp1); break;
case CPUINFO_PTR_INIT: info->init = CPU_INIT_NAME(pdp1); break;
case CPUINFO_PTR_RESET: info->reset = CPU_RESET_NAME(pdp1); break;
case CPUINFO_PTR_EXECUTE: info->execute = CPU_EXECUTE_NAME(pdp1); break;
case CPUINFO_PTR_BURN: info->burn = NULL; break;
- case CPUINFO_PTR_DISASSEMBLE: info->disassemble = pdp1_dasm; break;
+ case CPUINFO_PTR_DISASSEMBLE: info->disassemble = CPU_DISASSEMBLE_NAME(pdp1); break;
case CPUINFO_PTR_INSTRUCTION_COUNTER: info->icount = &pdp1_ICount; break;
/* --- the following bits of info are returned as NULL-terminated strings --- */