Question: Question 6 - Interrupt handling gone wrong ( 8 pts ) In class, we have discussed the ultimate ISR as an homage to Claude Shannon's
Question Interrupt handling gone wrong pts
In class, we have discussed the ultimate ISR as an homage to Claude Shannon's ultimate machine: The ultimate ISR does nothing except clearing the interrupt flag. Below is an ultimate ISR that serves push buttons S and S You can assume that the IVT has been correctly populated.
UltimateISR:
checkS: ; Confirm the source of the interrupt
bit.b #BIT &PIFG
jnc checkS
; Do nothing, just clear the interrupt flag for S
bic.b #BIT &PIFG
checkS: ; Confirm the source of the interrupt
bit.b #BIT &PIFG
jnc retfromISR
; Do nothing, just clear the interrupt flag for S
bic.b #BIT &PIFG
retfromISR:
ret
What will happen when you press push button S
Give a short but precise answer that explains what happens at the register level. This will be text entry in Carmen. One sentence suffices.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
