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

PDP10-Kx: Add instructions to be used for clock precalibration

This allows wall clock delays (with sim_activate_after) to be as close
as possible right from when instruction execution starts without having
to execute for the seconds it will take for a proper execution rate
to be calibrated.
This commit is contained in:
Mark Pizzolato
2019-08-16 23:27:42 -07:00
parent b16a0bec54
commit 86c96f36e6

View File

@@ -6010,6 +6010,19 @@ qua_srv(UNIT * uptr)
#endif
/*
* This sequence of instructions is a mix that hopefully
* represents a resonable instruction set that is a close
* estimate to the normal calibrated result.
*/
static const char *pdp10_clock_precalibrate_commands[] = {
"-m 100 ADDM 0,110",
"-m 101 ADDI 0,1",
"-m 102 JRST 100",
"PC 100",
NULL};
/* Reset routine */
t_stat cpu_reset (DEVICE *dptr)
@@ -6044,6 +6057,7 @@ exec_map = 0;
for(i=0; i < 128; dev_irq[i++] = 0);
sim_brk_types = SWMASK('E') | SWMASK('W') | SWMASK('R');
sim_brk_dflt = SWMASK ('E');
sim_clock_precalibrate_commands = pdp10_clock_precalibrate_commands;
sim_rtcn_init_unit (&cpu_unit[0], cpu_unit[0].wait, TMR_RTC);
sim_activate(&cpu_unit[0], 10000);
#if MPX_DEV