summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gunpey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gunpey.c')
-rw-r--r--src/mame/drivers/gunpey.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/gunpey.c b/src/mame/drivers/gunpey.c
index 15ef83a2238..a11d2916aab 100644
--- a/src/mame/drivers/gunpey.c
+++ b/src/mame/drivers/gunpey.c
@@ -120,11 +120,11 @@ READ8_MEMBER(gunpey_state::gunpey_inputs_r)
{
switch(offset+0x7f40)
{
- case 0x7f40: return input_port_read(machine(), "DSW1");
- case 0x7f41: return input_port_read(machine(), "DSW2");
- case 0x7f42: return input_port_read(machine(), "P1");
- case 0x7f43: return input_port_read(machine(), "P2");
- case 0x7f44: return input_port_read(machine(), "SYSTEM");
+ case 0x7f40: return ioport("DSW1")->read();
+ case 0x7f41: return ioport("DSW2")->read();
+ case 0x7f42: return ioport("P1")->read();
+ case 0x7f43: return ioport("P2")->read();
+ case 0x7f44: return ioport("SYSTEM")->read();
}
return 0xff;