<div dir="ltr">Hi folks,<br><br>With help from Gus Del Dago, I have got mame to talk to simh, so as promised, here is my recipe for doing this.<br><br>I have done this on a Debian 10.1 system.<br>I installed mame with 'apt-get install mame'.<br><br>Gus sent me two files. They are both called vt240.zip.<br>The first file is the ROM image that mame usually needs. I had such a file already and I need to go back and check if my original file was 'fit for purpose'. I have placed this file in the sub-directory MAME/Gus/roms of my login directory.<br>The second file is an image of the surroundings of a VT240 terminal. I have placed this in the sub-directory MAME/Gus/artwork of my login directory. The second file is not required, but it does give a pleasingly retro appearance to the emulated terminal.<br><br>The simh system that I am connecting to is a simulated microVAX 3900.<br>My vax.ini configuration file finishes with the lines<br><br>; Allow telnet connections to the DZV11 serial interface<br>SET DZ LINES=4<br>ATTACH DZ 10003<br>; Start the CPU<br>SET CPU CONHALT<br>DEP BDR 0<br>BOOT CPU<br><br>This allows me to connect to one of the asynchronous serial ports.<br><br>Alternatively you can connect mame to the simh console with<br>SET CONSOLE TELNET=10004<br><br>In the latter case, remove the SET CPU, DEP BDR 0, and BOOT CPU lines from vax.ini and boot the microVAX from the emulated VT240.<br><br>The port numbers 10003 and 10004 are arbitrary.<br><br>I start simh with the command<br>./vax<br><br>I wait for the boot sequence to finish, then I start mame with the command<br><br>mame vt240 -rompath /home/peter/MAME/Gus/roms -artpath /home/peter/MAME/Gus/artwork -window -vol -15 -bitb socket.localhost:10003<br><br>A large window appears simulating a VT240 screen. At first 'Wait' appears in the top left of the screen. Then 'VT240 OK' appears in a box. This is the usual behaviour when turning on a VT240 terminal.<br><div>Then you get some garbage characters on the screen being sent from the microVAX. This is because the baud rate of the mame terminal is set to 4800. To change the baud rate, do the following:</div><div><br></div>Press F3 on the keyboard. This gets you into the SETUP menu for the VT240.<br>Press Enter on the keypad (not the normal Return key) three times and press the right arrow key twice to get to the Transmit speed box. Pressing Enter will increase the speed from 4800 to 9600.<br><div>You can save these options for the next time if you wish.</div><div>Now press F3 to exit from the SETUP system.</div><br>Now press the normal Return key. This will give the 'Welcome to OpenVMS' message allowing you to log in.<br><br>I found the scroll speed to be slower than I liked, so I went back into the SETUP menu and changed the Smooth Scroll option to Jump Scroll.<br><br>I am happy that I have cracked the basics of getting mame to talk to simh. I will look further into using mame to emulate VT terminals later. I like the cool retro appearance of the screen (and I know that some terminal emulators can do this too).<br><br><div>Finally, a few words about why I had difficulty getting this to work in the first place. I mention this in case anyone else gets caught out the same way.</div><br>The instructions that I have given are essentially the same as I had already found on the internet. In my first attempt, I must have made some silly error in my ignorance. (No surprise there.) What sent me down a rabbit hole is that having failed to get the vt240 option to work, I just tried replacing vt240 in the mame command with vt100 (or perhaps vt102). This gave the error message<br>Error: unknown option: -bitb<br><br>So I started reading the man page and the documentation looking for an explanation of the -bitb flag. I found no such explanation and concluded (erroneously) that the -bitb option no longer existed.<br><br>What had not occurred to me was that -bitb is a valid option when specifying vt240 as the system to be emulated, but that it is invalid when specifying vt100 as the system to be emulated. In my experience, Linux command lines do not usually work this way! Ah well, you live and learn.<br><br>Cheers<br><br>Peter Allan<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 1 Jul 2020 at 14:34, Peter Allan <<a href="mailto:petermallan@gmail.com">petermallan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi folks,<div><br></div><div>I am trying to get MAME to talk to simh in order to use MAME as a VT terminal emulator. However, I am failing to get the two to talk to each other. I have been using simh for over 10 years, but I only picked up MAME two days ago.</div><div><br></div><div>I have tried MAME v 0.222 on Windows 10 and MAME v 0.208 on Debian 10.1. Both start up successfully, but I have trouble using them. I also have a set of 13 ROMs for several VT terminals.</div><div><br></div><div>I have found some helpful information on the web, specifically</div><div><br></div><div><a href="https://zork.net/~st/jottings/Real-VT102-emulation-with-MAME.html" target="_blank">https://zork.net/~st/jottings/Real-VT102-emulation-with-MAME.html</a> </div><div><br></div><div>and </div><div><br></div><div> <a href="https://wiki.mamedev.org/index.php/MAME_and_SIMH" target="_blank">https://wiki.mamedev.org/index.php/MAME_and_SIMH</a><br></div><div><br></div><div>The latter page looks like it should be just what I am looking for, but it describes using a VT240 ROM. My vt240 ROM doesn't work. My vt220 ROM does work, but when I follow the instructions to 'press F3 to enter setup', nothing happens.</div><div><br></div><div>I have also got the impression that some of the command line options for mame have changed over time, so some older information on the web may no longer be accurate.</div><div><br></div><div>So, has anyone got this combination to work? If so, can they send me exact instructions on how to do it please. I hope that I am simply failing to do something that will become obvious with hindsight.</div><div><br></div><div>My normal Linux system is CentOS 6, CentOS 7 or Fedora 31, but I also have Debian 10.1 available.</div><div><br></div><div>I run several simulated VAX and PDP-11 instances using simh.</div><div><br></div><div>Cheers</div><div><br></div><div>Peter Allan</div><div><br></div></div>
</blockquote></div>