(Solved) : Code Given Please Answer Using Plp 52 Answer Know Correct Answer Q34969068 . . .

The Task In this project, you will be adding an interrupt service routine (ISR) to an existing program. The program is alread

Code given:

main.asm:25 <main program> .org 0x10000000 2 1її $sp, 0x10fffffc # Stack pointer initialization 1її $so, sseg-Lut # Lookup ta

please only answer by using plp 5.2.

ONLY ANSWER IF YOU KNOW THE CORRECT ANSWER!

The Task In this project, you will be adding an interrupt service routine (ISR) to an existing program. The program is already fully functional hexadecimal counter that shows the current counter value on the seven-segment display. You will use the timer to generate an interrupt every xcycles (where x can be between 100 and 200 cycles). Your ISR needs to do the following things: Toggle all eight LEDs (i.e. if they are all off, they should all be turned on and if they are already on, turn them off) Perform any tasks necessary to allow another timer interrupt within 100 to 200 cycles 1. 2. No changes should be made to the existing main loop or sseg_display.asm. Code should only be added following the TODO comments. main.asm:25 .org 0x10000000 2 1її $sp, 0x10fffffc # Stack pointer initialization 1її $so, sseg-Lut # Lookup table address used by sseg-display Диї $s1, 0xf070 # Interrupt controller register # Seven segment display 10 |# TODO : enable interrupts below 12 13 14 15 16 |# NOTE: Do not add or modify any code within this main loop 17 main: 18 19 20 21 јаї sseg-display nop addiu $a0, $a0, 1 main 23 24 25 26 |# TODO: add interrupt service routine below Show transcribed image text

Expert Answer


Attached