trunk/src/mess/machine/mac.c
| r18615 | r18616 | |
| 1322 | 1322 | else |
| 1323 | 1323 | { |
| 1324 | 1324 | /* video beam in display (! VBLANK && ! HBLANK basically) */ |
| 1325 | | if (machine().primary_screen->vpos() >= MAC_V_VIS) |
| 1326 | | val |= 0x40; |
| 1325 | if (machine().primary_screen) |
| 1326 | { |
| 1327 | if (machine().primary_screen->vpos() >= MAC_V_VIS) |
| 1328 | val |= 0x40; |
| 1329 | } |
| 1327 | 1330 | |
| 1328 | 1331 | if (ADB_IS_BITBANG_CLASS) |
| 1329 | 1332 | { |
| r18615 | r18616 | |
| 1771 | 1774 | } |
| 1772 | 1775 | |
| 1773 | 1776 | } |
| 1774 | | this->m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_scanline_tick),this)); |
| 1775 | | this->m_scanline_timer->adjust(machine().primary_screen->time_until_pos(0, 0)); |
| 1776 | 1777 | |
| 1778 | if (machine().primary_screen) |
| 1779 | { |
| 1780 | this->m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_scanline_tick),this)); |
| 1781 | this->m_scanline_timer->adjust(machine().primary_screen->time_until_pos(0, 0)); |
| 1782 | } |
| 1783 | |
| 1777 | 1784 | m_6015_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(mac_state::mac_6015_tick),this)); |
| 1778 | 1785 | m_6015_timer->adjust(attotime::never); |
| 1779 | 1786 | } |