diff options
author | Aaron Giles <aaron@aarongiles.com> | 2010-06-08 17:35:49 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2010-06-08 17:35:49 +0000 |
commit | 5e04468569256d7b9cc1b6069f9c46c90e2455be (patch) | |
tree | 6e00da715aa56ac59d107f6c3f7b8058362da5b0 /src/emu/cpu/m6502/m65ce02.c | |
parent | d1e9200589119fa135ffd5801dd018ead4865c23 (diff) |
Changed CPU callbacks to use cpu_device, eliminating a bunch of casting.
Diffstat (limited to 'src/emu/cpu/m6502/m65ce02.c')
-rw-r--r-- | src/emu/cpu/m6502/m65ce02.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/cpu/m6502/m65ce02.c b/src/emu/cpu/m6502/m65ce02.c index bdc0179ae73..28763d08561 100644 --- a/src/emu/cpu/m6502/m65ce02.c +++ b/src/emu/cpu/m6502/m65ce02.c @@ -75,7 +75,7 @@ struct _m65ce02_Regs { UINT8 irq_state; int icount; device_irq_callback irq_callback; - running_device *device; + cpu_device *device; const address_space *space; read8_space_func rdmem_id; /* readmem callback for indexed instructions */ write8_space_func wrmem_id; /* writemem callback for indexed instructions */ @@ -107,7 +107,7 @@ static CPU_INIT( m65ce02 ) cpustate->wrmem_id = default_wdmem_id; cpustate->irq_callback = irqcallback; cpustate->device = device; - cpustate->space = device_memory(device)->space(AS_PROGRAM); + cpustate->space = device->space(AS_PROGRAM); if ( intf ) { @@ -275,7 +275,7 @@ static CPU_SET_INFO( m65ce02 ) CPU_GET_INFO( m65ce02 ) { - m65ce02_Regs *cpustate = (device != NULL && downcast<cpu_device *>(device)->token() != NULL) ? get_safe_token(device) : NULL; + m65ce02_Regs *cpustate = (device != NULL && device->token() != NULL) ? get_safe_token(device) : NULL; switch( state ) { |