diff options
author | 2025-01-09 12:56:32 +0100 | |
---|---|---|
committer | 2025-01-09 12:56:42 +0100 | |
commit | 89e38850b15d212c3a6c582172e36b681b5f4245 (patch) | |
tree | b9aa4f181d6359c3578cd425b0ee8f62e74588f1 /src/devices/video/dm9368.h | |
parent | 53d47b4e391899342050bbc08e3db92792ddb57e (diff) |
dm9368: update output when rbi is written,
seabattl,elf: remove unneeded 7seg output trampoline,
didact: #define pia6820_device pia6821_device, please don't do that
Diffstat (limited to 'src/devices/video/dm9368.h')
-rw-r--r-- | src/devices/video/dm9368.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/devices/video/dm9368.h b/src/devices/video/dm9368.h index 7eb2bae9ea0..ec04855c271 100644 --- a/src/devices/video/dm9368.h +++ b/src/devices/video/dm9368.h @@ -36,27 +36,29 @@ public: auto rbo_cb() { return m_rbo_cb.bind(); } // construction/destruction - dm9368_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + dm9368_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0); void a_w(u8 data); - void rbi_w(int state) { m_rbi = state; } + void rbi_w(int state); int rbo_r() { return m_rbo; } protected: // device_t implementation virtual void device_start() override ATTR_COLD; - - void update(); + virtual void device_reset() override ATTR_COLD { update(); } private: devcb_write8 m_update_cb; devcb_write_line m_rbo_cb; + u8 m_a; int m_rbi; int m_rbo; static const u8 s_segment_data[16]; + + void update(); }; |