summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-10-02 17:05:04 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-10-02 17:05:04 -0400
commit80c399ac7ca8fbc2669e456cf9e422926088fea0 (patch)
tree7107dc36ed611c3a47e377e77b44c2f6aafa957a
parentc3f9555b5a32599cd108efc965ab0a725914e947 (diff)
hp2622a: Pass self test; still needs actual keyboard emulation (nw)
-rw-r--r--src/mame/drivers/hp2620.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mame/drivers/hp2620.cpp b/src/mame/drivers/hp2620.cpp
index 1577993a526..3c82cd8a414 100644
--- a/src/mame/drivers/hp2620.cpp
+++ b/src/mame/drivers/hp2620.cpp
@@ -67,6 +67,7 @@ private:
required_shared_ptr<u8> m_nvram;
u16 m_display_page;
+ u8 m_key_status;
};
@@ -90,7 +91,7 @@ void hp2620_state::nvram_w(offs_t offset, u8 data)
u8 hp2620_state::keystat_r()
{
// LS299 at U25
- return 0xff;
+ return m_key_status;
}
void hp2620_state::keydisp_w(u8 data)
@@ -140,6 +141,8 @@ WRITE_LINE_MEMBER(hp2620_state::nlrc_w)
// clock input for LS175 at U59
if (state)
m_nmigate->in_w<1>((m_crtc->lc_r() & 7) == 3);
+
+ // TODO: shift keyboard response into m_key_status
}
WRITE_LINE_MEMBER(hp2620_state::bell_w)
@@ -171,12 +174,14 @@ void hp2620_state::io_map(address_map &map)
void hp2620_state::machine_start()
{
save_item(NAME(m_display_page));
+ save_item(NAME(m_key_status));
}
void hp2620_state::machine_reset()
{
m_nmigate->in_w<1>(0);
m_display_page = 0;
+ m_key_status = 0;
}
static INPUT_PORTS_START( hp2622 )