How are we going to solve the flags issue?
I think we're going to need an instruction (add to the interrupts set) which is a Push flags to stack, and a pull from stack.
ISR would then be:
SP-- (Pc already on stack)
PUSHF // push the flags
SP--
<ISR routine>
ENABLE Interrupts
SP++
POPF
SP++
RETI```
How are we going to solve the flags issue? I think we're going to need an instruction (add to the interrupts set) which is a Push flags to stack, and a pull from stack. ISR would then be: