










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An in-depth exploration of exception handling in microprocessors, covering topics such as interrupts and exceptions, their classes, handling mechanisms, and the sequence of actions taken during an interrupt or exception. The document also discusses nonmaskable interrupts, prioritized interrupts, and vectored interrupts.
Typology: Slides
1 / 18
This page cannot be seen from the preview
Don't miss anything!











Module Process_exception Begin [Temporary S 1 Register] [SR] {save status register in temporary location}{force supervisor mode} T Get Vector (^0) Number {turn off trace mode}{calculate exception type number} Address Handler [M(Address)]VectorNumber x 4 {exception vector is at 4 x vector number}{read table to get address of exception handler} [SSP] [M([SSP])] [SSP] [PC] – 4 {predecrement stack pointer{push program counter} } [SSP] [M([SSP])] [SSP] [TemporaryRegister] {push status register} – 2 {predecrement stack pointer} [PC] END Handler {call exception handler}
ProcessException *
BEGIN [SR] (^) [M([SSP])] {begin the{restore old SR} return from exception sequence-RTE} [SSP] [PC] [M([SSP])] [SSP] + 2 {restore old PC}
END^ [SSP]^ ^ [SSP] + 4