So to that end, I wrote a little script which I call "slowcat" which makes it a snap to transfer BASIC code (and Assembly source for MITS Programming Package) to my altair. My setup starts with minicom running at 9600 baud. (For BASIC or MITS I set the serial port to 7S1: 7 bits, space parity, 1 stop bit). Then I also have the following script, which I call "slowcat"
Code: Select all
#!/bin/bash
#slowcat script for transmitting code
IFS=$'\n'
for line in `cat $1`
do
echo -n -e "$line\r\n"
sleep 0.25
done
To use the script, just redirect the output to your serial port. On my laptop this is at /dev/ttyUSB0. For example a full session for me works like this:
- Launch minicom with my 9600 7S1 setup
- Load 8k BASIC from tape.
- Launch a second window (either another term or screen, tmux, etc.)
- Use slowcat to send the code to the altair.
Code: Select all
slowcat wumpus4k.bas > /dev/ttyUSB0
While that runs, you'll see the code echo out on your minicom session. Once it completes, you can run it, save it to tape, and do antyhing else you want. Best of all, you don't have to leave the comfort of 9600 baud!
So that's my first little code contribution. I hope you find the information useful. I think I'll soon be uploading some altair code for you to play with.