










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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