macse30: make Sigma Designs L-View SE/30 PDS card work and eliminate deprecated device lookup [R. Belmont]

This commit is contained in:
arbee 2020-02-13 22:48:06 -05:00
parent 613485c425
commit 81efea6823

View File

@ -163,9 +163,9 @@ READ32_MEMBER( nubus_lview_device::lview_r )
{
uint32_t rv = 0;
// printf("%s prot_r: @ %x, mask %08x [state %d]\n", machine().describe_context().c_str(), offset, mem_mask, m_protstate);
// printf("%s prot_r: @ %x, mask %08x [state %d] [PC=%x]\n", machine().describe_context().c_str(), offset, mem_mask, m_protstate, machine().device<cpu_device>("maincpu")->pc());
if ((m_protstate == 1) || (m_protstate == 10) || (machine().device<cpu_device>("maincpu")->pc() == 0x5aac))
if ((m_protstate == 1) || (m_protstate == 10) || (m_protstate == 17) || (m_protstate == 20) || (m_protstate == 22))
{
rv = 0x02020202;
}
@ -185,7 +185,7 @@ WRITE32_MEMBER( nubus_lview_device::lview_w )
if (offset == 0x7a)
{
if (data == 1)
if (data != 1)
{
m_vbl_disable = 0;
lower_slot_irq();