1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-04-28 12:49:01 +00:00

SCP: Updated to current version.

This commit is contained in:
Richard Cornwell
2017-03-12 22:52:16 -04:00
parent 9e1ae092ad
commit 5016950297
2 changed files with 5 additions and 2 deletions

View File

@@ -552,6 +552,8 @@ struct UNIT {
int32 u6; /* device specific */
void *up7; /* device specific */
void *up8; /* device specific */
uint16 us9; /* device specific */
uint16 us10; /* device specific */
void *tmxr; /* TMXR linkage */
t_bool (*cancel)(UNIT *);
double usecs_remaining; /* time balance for long delays */

View File

@@ -827,7 +827,7 @@ if (rtc_currd[tmr])
time = rtc_currd[tmr];
if (!uptr)
uptr = sim_clock_unit[tmr];
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_init_unit(unit=%s, time=%d, tmr=%d)\n", sim_uname(uptr), time, tmr);
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_init_unit(unit=%s, time=%d, tmr=%d)\n", uptr ? sim_uname(uptr) : "", time, tmr);
if (uptr) {
if (!sim_clock_unit[tmr])
sim_register_clock_unit_tmr (uptr, tmr);
@@ -2093,7 +2093,8 @@ int32 tmr;
sim_int_clk_tps = MIN(CLK_TPS, sim_os_tick_hz);
for (tmr=0; tmr<SIM_NTIMERS; tmr++) {
if ((rtc_hz[tmr]) &&
(rtc_hz[tmr] <= (uint32)sim_os_tick_hz))
(rtc_hz[tmr] <= (uint32)sim_os_tick_hz) &&
(sim_clock_unit[tmr]))
break;
}
if (tmr == SIM_NTIMERS) { /* None found? */