IBM1130: Make timer logic consistent with comments describing expected action

This commit is contained in:
Mark Pizzolato 2017-09-11 15:46:26 -07:00
parent 0559308ee4
commit ce5d7de683

View file

@ -989,12 +989,13 @@ void xio_sca (int32 iocc_addr, int32 func, int32 modify)
#endif #endif
msec_now = sim_os_msec(); msec_now = sim_os_msec();
if (in_bsc_mode()) if (in_bsc_mode()) {
sca_timer_trigger = ! sca_timer_trigger; /* toggle the timer trigger */ sca_timer_trigger = ! sca_timer_trigger; /* toggle the timer trigger */
if (sca_timer_trigger) /* if we've just set it, we're stopping the other timers and */ if (sca_timer_trigger) /* if we've just set it, we're stopping the other timers and */
sca_start_timer(TIMER_035S, msec_now); /* starting the 0.35 sec timer */ sca_start_timer(TIMER_035S, msec_now); /* starting the 0.35 sec timer */
else else
sca_halt_timer(TIMER_035S); sca_halt_timer(TIMER_035S);
}
sca_toggle_timer(TIMER_3S, msec_now); /* toggle the 3 sec and 1.35 sec timers accordingly */ sca_toggle_timer(TIMER_3S, msec_now); /* toggle the 3 sec and 1.35 sec timers accordingly */
sca_toggle_timer(TIMER_125S, msec_now); sca_toggle_timer(TIMER_125S, msec_now);