Download IM: U: Trap Manager
Transcript
C H A P T E R 8 Trap Manager When the trap dispatcher receives the A-line instruction, it looks into a table, called a trap dispatch table, to find the address of the called system software routine. After the trap dispatcher retrieves the address, it transfers control to the specified system software routine. Figure 8-1 illustrates the processing of instructions that include the A-line instructions that the microprocessor does not recognize. Figure 8-1 How the CPU processes A-line instructions Machine instruction Does CPU recognize instruction? Yes CPU executes instruction No Exception (trap) Trap dispatcher Retrieves address Trap dispatch table Executes System software routine You can use the Trap Manager routines to read from and write to the two trap dispatch tables maintained by system software. 8-4 About the Trap Manager