diff options
author | Aaron Giles <aaron@aarongiles.com> | 2011-03-29 16:31:32 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2011-03-29 16:31:32 +0000 |
commit | 17e077da3a754ac217e624773e407c5779a1cb1f (patch) | |
tree | 562e86fbd87e4d27afbb0573301c61c2311f7a4a /src/emu/cpu/m6502/m4510.c | |
parent | 2ad50720237fdd19cf5ab45b8cb6bb21119c00b8 (diff) |
Remove redundant item cpu from address_space, in favor of
space->device().
S: space->cpu->
R: space->device\(\)\.
S: space->cpu
R: \&space->device\(\)
Diffstat (limited to 'src/emu/cpu/m6502/m4510.c')
-rw-r--r-- | src/emu/cpu/m6502/m4510.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/cpu/m6502/m4510.c b/src/emu/cpu/m6502/m4510.c index 5d0ec414ecc..733b53ae91c 100644 --- a/src/emu/cpu/m6502/m4510.c +++ b/src/emu/cpu/m6502/m4510.c @@ -185,12 +185,12 @@ INLINE int m4510_cpu_readop_arg(m4510_Regs *cpustate) static UINT8 default_rdmem_id(address_space *space, offs_t address) { - m4510_Regs *cpustate = get_safe_token(space->cpu); + m4510_Regs *cpustate = get_safe_token(&space->device()); return space->read_byte(M4510_MEM(address)); } static void default_wrmem_id(address_space *space, offs_t address, UINT8 data) { - m4510_Regs *cpustate = get_safe_token(space->cpu); + m4510_Regs *cpustate = get_safe_token(&space->device()); space->write_byte(M4510_MEM(address), data); } @@ -358,7 +358,7 @@ UINT8 m4510_get_port(legacy_cpu_device *device) static READ8_HANDLER( m4510_read_0000 ) { UINT8 result = 0x00; - m4510_Regs *cpustate = get_safe_token(space->cpu); + m4510_Regs *cpustate = get_safe_token(&space->device()); switch(offset) { @@ -376,7 +376,7 @@ static READ8_HANDLER( m4510_read_0000 ) static WRITE8_HANDLER( m4510_write_0000 ) { - m4510_Regs *cpustate = get_safe_token(space->cpu); + m4510_Regs *cpustate = get_safe_token(&space->device()); switch(offset) { @@ -389,7 +389,7 @@ static WRITE8_HANDLER( m4510_write_0000 ) } if (cpustate->port_write) - cpustate->port_write(cpustate->device, 0, m4510_get_port(downcast<legacy_cpu_device *>(space->cpu))); + cpustate->port_write(cpustate->device, 0, m4510_get_port(downcast<legacy_cpu_device *>(&space->device()))); } static ADDRESS_MAP_START(m4510_mem, AS_PROGRAM, 8) |