mirror of
https://github.com/simh/simh.git
synced 2026-01-25 11:46:37 +00:00
Change the semantics of sim_is_active to return a t_bool (which was 98% of how it was used), and added new sim_activate_time to return the time a unit will be activated (the value previously returned). This affected a handful of used of sim_is_active in device implementations which were adjusted to use the sim_activate_time API.
This commit is contained in:
@@ -89,7 +89,7 @@ int32 used, incr;
|
||||
|
||||
if (clk_dev.flags & DEV_DIS) /* disabled? */
|
||||
return (stop_inst << IOT_V_REASON) | dat; /* illegal inst */
|
||||
used = tmxr_poll - (sim_is_active (&clk_unit) - 1);
|
||||
used = tmxr_poll - (sim_activate_time (&clk_unit) - 1);
|
||||
incr = (used * CLK_CNTS) / tmxr_poll;
|
||||
return clk_cntr + incr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user