diff options
author | wilbertpol <wilbertpol@users.noreply.github.com> | 2018-05-20 19:27:20 +0200 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2018-05-20 13:27:20 -0400 |
commit | 2beba4ce73fad917c7159a39939bace54f76494b (patch) | |
tree | e9d33c059bc5045f13d0c1748f0a044650370b8d /src/mame/includes/pmd85.h | |
parent | acf93837ac21b2b0bb003d1649b893200c269812 (diff) |
Replace set_led_value and set_lamp_value with output_finders. [Wilbe… (#3592)
* Replace set_led_value and set_lamp_value with output_finders. [Wilbert Pol]
* segaufo: keep the 2 bit lamp outputs
Diffstat (limited to 'src/mame/includes/pmd85.h')
-rw-r--r-- | src/mame/includes/pmd85.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mame/includes/pmd85.h b/src/mame/includes/pmd85.h index cbc4c75651e..8d72c8df857 100644 --- a/src/mame/includes/pmd85.h +++ b/src/mame/includes/pmd85.h @@ -24,8 +24,8 @@ public: TIMER_CASSETTE }; - pmd85_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), + pmd85_state(const machine_config &mconfig, device_type type, const char *tag) : + driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_ram(*this, RAM_TAG), m_cassette(*this, "cassette"), @@ -53,7 +53,9 @@ public: m_bank15(*this, "bank15"), m_bank16(*this, "bank16"), m_io_dsw0(*this, "DSW0"), - m_palette(*this, "palette") { } + m_palette(*this, "palette"), + m_led(*this, "led%u", 0U) + { } uint8_t m_rom_module_present; uint8_t m_ppi_port_outputs[4][3]; @@ -124,6 +126,8 @@ public: void pmd85_io_map(address_map &map); void pmd85_mem(address_map &map); protected: + virtual void machine_start() override { m_led.resolve(); } + required_device<cpu_device> m_maincpu; required_device<ram_device> m_ram; required_device<cassette_image_device> m_cassette; @@ -153,6 +157,7 @@ protected: optional_ioport m_io_dsw0; ioport_port *m_io_port[16]; required_device<palette_device> m_palette; + output_finder<3> m_led; void pmd851_update_memory(); void pmd852a_update_memory(); |