The Automaton Instructions Package This package contains the predefined instructions for automata.

Package Specification

This package contains the predefined instructions for automata.

The following instructions have been defined:

Instructions
IfJump <expression>, <segment> A conditional, absolute jump. If condition <expression> evaluates to true (that is, returns a non-zero value), the jump will be performed. Jumps can only target at segment starts. It is not possible to jump right into the middle of a segment.
Write [<addr>], <expression> Absolute memory access. Write the value returned by <expression> to the memory cell with the address <addr>.
Write [[<addr>]], <expression> Relative memory access. Write the value returned by <expression> to the memory cell referred by the memory cell with the address <addr>.
Sleep <expression> Put the CPU for <expression> ticks into sleep mode.