@@ -788,7 +788,7 @@ u16 tek440x_state::memory_r(offs_t offset, u16 mem_mask)
788
788
m_map_control |= (1 << MAP_BLOCK_ACCESS);
789
789
}
790
790
791
- LOG (" memory_r: map %08x => paddr(%08x) fc(%d) pc(%08x)\n " ,OFF16_TO_OFF8 (offset), OFF16_TO_OFF8 (BIT (offset, 0 , 11 ) | BIT (m_map[offset >> 11 ], 0 , 11 ) << 11 ), m_maincpu->get_fc (), m_maincpu->pc ());
791
+ // LOG("memory_r: map %08x => paddr(%08x) fc(%d) pc(%08x)\n",OFF16_TO_OFF8(offset), OFF16_TO_OFF8(BIT(offset, 0, 11) | BIT(m_map[offset >> 11], 0, 11) << 11), m_maincpu->get_fc(), m_maincpu->pc());
792
792
793
793
offset = BIT (offset, 0 , 11 ) | BIT (m_map[offset >> 11 ], 0 , 11 ) << 11 ;
794
794
}
@@ -869,8 +869,9 @@ void tek440x_state::memory_w(offs_t offset, u16 data, u16 mem_mask)
869
869
// mark page dirty (NB before we overwrite offset)
870
870
if (mem_mask)
871
871
{
872
+ if (!(m_map[offset >> 11 ] & 0x8000 ))
873
+ LOG (" memory_w: DIRTY m_map(0x%04x) m_map_control(%02x) berr(%d)\n " , m_map[offset >> 11 ], m_map_control, inbuserr);
872
874
m_map[offset >> 11 ] |= 0x8000 ;
873
- LOG (" memory_w: DIRTY m_map(0x%04x) m_map_control(%02x) berr(%d)\n " , m_map[offset >> 11 ], m_map_control, inbuserr);
874
875
}
875
876
876
877
offset = BIT (offset, 0 , 11 ) | (BIT (m_map[offset >> 11 ], 0 , 11 ) << 11 );
@@ -1025,6 +1026,10 @@ void tek440x_state::videocntl_w(u8 data)
1025
1026
}
1026
1027
1027
1028
m_vint->in_w <0 >(BIT (data, 6 ));
1029
+
1030
+ if (BIT (m_videocntl ^ data, 6 ) && !BIT (data, 6 ))
1031
+ m_vint->in_w <2 >(0 );
1032
+
1028
1033
m_videocntl = data;
1029
1034
}
1030
1035
@@ -1420,6 +1425,7 @@ void tek440x_state::tek4404(machine_config &config)
1420
1425
m_screen->set_screen_update (FUNC (tek440x_state::screen_update));
1421
1426
m_screen->set_palette (" palette" );
1422
1427
m_screen->screen_vblank ().set (m_vint, FUNC (input_merger_all_high_device::in_w<1 >));
1428
+ m_screen->screen_vblank ().append (m_vint, FUNC (input_merger_all_high_device::in_w<2 >));
1423
1429
PALETTE (config, " palette" , palette_device::MONOCHROME_INVERTED);
1424
1430
1425
1431
MOS6551 (config, m_acia, 40_MHz_XTAL / 4 / 10 );
0 commit comments