<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Sorry for top posting.</div><div><br></div><div>Write a remapping macro to convert from the array index to the EBCDIC encoding. Use conditional compilation so when the target OS is not VM or MVS it does nothing and returns the original index.<br><br>Jordi Guillaumes Pons<div><br></div></div><div><br>El 29/07/2015, a les 7:06, <a href="mailto:rubhone@aol.com">rubhone@aol.com</a> va escriure:<br></div><blockquote type="cite"><div><font color="black" size="2" face="arial">I have made substantial progress in an attempt to run simh under IBM's VM/370 CMS environment.
<div><br>
</div>

<div>Difficulties include:</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>lack of a proper "make" facility</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>external reference and symbolic names limited <span style="font-size: 10pt;">to 8 characters</span></div>

<div><span style="font-size: 10pt;"><span class="Apple-tab-span" style="white-space:pre">       </span>no hierarchical file system</span></div>

<div><span style="font-size: 10pt;"><span class="Apple-tab-span" style="white-space:pre">       </span>OS dependencies for file I/O, timers, etc.</span></div>

<div><span style="font-size: 10pt;"><span class="Apple-tab-span" style="white-space:pre">       </span>file system preference for fixed length 80 byte record-oriented files</span></div>

<div><span style="font-size: 10pt;"><span class="Apple-tab-span" style="white-space:pre">               </span>makes importing source code awkward</span></div>

<div><span style="font-size: 10pt;"><br>
</span></div>

<div><span style="font-size: 10pt;">Despite all of this, I am currently able to compile, load and execute the simh scp for a</span></div>

<div><span style="font-size: 10pt;">target ALTAIR system.   Console interactions (set/show) are fine, and the sim will run</span></div>

<div><span style="font-size: 10pt;">"do" files upon startup and interactively.</span></div>

<div><span style="font-size: 10pt;"><br>
</span></div>

<div><span style="font-size: 10pt;">I am currently trying to get the "attach <dev> <file>" code working.  This made me realize</span></div>

<div><span style="font-size: 10pt;">that a compiler (gcc) warning regarding sim_switches and SWMASK is a real issue.</span></div>

<div><span style="font-size: 10pt;"><br>
</span></div>

<div><span style="font-size: 10pt;">The EBCDIC character set used on IBM systems has gaps in the codes for "A" to "Z",</span></div>

<div><span style="font-size: 10pt;">occupying an integer range of 41 values.  This causes the left shift in SWMASK to exceed</span></div>

<div><span style="font-size: 10pt;">the defined size of int32 for sim_switches.</span></div>

<div><br>
</div>

<div>My broad range of old-school programming by no means makes me an expert in C.</div>

<div>Any ideas on a compact solution for this character set problem?</div>

<div><br>
</div>

<div>Regards,</div>

<div>Fritz</div>

<div><span style="font-size: 10pt;"><br>
</span></div>

<div><span style="font-size: 10pt;"><br>
</span></div>
</font></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Simh mailing list</span><br><span><a href="mailto:Simh@trailing-edge.com">Simh@trailing-edge.com</a></span><br><span><a href="http://mailman.trailing-edge.com/mailman/listinfo/simh">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></span></div></blockquote></body></html>