retrocmp

Main Menu

  • Home
  • Stories
  • Tools
    • PDP11GUI
    • SimH with telnet access
    • MACRO-11 on Windows
    • PDP-11/34 programmer's console
    • PDP-11 Diagnostic Database
    • TU58FS - PDP-11 file sharing by tape emulator
    • PDP11MONLOADER - code download into PDP-11's
    • UniProbe - a better UNIBUS signal adapter
    • QProbe - a QBUS signal adapter
    • UNIBUS SPC G7273 Diagnostics
    • QBUS G9047 Diagnostics
    • DEC KM11 maintenance panel
    • DEC Flip-Chip Extenders
    • TTY2PI - Multifunction adapter for ASR-33 Teletype
    • uTracer11 - a GUI for micro stepping a PDP-11
  • How-To's
  • Articles
  • Projects
  1. You are here:  
  2. Home
  3. Tools
  4. SimH with telnet access
  5. Tools
  6. SimH with telnet console access

SimH with telnet console access

A modification of SimH to access it's command prompt over telnet.

SimH with telnet access

Details
Written by: Administrator
Parent Category: Tools
Category: SimH with telnet console access

Remote controlling SimH

SimH is the perhaps most well-known simulator for historic computer systems. It’s is an open project guided by Bob Supnik, a former DEC manager.

SimH’s console

While SimH is a quite thorough simulation of all PDP-11’s, it does not simulate the system console interface of the simulated machines logic. Get this right:

  • Of course SimH simulates the serial ports of the simulated machine and routes them over telnet connections.
  • But SimH does not simulate the serial system console of any PDP-11.
  • SimH itself can be considered as a system console for the simulated machine. You can type your “Examine/Deposit/Run/Halt/Single Step” commands into its command window. But the command window is not connected to the outside world via telnet.

To connect PDP11GUI to SimH, I needed a way to remote-control SimH from another software. Under UNIX, I could have attached to SimH’s stdin/stdout stream. Under MS Windows, SimH runs as a console mode program (formerly called “DOS box”); it was too painfull for me to grab the console mode I/O. I decided to modify SimH instead.

Changes

The SimH sources are free for download. I tried to understand how the serial lines are routed over telnet, and then routed the stdin/stdout streams over telnet too. SimH has now three new commands:

  • “set stdio telnet=<port>” switches the command window from direct input to telnet mode. SimH waits 10 seconds for a conenction, then switches back to stdin/stdout mode. <port> is normally 23, but any port can be choosen.
  • “show stdio” displays whether telnet rerouting is active (quite obsolete, because to see this, you already must know how to connect to SimH)
  • “set stdio notelnet” closes a telnet connection.

Status: “patched”

I just built the emulator for PDP-11 under Microsoft Visual Studio. I did not test other simulators, neither did I build SimH with my modifications for other platforms. I announced my changes to the SimH mailing list, but got no feedback yet. So I distribute my changes here without authorization!

For PDP11GUI, you need to download the modifed PDP-11 simulator: get it here.

If you are a SimH developer, you may want to download the changed SimH-sources.

pdp11.exe.zip -- Just the compiled SimH 3.8-1 with telnet console interface.

simhv381-j-hoppe.zip -- SimH sources. My modified version of SimH 3.8-1.