Dead Zed
December 12th, 2004, 21:39
Hey!I'm still working on the Java Gameboy Emu I first posted about, and I could use some help with understanding interrupts. If anyone feels like helping, I'd be very grateful.
The thing is, when an interrupt is requested, or generated, the following occurs:
1.Set corresponding bit in IF (FF0F)
2.Check with the flags(IE & IME) if the interrupt should be serviced and if so...
3. Disable interrupts.(IME=0)
4.Push the program counter.
5.Jump (Set Program Counter) to the Starting Address of the Interrupt.
(According to the newest Pandocs)
So how is the Interrupts starting address determined?
Is it predetermined?Written into a register early in the program?Roasted on a stick??
*Looks at topic title*
*Looks at post*
I need some form of humor rehab... <_<
The thing is, when an interrupt is requested, or generated, the following occurs:
1.Set corresponding bit in IF (FF0F)
2.Check with the flags(IE & IME) if the interrupt should be serviced and if so...
3. Disable interrupts.(IME=0)
4.Push the program counter.
5.Jump (Set Program Counter) to the Starting Address of the Interrupt.
(According to the newest Pandocs)
So how is the Interrupts starting address determined?
Is it predetermined?Written into a register early in the program?Roasted on a stick??
*Looks at topic title*
*Looks at post*
I need some form of humor rehab... <_<