When a hardware interrupt occurs, where (or when) is cs:ip pushed onto the stack, I need to know what I need to pop off the stack.
When a hardware interrupt occurs, where (or when) is cs:ip pushed onto the stack, I need to know what I need to pop off the stack.
In some compilers, you specify an additional keyword (usually interrupt) when you declare the function, and it automatically generates the additional code required to make the function capable of being an ISR
You misunderstood. I dont want to know how to hook them (easy enough in assembly). Im guessing that when a hardware interrupt occurs it pushes cs and ip onto the stack and them jumps to wherever it is supposed to, I want to know what else is pushed on the stack first (if anything) so that I can read the values of cs and ip.
Then you need the processor reference manual for what ever processor you're using
x86, I guess Ill try the intel website.