diff options
Diffstat (limited to 'src/mame/drivers/speedbal.c')
-rw-r--r-- | src/mame/drivers/speedbal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/speedbal.c b/src/mame/drivers/speedbal.c index 52d10cecd1a..62fcc0a36df 100644 --- a/src/mame/drivers/speedbal.c +++ b/src/mame/drivers/speedbal.c @@ -56,11 +56,11 @@ c1 ?? #include "includes/speedbal.h" #include "machine/nvram.h" -static WRITE8_HANDLER( speedbal_coincounter_w ) +WRITE8_MEMBER(speedbal_state::speedbal_coincounter_w) { - coin_counter_w(space->machine(), 0, data & 0x80); - coin_counter_w(space->machine(), 1, data & 0x40); - flip_screen_set(space->machine(), data & 8); // also changes data & 0x10 at the same time too (flipx and flipy?) + coin_counter_w(machine(), 0, data & 0x80); + coin_counter_w(machine(), 1, data & 0x40); + flip_screen_set(machine(), data & 8); // also changes data & 0x10 at the same time too (flipx and flipy?) /* unknown: (data & 0x10) and (data & 4) */ } @@ -80,7 +80,7 @@ static ADDRESS_MAP_START( main_cpu_io_map, AS_IO, 8, speedbal_state ) AM_RANGE(0x10, 0x10) AM_READ_PORT("DSW1") AM_RANGE(0x20, 0x20) AM_READ_PORT("P1") AM_RANGE(0x30, 0x30) AM_READ_PORT("P2") - AM_RANGE(0x40, 0x40) AM_WRITE_LEGACY(speedbal_coincounter_w) + AM_RANGE(0x40, 0x40) AM_WRITE(speedbal_coincounter_w) AM_RANGE(0x50, 0x50) AM_WRITENOP ADDRESS_MAP_END |