<div dir="ltr"><div class="gmail_default" style="font-size:small">Thanks Paul,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">unfortunately I'm running RSTS V7 and tbh I'd like to keep it that way because I want to show the old style CLI rather than DCL.   I did try depositing the date and time values as suggested and just on the off chance but it didn't work.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Rgds</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Bryan</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 January 2018 at 16:05, Paul Koning <span dir="ltr"><<a href="mailto:paulkoning@comcast.net" target="_blank">paulkoning@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
> On Jan 18, 2018, at 10:40 AM, Bryan Davies <<a href="mailto:bryan.e.davies@gmail.com">bryan.e.davies@gmail.com</a>> wrote:<br>
><br>
> Many thanks to all for the advice.   Unfortunately I'm still not quite there.<br>
<br>
</span>There is an easy solution if you have a recent RSTS.<br>
<br>
The OS keeps date and time in location 1000-1004.  That is preserved across boot, and if on entry to INIT those locations contain what seems like a valid date, that's used as the system date/time.  This is why the more recent versions of RSTS don't prompt for date/time if you do a restart (SHUTUP with restart) or use the BOOT command in INIT.<br>
<br>
Second, if you're running V10.1, the "Start timesharing" prompt has a 10 second timeout, and will default to "yes" (i.e., start RSTS) at that point.<br>
<br>
So if you start SIMH with a startup script that deposits the date in 1000, and time in 1002, then issues the SIMH boot command, RSTS INIT will pick up that date/time and after 10 seconds will go on to start the OS.<br>
<br>
RSTS date format: (year-1970)*1000 + day_in_year<br>
RSTS time format: 1440 - (minutes_since_midnight)<br>
RSTS seconds: 60 - (seconds_since_minute)<br>
<br>
For example:<br>
<br>
$ pdp11 pdp11-42.ini<br>
<br>
PDP-11 simulator V4.0-0 Beta        git commit id: d3b6018d<br>
sim> d -d 1000 32004<br>
sim> d -d 1002 720<br>
sim> d -d 1004 30<br>
sim> bo rq<br>
?<br>
Thu Jan 18 11:02:00 2018<br>
<br>
RSTS P10.1-L V101XM (DU0) INIT V10.1-0L<br>
<br>
04-Jan-02 12:00 PM<br>
<br>
<br>
Start timesharing? <Yes> NO<br>
<br>
I entered the values in decimal (with -d) for convenience.  You can see the correct date and time are picked up by INIT.  Seconds are not displayed here but they are saved, so you can set them if you want to be that precise.<br>
<span class="HOEnZb"><font color="#888888"><br>
        paul<br>
<br>
</font></span></blockquote></div><br></div>