In Go mode, your program is automatically executed at the speed you select, and you can watch exactly what is happening in the program.
The Go menu shown in the figure below appears at the bottom of the screen as execution begins. The program is currently executing at a speed of 5, the default setting.
The speed is displayed on the information line. You can set execution speed from either the Animate main menu or the Go menu. The range of speeds is from 0 to 9, with 0 the slowest speed. You can change this speed at any time during execution (except during an ACCEPT statement) by pressing a key between 0 and 9.
Execution halts when an ACCEPT statement is reached. The system now pauses on the user screen after executing the ACCEPT statement on line 114. It is prompting you to enter data.
The system continues animation in Go mode and pauses after the next ACCEPT, displaying the user screen and prompting again for data.
This places an "X" in square 9 and resumes program execution in Go mode. Remember, you can press F2=view at any time to see the user screen.
Execution stops again when you are prompted to select another square. Notice that the system has placed a 0 in square 5.
You can temporarily halt execution at any time except while the program is executing an ACCEPT statement. The message:
Keyboard interrupt
appears at the bottom of the screen. The cursor is positioned on the next executable statement.