Write an assembly code that performs the following four tasks:

  • enable the interrupt number 31, and
  • sets its priority bits to 2, and
  • clears its pending bit
  • disable the interrupt 31

(Hints: Each interrupt has one enable bit, one pending bit, and one byte of priority.)

Public Answer

YJWKL9 The First Answerer