<font color='black' size='2' face='arial'>Dave,
<div><br>
</div>

<div>You need not be amazed; your idea is sound and as you mentioned, getting the brackets</div>

<div>right was the worst of it.  Congrats on the code transformation from simply "nasty" to</div>

<div>"really horrid" and finally "truely noxious".  I'll insert some line breaks and comments to</div>

<div>make it potentially readable.  (Here I thought APL was the only write-only language.)</div>

<div><br>
</div>

<div>Perhaps this original code struck you as nasty because it is really a hidden OS dependency,</div>

<div>is it not?  Or are character set arrangements not included in that realm?</div>

<div><br>
</div>

<div>Thinking about related matters, do I need to be concerned that the IBM systems are</div>

<div>big endian?  It appears that simh takes this into account with the sim_finit routine in sim_fio.c,</div>

<div>but there could be other places with data coding assumptions not fitting the /370 architecture.<br>
<br>
For the moment, I hacked the "attach" <dev>" code to avoid a rb+ file open attempt since</div>

<div>the CMS implementation of the stdio package does not support simultaneous r/w file access.</div>

<div>This will surely prove to be another big problem, but for now the attach is successful for an</div>

<div>existing file.</div>

<div><br>
</div>

<div>Fritz<br>
<br>

<div style="font-family:arial,helvetica;font-size:10pt;color:black">-----Original Message-----<br>
From: Dave G4UGM <dave.g4ugm@gmail.com><br>
To: rubhone <rubhone@aol.com><br>
Cc: 'simh' <simh@trailing-edge.com><br>
Sent: Fri, Jul 31, 2015 7:09 am<br>
Subject: RE: [Simh] Porting simh for IBM VM/CMS<br>
<br>




<div id="AOLMsgPart_2_08b105c4-c7d4-4dd3-8ec7-b8ad1ce5a437">
<style scoped="">#AOLMsgPart_2_08b105c4-c7d4-4dd3-8ec7-b8ad1ce5a437 td{color: black;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"} .aolReplacedBody p.MsoNormal,.aolReplacedBody li.MsoNormal,.aolReplacedBody div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman",serif;} .aolReplacedBody p.msochpdefault,.aolReplacedBody li.msochpdefault,.aolReplacedBody div.msochpdefault {mso-style-name:msochpdefault; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; font-size:12.0pt; font-family:"Times New Roman",serif;} .aolReplacedBody span.emailstyle18 {mso-style-name:emailstyle18;} .aolReplacedBody span.apple-tab-span {mso-style-name:apple-tab-span;} .aolReplacedBody span.EmailStyle20 {mso-style-type:personal; font-family:" color:#1F497D;} .aolReplacedBody span.EmailStyle21 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:#1F497D;} .aolReplacedBody .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif; mso-fareast-language:EN-US;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} .aolReplacedBody div.WordSection1 {page:WordSection1;} </style>

<div lang="EN-GB" class="aolReplacedBody">
 
<div class="WordSection1">
  
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I am amazed, and very glad, it works, been ages since I wrote any ā€œCā€ ā€¦.</span></div>

  
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">.. and as for threads, well they are hidden in the headers, and should just pick up again. </span></div>

  
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"> </span></div>

  
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Dave Wade</span></div>

  
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">G4UGM</span></div>

  
<div class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"> </span></div>

<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div>
<div id="AOLMsgPart_2_e05d5529-7b97-46c7-9386-b62bedb069a2">
<div>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt"><blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
          </div>

         </div>

        </blockquote>
       </div>

      </div>

     </div>

    </div>

   </div>

  </div>

 </div>

</div>

</div>




</div>
</div>
</font>