summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/taitoair.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/taitoair.c')
-rw-r--r--src/mame/drivers/taitoair.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/drivers/taitoair.c b/src/mame/drivers/taitoair.c
index 8dbeca57aea..1f89d7c4614 100644
--- a/src/mame/drivers/taitoair.c
+++ b/src/mame/drivers/taitoair.c
@@ -341,19 +341,19 @@ READ16_MEMBER(taitoair_state::stick_input_r)
switch( offset )
{
case 0x00: /* "counter 1" lo */
- return input_port_read(machine(), STICK1_PORT_TAG);
+ return ioport(STICK1_PORT_TAG)->read();
case 0x01: /* "counter 2" lo */
- return input_port_read(machine(), STICK2_PORT_TAG);
+ return ioport(STICK2_PORT_TAG)->read();
case 0x02: /* "counter 1" hi */
- if(input_port_read(machine(), STICK1_PORT_TAG) & 0x80)
+ if(ioport(STICK1_PORT_TAG)->read() & 0x80)
return 0xff;
return 0;
case 0x03: /* "counter 2" hi */
- return (input_port_read(machine(), STICK2_PORT_TAG) & 0xff00) >> 8;
+ return (ioport(STICK2_PORT_TAG)->read() & 0xff00) >> 8;
}
return 0;
@@ -364,10 +364,10 @@ READ16_MEMBER(taitoair_state::stick2_input_r)
switch( offset )
{
case 0x00: /* "counter 3" lo */
- return input_port_read(machine(), STICK3_PORT_TAG);
+ return ioport(STICK3_PORT_TAG)->read();
case 0x02: /* "counter 3" hi */
- return (input_port_read(machine(), STICK3_PORT_TAG) & 0xff00) >> 8;
+ return (ioport(STICK3_PORT_TAG)->read() & 0xff00) >> 8;
}
return 0;