summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/deshoros.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/deshoros.c')
-rw-r--r--src/mame/drivers/deshoros.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/deshoros.c b/src/mame/drivers/deshoros.c
index a3c9c76cd0d..3653d0f6018 100644
--- a/src/mame/drivers/deshoros.c
+++ b/src/mame/drivers/deshoros.c
@@ -81,9 +81,9 @@ READ8_MEMBER(deshoros_state::io_r)
switch(offset)
{
case 0x00: return 0xff; //printer read
- case 0x03: return input_port_read(machine(), "KEY0" );
- case 0x04: return input_port_read(machine(), "KEY1" );
- case 0x05: return input_port_read(machine(), "SYSTEM" );
+ case 0x03: return ioport("KEY0" )->read();
+ case 0x04: return ioport("KEY1" )->read();
+ case 0x05: return ioport("SYSTEM" )->read();
case 0x0a: return m_io_ram[offset]; //"buzzer" 0 read
case 0x0b: return m_io_ram[offset]; //"buzzer" 1 read
}