diff options
Diffstat (limited to 'src/mame/machine/mexico86.c')
-rw-r--r-- | src/mame/machine/mexico86.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/machine/mexico86.c b/src/mame/machine/mexico86.c index 069c1cc1995..64e290f3459 100644 --- a/src/mame/machine/mexico86.c +++ b/src/mame/machine/mexico86.c @@ -72,7 +72,7 @@ logerror("initialising MCU\n"); int coin_curr; - coin_curr = ~input_port_read_indexed(machine, 0) & 1; + coin_curr = ~input_port_read(machine, "IN0") & 1; if (coin_curr && !coin_last && mexico86_protection_ram[0x01] < 9) { mexico86_protection_ram[0x01]++; // increase credits counter @@ -82,8 +82,8 @@ logerror("initialising MCU\n"); mexico86_protection_ram[0x04] = 0x3c; // coin inputs - mexico86_protection_ram[0x02] = BITSWAP8(input_port_read_indexed(machine, 1), 7,6,5,4,2,3,1,0); // player 1 - mexico86_protection_ram[0x03] = BITSWAP8(input_port_read_indexed(machine, 2), 7,6,5,4,2,3,1,0); // player 2 + mexico86_protection_ram[0x02] = BITSWAP8(input_port_read(machine, "IN1"), 7,6,5,4,2,3,1,0); // player 1 + mexico86_protection_ram[0x03] = BITSWAP8(input_port_read(machine, "IN2"), 7,6,5,4,2,3,1,0); // player 2 if (mexico86_protection_ram[0x19] == 0xaa) // player 2 active mexico86_protection_ram[0x1b] = mexico86_protection_ram[0x03]; @@ -303,7 +303,7 @@ WRITE8_HANDLER( mexico86_68705_portB_w ) else { //logerror("%04x: 68705 read input port %04x\n",activecpu_get_pc(),address); - latch = input_port_read_indexed(machine, (address & 1) + 1); + latch = input_port_read(machine, (address & 1) ? "IN2" : "IN1"); } } else /* write */ |