Assertions: Difference between revisions

m
(Add Next Generation Shell)
Line 18:
 
=={{header|68000 Assembly}}==
The <code>TRAP</code> instruction is used for error handling. Execution jumps to a specified memory address stored in the "trap table." Depending on the hardware, the exception handling subroutine is either built into the kernel or is defined by the programmer.
 
<lang 68000devpac>CMP.L #42,D0
BEQ continue
ILLEGAL ;causes an immediate jump to the illegal instruction vector.
ILLEGAL ;jumps to Trap 4. Alternatively, other trap numbers could have been chosen with the "TRAP #" command.
continue:
; rest of program</lang>
 
 
=={{header|Ada}}==
1,489

edits