public interface ExternalInterruptHandler
The CPU SHOULD do the following :
It checks whether the handler has signaled an interrupt (by calling the CPU's generateInterrupt
method.
If so, the CPU calls the handler's handleExternalInterrupt
method. this can do anything it wants, but should raise
the corresponding exception, so that SMSQE's interrupt servicing routine gets called.
The CPU actually does the following :
The CPU calls the handler's handleExternalInterrupt
method. This should check whether a interrupt is generated by it
If yes, the method can do anything it wants, but should raise the corresponding exception, so that SMSQE's interrupt servicing routine gets called.
Modifier and Type | Method and Description |
---|---|
void |
handleExternalInterrupt(MC68000Cpu cpu)
Handles the interrupt this handler is responsible for.
|
void |
removeHandler()
This must stop the interrupt handler, and remove any reference to the cpu.
|
void handleExternalInterrupt(MC68000Cpu cpu)
cpu
- the CPU.void removeHandler()