Package smsqmulator

Interface ExternalInterruptHandler

All Known Implementing Classes:
QL50HzInterrupt

public interface ExternalInterruptHandler
A simple interface for external interrupt handlers. They "generate" the interrupt after doing what needs to be done.

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.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handles the interrupt this handler is responsible for.
    void
    This must stop the interrupt handler, and remove any reference to the cpu.
  • Method Details

    • handleExternalInterrupt

      void handleExternalInterrupt(MC68000Cpu cpu)
      Handles the interrupt this handler is responsible for. This can do anything it wants, but should raise the corresponding exception, so that SMSQE's interrupt servicing routine gets called.
      Parameters:
      cpu - the CPU.
    • removeHandler

      void removeHandler()
      This must stop the interrupt handler, and remove any reference to the cpu.