summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/dec_lk201.h
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-06-03 14:41:33 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-06-03 14:41:33 -0500
commitc8e60167f40b673cfa77c2d41f84a97cc40c0b7e (patch)
tree7bbfe69fe34d6fe7d3216b68fb485989b1d50d90 /src/mame/machine/dec_lk201.h
parentfe95f89b73fa5d7da88d66b6f43a62330106b956 (diff)
rainbow: keyboard works for a few seconds (nw)
Diffstat (limited to 'src/mame/machine/dec_lk201.h')
-rw-r--r--src/mame/machine/dec_lk201.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mame/machine/dec_lk201.h b/src/mame/machine/dec_lk201.h
index 88271331523..0871f1c3c4e 100644
--- a/src/mame/machine/dec_lk201.h
+++ b/src/mame/machine/dec_lk201.h
@@ -53,6 +53,8 @@ public:
DECLARE_WRITE8_MEMBER( sci_w );
DECLARE_READ8_MEMBER( spi_r );
DECLARE_WRITE8_MEMBER( spi_w );
+ DECLARE_READ8_MEMBER( timer_r );
+ DECLARE_WRITE8_MEMBER( timer_w );
template<class _Object> static devcb_base &set_tx_handler(device_t &device, _Object wr) { return downcast<lk201_device &>(device).m_tx_handler.set_callback(wr); }
@@ -76,6 +78,24 @@ private:
UINT8 led_data;
UINT8 kbd_data;
+ union {
+ struct {
+ UINT8 tcr;
+ UINT8 tsr;
+ UINT8 icrh;
+ UINT8 icrl;
+ UINT8 ocrh;
+ UINT8 ocrl;
+ UINT8 crh;
+ UINT8 crl;
+ UINT8 acrh;
+ UINT8 acrl;
+ };
+ UINT8 regs[10];
+ } m_timer;
+
+ emu_timer *m_count;
+
UINT8 sci_ctl2;
UINT8 sci_status;
//UINT8 sci_data;