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 reg-

                ister (after verifying that various register 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