1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-25 11:55:43 +00:00

TIMER, SCP: Change the sim_activate_after APIs to pass the delay value as uint32.

Also change all sim_defs.h structure declarations and references of sim_
structures to use the typedef names everywhere.
This commit is contained in:
Mark Pizzolato
2015-12-10 06:33:59 -08:00
parent 2549f34560
commit de0d251c75
13 changed files with 134 additions and 131 deletions

View File

@@ -1440,7 +1440,7 @@ if (sim_asynch_enabled && sim_asynch_timer)
sim_start_timer_services ();
else {
UNIT *uptr;
int32 accum = 0;
uint32 accum = 0;
sim_stop_timer_services ();
while (1) {
@@ -1475,7 +1475,7 @@ if (0 == inst_per_sec)
return inst_per_sec;
}
t_stat sim_timer_activate_after (UNIT *uptr, int32 usec_delay)
t_stat sim_timer_activate_after (UNIT *uptr, uint32 usec_delay)
{
int inst_delay;
double inst_delay_d, inst_per_sec;