CPU · Interrupt Handling
One step = one simplified FDE cycle followed by the interrupt check · watch PC branch to an ISR and return
LIVE MODEL
CPU now
—
USER
User program
Executing next instruction
PC: 0x1000
CPU registers · live
PC, ACC, MAR, MDR, CIR and FLAGS are shown in the saved context
PC
0x1000
ACC
0x00
MAR
0x1000
MDR
0x0000
CIR
0x0000
FLAGS
I=ON
SP · depth
0
Pending interrupt queue
highest eligible priority first
Queue empty. Trigger an interrupt source on the left.
Memory stack · saved CPU register context
register snapshot · PUSH on accept · POP on return · LIFO