I've recently been learning Forth as a fun bit of computing history. For anyone who hasn't used Forth before, it's a very interesting language that presents a low-level view of the computer but as opposed to assembly it's not processor specific. It's been a lot of fun for me to learn and I was surprised at how easy it was to get started!
I found a public domain image of a "bare metal" Forth implementation for the PDP-11 which works perfectly on the PiDP-11. I'll include instructions here for anyone who wants to test it out, and I'm also happy to send a patch if it's of interest for the main PiDP-11 image. (I'm just not sure where the source for that project lives; if someone has a pointer I'd be grateful.)
To set up on the PiDP-11, start with `
sudo -s` to become root and then:
- mkdir /opt/pidp11/systems/figforth && cd /opt/pidp11/systems/figforth
- wget http://www.stackosaurus.com/figforth-1.3.3.1/rl02_figforth-1.3.3.1.dsk.gz
- gzip -d rl02_figforth-1.3.3.1.dsk.gz
- Create 'boot.ini' with contents:
detach all
reset all
set cpu 11/70
set rl0 rl01
attach rl0 rl02_figforth-1.3.3.1.dsk
; connect to panel
set realcons host=localhost
set realcons panel=11/70
; We're running on a desktop PC with connection to localhost: max speed!
set realcons interval=1
set realcons connected
;set realcons debug
;show realcons
echo
echo
echo FIG Forth from http://www.stackosaurus.com/figforth.html
echo After booting, type:
echo 1 load
echo to load the rest of the FIG Forth system from disk.
boot rl
- cd ..
- Add line to 'selections':
4444 figforth - Restart the simh service (or just reboot)
Enjoy!
- rm