diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2020-10-17 10:00:57 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2020-10-17 10:00:57 -0400 |
commit | 5043ee05d1ee5420fc480c7f096d183af6d7abae (patch) | |
tree | fdebce7b79d45372c82c0a872a3974a8eea089de /src/mame/includes | |
parent | bd5fd2fe20cba748a3761a5aafaa918e67bc0c41 (diff) |
bbc.cpp, electron.cpp: Eliminate output().set_value
Diffstat (limited to 'src/mame/includes')
-rw-r--r-- | src/mame/includes/bbc.h | 12 | ||||
-rw-r--r-- | src/mame/includes/electron.h | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/mame/includes/bbc.h b/src/mame/includes/bbc.h index 98068a32abc..1d4aa5b32a0 100644 --- a/src/mame/includes/bbc.h +++ b/src/mame/includes/bbc.h @@ -100,6 +100,7 @@ public: , m_bank2(*this, "bank2") , m_bankdev(*this, "bankdev") , m_bbcconfig(*this, "BBCCONFIG") + , m_motor_led(*this, "motor_led") { } enum class monitor_type @@ -158,8 +159,6 @@ public: DECLARE_WRITE_LINE_MEMBER(speech_rsq_w); DECLARE_WRITE_LINE_MEMBER(speech_wsq_w); DECLARE_WRITE_LINE_MEMBER(kbd_enable_w); - DECLARE_WRITE_LINE_MEMBER(capslock_led_w); - DECLARE_WRITE_LINE_MEMBER(shiftlock_led_w); uint8_t via_system_porta_r(); void via_system_porta_w(uint8_t data); uint8_t via_system_portb_r(); @@ -257,6 +256,8 @@ protected: optional_device<address_map_bank_device> m_bankdev; // bbcm optional_ioport m_bbcconfig; + output_finder<> m_motor_led; + int m_romsel; // This is the latch that holds the sideways ROM bank to read int m_paged_ram; // BBC B+ memory handling int m_vdusel; // BBC B+ memory handling @@ -421,7 +422,10 @@ protected: class bbcm_state : public bbc_state { public: - using bbc_state::bbc_state; + bbcm_state(const machine_config &mconfig, device_type type, const char *tag) + : bbc_state(mconfig, type, tag) + , m_power_led(*this, "power_led") + { } void bbcm(machine_config &config); void bbcmt(machine_config &config); @@ -453,6 +457,8 @@ protected: void bbcmc_bankdev(address_map &map); void autoc15_bankdev(address_map &map); void bbcm_fetch(address_map &map); + + output_finder<> m_power_led; }; diff --git a/src/mame/includes/electron.h b/src/mame/includes/electron.h index 9467674e128..77752b9a38e 100644 --- a/src/mame/includes/electron.h +++ b/src/mame/includes/electron.h @@ -50,6 +50,7 @@ public: , m_exp(*this, "exp") , m_ram(*this, RAM_TAG) , m_mrb(*this, "MRB") + , m_capslock_led(*this, "capslock_led") { } void electron(machine_config &config); @@ -117,6 +118,7 @@ protected: required_device<electron_expansion_slot_device> m_exp; required_device<ram_device> m_ram; optional_ioport m_mrb; + output_finder<> m_capslock_led; void waitforramsync(); void electron_tape_start(); |