public class QL50HzInterrupt extends java.lang.Object implements ExternalInterruptHandler
ExternalInterruptHandler
Constructor and Description |
---|
QL50HzInterrupt(int timeAddress,
MC68000Cpu cpu,
Screen screen)
Creates the object.
|
Modifier and Type | Method and Description |
---|---|
void |
handleExternalInterrupt(MC68000Cpu cpu)
Handles the interrupt, no instruction is being executed whilst this goes on.
|
void |
removeHandler()
This stops the interrupt handler, and removes any reference to the cpu.
|
void |
setCpu(MC68000Cpu ncpu)
Sets a (new) cpu object.
|
void |
setScreen(Screen screen)
Sets a (new) screen object.
|
void |
setScreenUpdateInterval(int tim)
Sets the interval between screen updates.
|
void |
startInterrruptHandler()
Starts the interrupt handler and screen redraw threads.
|
void |
stopInterruptHandler()
Stops the interrupt handler and screen redraw threads.
|
public QL50HzInterrupt(int timeAddress, MC68000Cpu cpu, Screen screen)
timeAddress
- where to put the time info.cpu
- the cpu to which this interrupt is attached.screen
- the screen used by the screenupdater thread.public void handleExternalInterrupt(MC68000Cpu cpu)
handleExternalInterrupt
in interface ExternalInterruptHandler
cpu
- the CPU for which an interrupt was generated.ExternalInterruptHandler.handleExternalInterrupt(smsqmulator.cpu.MC68000Cpu cpu)
public void startInterrruptHandler()
public void stopInterruptHandler()
public void removeHandler()
removeHandler
in interface ExternalInterruptHandler
public void setScreen(Screen screen)
screen
- the Screen to set.public void setCpu(MC68000Cpu ncpu)
ncpu
- the new Cpu to set.public void setScreenUpdateInterval(int tim)
tim
- the interval between screen updates in milliseconds