diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2016-01-10 18:51:11 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2016-01-10 18:51:36 +0100 |
commit | c678902d0b36d3274a678b35610a21fe880ed53c (patch) | |
tree | 5765117b81ef85946e45f1ee1fe0c8c41ae06cad /src/mame/drivers/wacky_gator.cpp | |
parent | 74b39e26d2fffcdb6e567b06b1f20792a5239bd2 (diff) |
make output be part of driver_device (nw)
Diffstat (limited to 'src/mame/drivers/wacky_gator.cpp')
-rw-r--r-- | src/mame/drivers/wacky_gator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/wacky_gator.cpp b/src/mame/drivers/wacky_gator.cpp index 6c01f568390..77f67d7165e 100644 --- a/src/mame/drivers/wacky_gator.cpp +++ b/src/mame/drivers/wacky_gator.cpp @@ -157,7 +157,7 @@ void wackygtr_state::pmm8713_ck(int i, int state) int alligator_state = m_motors_pos[i] / 10; if (alligator_state > 5) alligator_state = 5; if (alligator_state < 0) alligator_state = 0; - machine().output().set_indexed_value("alligator", i, alligator_state); + output().set_indexed_value("alligator", i, alligator_state); } } @@ -190,14 +190,14 @@ void wackygtr_state::machine_reset() void wackygtr_state::set_digits(int p, UINT8 value) { static UINT8 bcd2hex[] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x67, 0, 0, 0, 0, 0, 0 }; // not accurate - machine().output().set_digit_value(p + 0, bcd2hex[value & 0x0f]); - machine().output().set_digit_value(p + 1, bcd2hex[(value >> 4) & 0x0f]); + output().set_digit_value(p + 0, bcd2hex[value & 0x0f]); + output().set_digit_value(p + 1, bcd2hex[(value >> 4) & 0x0f]); } void wackygtr_state::set_lamps(int p, UINT8 value) { for(int i=0; i<8; i++) - machine().output().set_lamp_value(p + i, BIT(value, i)); + output().set_lamp_value(p + i, BIT(value, i)); } static INPUT_PORTS_START( wackygtr ) |