ISR Context Save/Restore

Hard Assembly Concurrency
Solve this problem

Write ARM assembly to save and restore context on ISR entry and exit.

Constraints

  • Save r0-r3 and lr.
  • Restore in correct order.
  • Use push/pop.
  • Return via subs pc, lr, #4.
Starter codeAssembly
1.global isr2isr:3    ; TODO