V1/man/man2/cemt.2

Compare this file to the similar file:
Show the results in this format:

        11/3/71                                                  SYS CEMT (II)

NAME              cemt -- catch emt traps

SYNOPSIS          sys        cemt; arg / cemt = 29.; not in assembler

DESCRIPTION       This call allows one to catch traps resulting from the emt
                  instruction. Arg is a location within the program; emt
                  traps are sent to that location. The normal effect of emt
                  traps may be restored by giving an arg equal to 0.

                  Prior to the use of this call, the result of an emt
                  instruction is a simulated rts instruction. The operand
                  field is interpreted as a register, and an rts instruction
                  is simulated for that register (after verifying that
                  various registers have appropriate values). This feature
                  is useful for debugging, since the most dangerous program
                  bugs usually involve an rts with bad data on the stack or
                  in a register.

FILES

SEE ALSO

DIAGNOSTICS

BUGS

OWNER             ken, dmr