diff options
author | 2022-01-02 21:54:13 -0600 | |
---|---|---|
committer | 2022-01-02 21:54:13 -0600 | |
commit | 53d6b930ef0b871aa041040fce22ee09bb74678d (patch) | |
tree | 737f3ba4660f1fc4ca50a80dbaa9bf4ac97aadad | |
parent | 76bc4902b81751eefaa64e954176c9489fe96683 (diff) |
pwrview: pit test
-rw-r--r-- | src/mame/drivers/pwrview.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/mame/drivers/pwrview.cpp b/src/mame/drivers/pwrview.cpp index c673ec7b01c..fe1830656fe 100644 --- a/src/mame/drivers/pwrview.cpp +++ b/src/mame/drivers/pwrview.cpp @@ -286,7 +286,7 @@ u8 pwrview_state::unk3_r(offs_t offset) m_c280 &= ~0x10; break; case 2: - ret = (m_rts ? 0 : 0x40) | (m_dtr ? 0 : 0x80); + ret = (m_rts ? 0 : 0x40) | (m_dtr ? 0 : 0x80) | 0x20; break; } return ret; @@ -298,9 +298,23 @@ void pwrview_state::unk3_w(offs_t offset, u8 data) { case 0: m_c280 = data; - m_pit->set_clockin(0, BIT(data, 5) ? 1000000 : 0); + m_pit->set_clockin(0, BIT(data, 7) ? 1000000 : 0); m_pit->set_clockin(1, BIT(data, 6) ? 1000000 : 0); - m_pit->set_clockin(2, BIT(data, 7) ? 1000000 : 0); + m_pit->set_clockin(2, BIT(data, 5) ? 1000000 : 0); + if(BIT(data, 2)) + { + if(!BIT(data, 6)) + m_pit->set_clockin(1, 2000000); + if(!BIT(data, 7)) + m_pit->set_clockin(2, 2000000); + } + else + { + if(!BIT(data, 6)) + m_pit->set_clockin(1, 0); + if(!BIT(data, 7)) + m_pit->set_clockin(2, 0); + } break; } } |