seblovett / VLSI

VLSI design project
0 stars 1 forks source link

Interrupt - Flags #65

Closed seblovett closed 10 years ago

seblovett commented 10 years ago

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```