Amos Professional Manual  Contents  Index

AMAL


These tests consist of any of the following commands:

Let
L register=expression

This is the standard AMAL Let instruction, and it assigns the result of an expression to a register. For example:

X> Let R0=XM

JUMP
J label

Use Jump to go to a label positioned at another part of the current Autotest. The label is defined using a colon, and it must lie inside the Autotest brackets, like this:

X> (... J Targetlabel   Targetlabel: ...)

EXIT
eXit

This leaves the Autotest and re-enters the main program once again, at the original departure point.

WAIT
Wait

This turns off the main AMAL program completely, and only allows the Autotest to be executed.

ON
On

The On instruction re-starts the main program again after a previous Wait command. This allows you to wait for a specific event, such as a mouse click, without wasting valuable processor time.

DIRECT
Direct label

The Direct command changes the point at which the main program will be resumed, after an Autotest. AMAL will now jump to this point at the next vertical blank period. Note that the label must be defined outside of the Autotest brackets. For example:

X> (... Direct M)
   ... M:
Back    Next
07.06.16