<div>Thanks to all for your comments.</div><div> </div><div>Kevin, yes I could define logical names that would let me refer to the drives using the names DRA0 and DRA1, but they would still show up as DRA2 and DRA3 on the output of "sho dev d" for example. I would like to do better if I can.</div>
<div> </div><div>Johnny, I agree in principle, but I really don't want to get into rewriting too much of SIMH.</div><div> </div><div>Mark, that sounds like a very useful suggestion and I will look into how the RQ controllers are implemented. Hopefully it will indeed let me add any drive to any massbus, which is as it should be. If I succeed, it should be generally useful. My original suggestion was clearly a "dirty hack" and even if it worked, would not be suitable for airing in public.</div>
<div> </div><div>Cheers</div><div> </div><div>Peter Allan<br><br></div><div class="gmail_quote">On 21 November 2012 22:09, Mark Pizzolato - Info Comm <span dir="ltr"><<a href="mailto:Mark@infocomm.com" target="_blank">Mark@infocomm.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div lang="EN-US" vlink="purple" link="blue"><div><p class="MsoNormal">
<span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Hi Peter,<u></u><u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">I have no specific knowledge of how multiple mass busses may be ‘wired’ into simh.  However, once you figure that detail out. I suggest that you consider the idea of extending the existing pdp11_rp.c to support multiple ‘device’ instances where each device is attached to a desired massbus and has its own set of units.  You may want to look at how pdp11_rq.c supports multiple RQ instances as an example.  Meanwhile, if you’d ever like to have your changes make it back into the general simh code base, then please start from the latest pdp11_rp.c which can be found at: <a href="https://github.com/simh/simh/blob/Extra-VAXen/PDP11/pdp11_rp.c" target="_blank">https://github.com/simh/simh/blob/Extra-VAXen/PDP11/pdp11_rp.c</a> and a zip of the current Extra-VAXen branch at: <a href="https://github.com/simh/simh/archive/Extra-VAXen.zip" target="_blank">https://github.com/simh/simh/archive/Extra-VAXen.zip</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">I am in the middle of tracking down a bug in this code right now (<a href="https://github.com/simh/simh/issues/14" target="_blank">https://github.com/simh/simh/issues/14</a>), so feel free to start looking at things now, but be prepared to take an update to pdp11_rp.c when I resolve the issue.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Good Luck,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p><p><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><span>-<span style="font:7pt/normal "Times New Roman";font-size-adjust:none;font-stretch:normal">          </span></span></span><u></u><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt">Mark Pizzolato<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:"Calibri","sans-serif";font-size:11pt"><u></u> <u></u></span></p><div style="border-width:medium medium medium 1.5pt;border-style:none none none solid;border-color:currentColor currentColor currentColor blue;padding:0in 0in 0in 4pt">
<div><div style="border-width:1pt medium medium;border-style:solid none none;border-color:rgb(181,196,223) currentColor currentColor;padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-family:"Tahoma","sans-serif";font-size:10pt">From:</span></b><span style="font-family:"Tahoma","sans-serif";font-size:10pt"> <a href="mailto:simh-bounces@trailing-edge.com" target="_blank">simh-bounces@trailing-edge.com</a> [mailto:<a href="mailto:simh-bounces@trailing-edge.com" target="_blank">simh-bounces@trailing-edge.com</a>] <b>On Behalf Of </b>Peter Allan<br>
<b>Sent:</b> Wednesday, November 21, 2012 12:27 PM<br><b>To:</b> <a href="mailto:simh@trailing-edge.com" target="_blank">simh@trailing-edge.com</a><br><b>Subject:</b> [Simh] Adding a third massbus to the VAX780 emulator<u></u><u></u></span></p>
</div></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Many, many years ago, I used to be the system manager of a VAX-11/780 system that was part of the Starlink astronomical data processing network in the UK. One of my pet projects is to have an em<span style="color:rgb(31,73,125)">et def</span>ulation of this as close to the original as I can get it. The system had two RP06 disk drives and two System Industries drives that emulated RM05 drives. Since the System Industries drives interfaced to the 780 through their own massbus adapter, the RP06 drives appeared as devices DBA0 and DBA1, and the emulated RM05 drives appeared as DRA0 and DRA1.<u></u><u></u></p>
</div><div><div class="h5"><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">I can create a similar system using simh, but with all of the drives on a single massbus, the drives appear as devices DBA0, DBA1, DRA2 and DRA3. This apparently trivial difference annoys me so I am looking for a way of having both the RP06 and RM05 drives appear as units 0 and 1.<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">I presume that this will require modifying simh to add a third massbus adapter. (Please do tell me if there is an easier way.)<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Having looked at the simh code, I am reasonably confident of being able to add a third massbus. However, how can I attach RP drives to one massbus and RM drives to another? Both drives are handled by the same function, i.e. pdp11_rp.c. My thoughts at the moment are that I should copy pdp11_rp.c to a new file pdp11_rm.c and remove the code that handles the RM disk from pdp11_rp.c and vice versa for the RP code in pdp11_rm.c<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">I can see that there is more work to do in terms of splitting the handing of interrupts and the like, but before diving in, does my basic strategy seem correct? It would be more like real life (I think) to be able to add RM and RP drives to both massbuses that handle disks, but I don't see how to do that without a lot more work.<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">And before anyone says it, I know I am mad to be trying to do this. The effort is clearly disproportionate to the benefit, but it is a hobby after all.<u></u><u></u></p>
</div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">All comments gratefully received.<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal">Peter Allan,  <a href="mailto:petermallan@gmail.com" target="_blank">petermallan@gmail.com</a><u></u><u></u></p>
</div></div></div></div></div></div></blockquote></div><br>