If your program is too large and overwrites the compiler (as the 'COGS' does!) then you will get a message 'RELOAD TAPES 1 AND 2' when the program finishes. From there you have the choice of following the procedure below, or pressing the 'reload' button on your browser. This restarts the simulator and reloads the compiler image, but sadly also destroys any programs you have created!
There are two programs in the filing cabinet, in the drawer marked Test Programs. One is in the box labelled 'Algol Test Program' and is a very simple Algol 60 program which illustrates a simple loop and output statements. The second is a more complex program that takes a while to run, and uses paper tape input from a data tape, and involves much more calculation and careful formatting of the output.
Before you can compile an Algol program, you must first load the Compiler and Run-time System from paper tape. This takes a while, indeed, the simulator currently takes longer than the original computer to do this, so be prepared to wait a while.
First load up the first tape, which is in the drawer marked 'Algol', in the box labelled 'Tape 1'. There is just the one tape, so transfer it to the reader as described in the general handling page. Next enter the initial instructions by setting F1=40, N1=0, press Read, Operate, Normal, Operate in sequence, and the Busy and Overflow lights on the keyboard will flicker. You may like to switch to the Reader again and watch the tape jump around as it is read in. It will gradually shrink in diameter until eventually it will halt.
Remove the tape from the reader by pressing the Runout button, upper right on the reader, which transfers the tape back to your hand, neatly wound up (most unrealistic if you have ever had to rewind paper tapes!). Put the tape back in it's box, close it and open the box labelled 'Tape 2'. Pick that up and transfer it to the reader, switch back to the Keyboard and perform the operation described in the Elliott documentation as 'change the sign digit'. This means the F1=40 button. If this is the first time through, it will be depressed at this point, so press the RED F1 button which will realease it. The computer will then start loading the second tape. Again, this takes some time, though a bit less than Tape 1 as it is somewhat smaller.
When it has stopped, put the tape back into it's box, close the box and the drawer, and open the bottom drawer, labelled 'Test Programs'. Open the box marked 'Algol Test Program' and transfer the small tape from there to the reader.
Switch back to the keyboard and 'change the sign digit', which should now mean press down the button marker 40 on the F1 row. The program tape will be read in, and the program is compiled into store. Switch to the 'Printer' page and, provided no errors have occurred, the computer should print out the program title, followed a 'FREE STORE' message and several line feeds.
If you try to compile the program from the 'Cogs Program' box, you will see that this is a much larger program, and takes a little longer to compile. This program also expects a data tape, which is the smaller of the two tapes in the box. You can use the right mouse button to display the titles of tapes. Click a second time to cancel the display.
Load the data tape into the reader before changing the 40-button on F2. The program displays a fair amount of output on the console printer and eventually, after several long pauses, displays a final answer and terminates.
If you want to try preparing your own program tapes you will need to learn how to use the tape editor. Click here to learn how to use it.
Page created by Bill Purvis, last update 29th November, 2004