PiDP-8/I Software

Artifact [6b39340a92]
Log In

Artifact 6b39340a926a905a8b0c1957714cb6c5a1cdb3c9:


Getting Started with the PiDP-8/I Software

Prerequisites

Configuring, Building and Installing

This software distribution builds and installs in the same way as most other Linux/Unix software these days. The short-and-sweet is:

$ ./configure && make && sudo make install

If you get a complaint like "No working C compiler found," there are two likely causes. One is that the error message is literally correct: you don't have a C compiler installed. You can install one along with all the other necessary build tools with:

$ sudo apt install build-essential

The other possibility is that you have somehow managed to unpack the software into a directory that you don't have write access to, such as by unpacking it via sudo. The solution is to either take ownership of that directory or to unpack it again, this time somewhere your user is allowed to write to.

The configure script accepts most of the common flags for such scripts. Perhaps the most important such flag is --prefix, which lets you override the default installation directory, /opt/pidp8i. You could make it install the software under your home directory on the Pi with this command:

$ ./configure --prefix=$HOME/pidp8i && sudo make install

You still need the sudo in this case, even though the installation prefix is a directory your user has write access to, because the installation process does other things that do require root access.

Run ./configure --help for more information on your options here.

The installer normally will not overwrite the operating system and program media (e.g. the OS/8 RK05 disk cartridge image) when installing multiple times to the same location. If you do want the OS/program media overwritten with fresh copies, say:

$ sudo make mediainstall

This can be helpful if you have damaged your OS/program media or simply want to return to the pristine versions as distributed.

The Serial Mod

If you have done the serial mod to your PiDP-8/I PCB and the Raspberry Pi you have connected to it, add --serial-mod to the configure command above.

If you do not give this flag at configure time with these hardware modifications in place, the front panel will not work correctly, and trying to run the software may even crash the Pi.

If you give this flag and your PCBs are not modified, most of the hardware will work correctly, but several lights and switches will not work correctly.

Testing

You can test your PiDP-8/I LED and switch functions with the pidp8i-test program. It will be in the PATH after installing the software.

This program cannot run while the PiDP-8/I simulator is running in the background. Therefore, before running it, say:

$ sudo systemctl stop pidp8i

You may have to log out and back in for this to work, since the installation script modifies your normal user's PATH since the normal installation prefix is not in the stock Raspbian user PATH.

See README-test.md for more details.

Using the Software

For the most part, this software distribution works like the upstream 2015.12.15 distribution. Its documentation therefore describes this software too, for the most part.

The largest user-visible difference between the two software distributions is that all of the shell commands affecting the software were renamed to include pidp8i in their name:

  1. To start the simulator:

    $ sudo systemctl start pidp8i
    

    (This normally happens automatically on reboot after sudo make install above, but you may have the service stopped or disabled, such as in order to run one of the various forks of Deeper Thought.)

  2. To enter the simulator:

    $ pidp8i
    

    This works because $prefix/bin is added to the installing user's PATH on make install. This script does the same thing as pdp.sh in the upstream distribution.

  3. To return to the Raspbian command prompt without shutting the simulator down, type Ctrl-A d. Then you can re-enter with a pidp8i command.

  4. To shut the simulator down from within, type Ctrl-E to pause the simulator, then at the simh> prompt type quit. Type help at that prompt to get some idea of what else you can do with the simulator command language, or read the SimH Users' Guide.

  5. To shut the simulator down from the Raspbian command line:

    $ sudo systemctl stop pidp8i
    

The other major difference between the upstream distribution and this one is that there is no separate install script. The make install command you ran above did everything for you.