From 03584acd3d65d097977b1281e341ed9740afc75d Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Fri, 7 Dec 2012 16:07:33 +0000 Subject: [PATCH] Notes updates --- src/emu/machine/upd1990a.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/emu/machine/upd1990a.c b/src/emu/machine/upd1990a.c index 1f054a6165d..58e48d38fac 100644 --- a/src/emu/machine/upd1990a.c +++ b/src/emu/machine/upd1990a.c @@ -156,17 +156,18 @@ void upd1990a_device::device_timer(emu_timer &timer, device_timer_id id, int par case TIMER_TEST_MODE: if (m_oe) { + /* TODO: completely untested */ /* time counter is advanced at 1024 Hz from "Second" counter input */ int i; - for(i=0;i<4;i++) + m_data_out = (m_time_counter[4] == 0); + + for(i=0;i<5;i++) { m_time_counter[i]++; if(m_time_counter[i] != 0) - break; + return; } - - m_data_out = (m_time_counter[4] == 0); } else // parallel { @@ -177,15 +178,6 @@ void upd1990a_device::device_timer(emu_timer &timer, device_timer_id id, int par m_time_counter[3]++; m_time_counter[4]++; m_data_out = (m_time_counter[4] == 0); - if(0) - { - int i; - - for(i=0;i<5;i++) - printf("%02x ",m_time_counter[i]); - - printf("\n"); - } } break;