Amos Professional Manual  Contents  Index

the Bare Bones


STOP
instruction: interrupt the current program
Stop

To stop the current program. The STOP instruction is used like this:

E> Print "Interrupt in two seconds!"
   Wait 100
   Stop
   Print "I have been abandoned"

EDIT
instruction: leave current program and return to Edit Screen
Edit

Similarly, the EDIT instruction forces the program to be abandoned, and returns you straight to the Edit Screen, like this:

E> Print "Wait four seconds and then EDIT"
   Wait 200
   Edit
   Print "I have been ignored!"

DIRECT
instruction: leave current program and return to Direct Mode
Direct

Use the DIRECT command to jump out of the current program and go straight to Direct Mode for testing out a programming idea.

E> Print "Take me to Direct Mode immediately"
   Direct

Normally, a program can be interrupted by pressing the [Ctrl] and the [C] keys together, returning you to the AMOS Professional Edit Screen. This facility can be turned off and on at will, creating a crude sort of program protection.

BREAK OFF
BREAK ON
instructions: toggle the program break keys off and on
Break Off
Break On

The BREAK OFF command can be included in a program to stop a particular routine from being interrupted while it is running. To re-start the interrupt feature, use BREAK ON. But be warned!

Back    Next
05.01.08