A state machine for an assembler capable of processing structured assembly language
is disclosed. The state machine for an assembler capable of processing structured
assembly language IF constructs includes five states, namely, an IF state, an ELSE
state, an END—IF state, an ELSE—IF state, and
a SETUP—IF state. In response to recognizing a SETUP—IF
clause during the IF state or the ELSE—IF state, the process transitions
to the SETUP—IF state. In response to recognizing an ELSE—IF
clause during the SETUP—IF state, the process transitions to the
ELSE—IF state.