<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I don’t know how feasible this would be for VAX code, but this might work: write a converter/emulator that reads the relocatable object code for VAX basic (assuming
 you can get it – I don’t know how VAX software is distributed) and converts it to C code. You’d have to write wrappers that emulate VAX library routines using posix routines.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">If it worked, you’d have a portable version of VAX basic.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I’ve been thinking about trying this with the OS that I use simh for – hp1000/RTE<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Simh [mailto:simh-bounces@trailing-edge.com]
<b>On Behalf Of </b>khandy21yo<br>
<b>Sent:</b> Wednesday, August 05, 2015 8:33 PM<br>
<b>To:</b> Dan Gahlinger; simh@trailing-edge.com<br>
<b>Subject:</b> Re: [Simh] off-topic basic translator<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Tgat looks like vt52 sewuence. To work on more terminal screens you might want to upgrade to ansii vt100 at leasr. Some terminals dont understand the vt52 codes.<br>
<br>
<br>
-------- Original message --------<br>
From Dan Gahlinger <<a href="mailto:dgahling@hotmail.com">dgahling@hotmail.com</a>>
<br>
Date: 08/05/2015 1:56 PM (GMT-07:00) <br>
To <a href="mailto:simh@trailing-edge.com">simh@trailing-edge.com</a> <br>
Subject Re: [Simh] off-topic basic translator <br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">Another issue I'm running into which should be fun, is VT escape sequences<br>
<br>
eg:<br>
170 PRINT ESC+"Y"+CHR$(53)+CHR$(33);\INPUT #1;"PRESS RETURN TO CONTINUE";A$<br>
<br>
That puts the cursor at a specific place on screen,<br>
these were built on VT-52 and VT-100 terminals with fixed screen size.<br>
using Linux you can get ANSI support, but the screen could be a vastly different size,<br>
of course, we can just make it run like normal.<br>
<br>
the other problem is the escape sequences themselves may not work any more.<br>
they seem to work in Linux with ANSI enabled,<br>
will they work on Mac CLI (maybe) or DOS/Windows ? portability is important.<br>
<br>
But, I'm not going to do a ton of work writing cursor routines for a dozen basic programs from the 80's.<br>
<br>
and btw freepascal has incredible string handling for those doubters out there...<br>
<br>
Dan.<o:p></o:p></p>
</div>
</div>
</body>
</html>