/** * @brief r10788_device::device_timer timer event callback * @param timer emu_timer which fired * @param id timer identifier * @param param parameter * @param ptr pointer parameter */ void r10788_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) { uint8_t data; switch (id) { case TIMER_DISPLAY: data = (m_reg[0][m_scan_counter] & m_mask_a) + 16 * (m_reg[1][m_scan_counter] & m_mask_b); LOG(("%s: scan counter:%2d data:%02x\n", __FUNCTION__, m_scan_counter, data)); m_display(m_scan_counter, data, 0xff); break; default: LOG(("%s: invalid timer id:%d\n", __FUNCTION__, id)); } m_scan_counter = (m_scan_counter + 1) % 16; }
void GotoMainMenu(entity button, entity me) { m_activate_window(main.mainNexposee); m_display(); }