diff options
Diffstat (limited to 'src/mame/barcrest/mpu5.h')
-rw-r--r-- | src/mame/barcrest/mpu5.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/mame/barcrest/mpu5.h b/src/mame/barcrest/mpu5.h index eae2a755340..fb6460f0457 100644 --- a/src/mame/barcrest/mpu5.h +++ b/src/mame/barcrest/mpu5.h @@ -17,27 +17,30 @@ public: : driver_device(mconfig, type, tag) , m_maincpu(*this, "maincpu") , m_sec(*this, "sec") + , m_statuslamp(*this, "statuslamp%u", 1U) { } void mpu5(machine_config &config); +protected: + virtual void machine_start() override; + private: - uint32_t mpu5_mem_r(offs_t offset, uint32_t mem_mask = ~0); - void mpu5_mem_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); + uint16_t mpu5_mem_r(offs_t offset, uint16_t mem_mask = ~0); + void mpu5_mem_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); - uint32_t asic_r32(offs_t offset, uint32_t mem_mask = ~0); + uint16_t asic_r16(offs_t offset, uint16_t mem_mask = ~0); uint8_t asic_r8(offs_t offset); - void asic_w32(offs_t offset, uint32_t data, uint32_t mem_mask = ~0); + void asic_w16(offs_t offset, uint16_t data, uint16_t mem_mask = ~0); void asic_w8(offs_t offset, uint8_t data); - uint32_t pic_r(offs_t offset); - void pic_w(offs_t offset, uint32_t data); + uint16_t pic_r(offs_t offset); + void pic_w(offs_t offset, uint16_t data); - virtual void machine_start() override; void mpu5_map(address_map &map); - uint32_t* m_cpuregion = nullptr; - std::unique_ptr<uint32_t[]> m_mainram; + uint16_t* m_cpuregion = nullptr; + std::unique_ptr<uint16_t[]> m_mainram; uint8_t m_led_strobe_temp = 0; uint8_t m_led_strobe = 0; @@ -53,6 +56,8 @@ private: // devices required_device<m68340_cpu_device> m_maincpu; required_device<sec_device> m_sec; + + output_finder<2> m_statuslamp; }; INPUT_PORTS_EXTERN( mpu5 ); |