SOFTWARE

Among the software considerations when you are goung to use an interrupt are the following:
1. What instructions are required to unmask/enable the interrupt input you want to use
2. How are the stack and stack pointer initialized?
3. Does the CPU automatically save flags and register contents when it responds to the intrrupt, or do you habe to use push instructions at the start of the routine to do this?
4. How can data required by the interrupt service procedure be accessed no matter where in the main program interrupt occurs
5. What instructions are required at the end of the procedure to restore main program flags and registers, enable interrupts, and return to the interrupted mainline program