summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tx1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tx1.c')
-rw-r--r--src/mame/drivers/tx1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/tx1.c b/src/mame/drivers/tx1.c
index fe632937824..ec2a1b98c30 100644
--- a/src/mame/drivers/tx1.c
+++ b/src/mame/drivers/tx1.c
@@ -88,14 +88,14 @@ INTERRUPT_GEN_MEMBER(tx1_state::z80_irq)
READ16_MEMBER(tx1_state::z80_shared_r)
{
- address_space *cpu2space = machine().device("audio_cpu")->memory().space(AS_PROGRAM);
- return cpu2space->read_byte(offset);
+ address_space &cpu2space = machine().device("audio_cpu")->memory().space(AS_PROGRAM);
+ return cpu2space.read_byte(offset);
}
WRITE16_MEMBER(tx1_state::z80_shared_w)
{
- address_space *cpu2space = machine().device("audio_cpu")->memory().space(AS_PROGRAM);
- cpu2space->write_byte(offset, data & 0xff);
+ address_space &cpu2space = machine().device("audio_cpu")->memory().space(AS_PROGRAM);
+ cpu2space.write_byte(offset, data & 0xff);
}