mirror of
https://github.com/holub/mame
synced 2025-05-30 17:41:47 +03:00
(nw) crusnexo : output finder
This commit is contained in:
parent
ffd6d1a452
commit
8492b71ac5
@ -93,6 +93,8 @@ private:
|
||||
|
||||
MACHINE_START_MEMBER(midzeus_state,midzeus)
|
||||
{
|
||||
m_digits.resolve();
|
||||
|
||||
timer[0] = machine().scheduler().timer_alloc(timer_expired_delegate());
|
||||
timer[1] = machine().scheduler().timer_alloc(timer_expired_delegate());
|
||||
|
||||
@ -435,7 +437,7 @@ WRITE32_MEMBER(midzeus_state::crusnexo_leds_w)
|
||||
/* selection bits 4-6 select the 3 7-segment LEDs */
|
||||
for (bit = 4; bit < 7; bit++)
|
||||
if ((crusnexo_leds_select & (1 << bit)) == 0)
|
||||
output().set_digit_value(bit, ~data & 0xff);
|
||||
m_digits[bit] = ~data & 0xff;
|
||||
|
||||
/* selection bits 0-2 select the tachometer LEDs */
|
||||
for (bit = 0; bit < 3; bit++)
|
||||
|
@ -24,7 +24,9 @@ public:
|
||||
m_m48t35(*this, "m48t35"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_screen(*this, "screen"),
|
||||
m_palette(*this, "palette") { }
|
||||
m_palette(*this, "palette"),
|
||||
m_digits(*this, "digit%u", 0U)
|
||||
{ }
|
||||
|
||||
required_shared_ptr<uint32_t> m_nvram;
|
||||
required_shared_ptr<uint32_t> m_ram_base;
|
||||
@ -35,7 +37,7 @@ public:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<screen_device> m_screen;
|
||||
optional_device<palette_device> m_palette;
|
||||
|
||||
output_finder<7> m_digits;
|
||||
emu_timer *m_display_irq_off_timer;
|
||||
|
||||
DECLARE_WRITE32_MEMBER(cmos_w);
|
||||
|
Loading…
Reference in New Issue
Block a user