summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/wacky_gator.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-10 18:41:17 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-10 18:41:17 +0100
commitf9f908d48bd3607f8ddf529eb6b83c2b4b0b9790 (patch)
tree5d0008d8b4e1e9eb6acda88b16c81b1883c66e06 /src/mame/drivers/wacky_gator.cpp
parent3e5ad46410db4d3b3d8bd4b4bb84c3cdce2b1bfd (diff)
modernize output_manager (nw)
Diffstat (limited to 'src/mame/drivers/wacky_gator.cpp')
-rw-r--r--src/mame/drivers/wacky_gator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/wacky_gator.cpp b/src/mame/drivers/wacky_gator.cpp
index ecb2884a20c..6c01f568390 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;
- output_set_indexed_value("alligator", i, alligator_state);
+ machine().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
- output_set_digit_value(p + 0, bcd2hex[value & 0x0f]);
- output_set_digit_value(p + 1, bcd2hex[(value >> 4) & 0x0f]);
+ machine().output().set_digit_value(p + 0, bcd2hex[value & 0x0f]);
+ machine().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++)
- output_set_lamp_value(p + i, BIT(value, i));
+ machine().output().set_lamp_value(p + i, BIT(value, i));
}
static INPUT_PORTS_START( wackygtr )