diff options
author | 2010-06-08 17:35:49 +0000 | |
---|---|---|
committer | 2010-06-08 17:35:49 +0000 | |
commit | 5e04468569256d7b9cc1b6069f9c46c90e2455be (patch) | |
tree | 6e00da715aa56ac59d107f6c3f7b8058362da5b0 /src/emu/cpu/konami | |
parent | d1e9200589119fa135ffd5801dd018ead4865c23 (diff) |
Changed CPU callbacks to use cpu_device, eliminating a bunch of casting.
Diffstat (limited to 'src/emu/cpu/konami')
-rw-r--r-- | src/emu/cpu/konami/konami.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/konami/konami.c b/src/emu/cpu/konami/konami.c index cabd2a9f52b..a6791144c17 100644 --- a/src/emu/cpu/konami/konami.c +++ b/src/emu/cpu/konami/konami.c @@ -61,7 +61,7 @@ struct _konami_state UINT8 nmi_state; UINT8 nmi_pending; int icount; - running_device *device; + cpu_device *device; const address_space *program; konami_set_lines_func setlines_callback; }; @@ -404,7 +404,7 @@ static CPU_INIT( konami ) cpustate->irq_callback = irqcallback; cpustate->device = device; - cpustate->program = device_memory(device)->space(AS_PROGRAM); + cpustate->program = device->space(AS_PROGRAM); state_save_register_device_item(device, 0, PC); state_save_register_device_item(device, 0, U); @@ -547,7 +547,7 @@ static CPU_SET_INFO( konami ) CPU_GET_INFO( konami ) { - konami_state *cpustate = (device != NULL && downcast<cpu_device *>(device)->token() != NULL) ? get_safe_token(device) : NULL; + konami_state *cpustate = (device != NULL && device->token() != NULL) ? get_safe_token(device) : NULL; switch (state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ |