mirror of
https://github.com/open-simh/simh.git
synced 2026-05-04 23:25:46 +00:00
IBM1130: Make timer logic consistent with comments describing expected action
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user