PUSHSTATE        Save operating state                               Directive

PUSHSTATE

TASM has become a complex product with many operating states. It is
often desirable inside of a macro to have code which is 'independent'
of the current operating state but which does not affect the current
operating mode. This can be acheived through the use of the PUSHSTATE
and POPSTATE directives.

PUSHSTATE saves the current TASM state on an internal stack 16 levels
deep. The actual state saved includes the following:

Current emulation VERSION, i.e. T310 etc.
Mode selection, i.e. IDEAL, MASM, QUIRKS, MASM51
EMUL/NOEMUL switch
Current processor/coprocessor selection
MULTERRS/NOMULTERRS switch
SMART/NOSMART switch
Current RADIX
JUMPS/NOJUMPS switch
LOCALS/NOLOCALS switch
Current local symbol prefix.


POPSTATE restores the last-saved state from the stack.