jmce - 1_02

jmce.sinclair.spectrum
Class Timer

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by jmce.sinclair.spectrum.Timer
All Implemented Interfaces:
Hardware, Peripheral, TimerListener

public class Timer
extends AbstractPeripheral
implements TimerListener

This class implements a 20 ms interrupt timer.

Generate one interrupt every 20 ms.

Version:
1.01
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Constructor Summary
Timer()
           
 
Method Summary
 void registerCPU(CPU cpu)
          Register a parent CPU for future reference.
 void timerExpired()
           
 
Methods inherited from class jmce.sim.AbstractPeripheral
idle, setIdle, setLive
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Hardware
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Constructor Detail

Timer

public Timer()
Method Detail

registerCPU

public void registerCPU(CPU cpu)
                 throws SIMException
Description copied from interface: Peripheral
Register a parent CPU for future reference.

Specified by:
registerCPU in interface Peripheral
Overrides:
registerCPU in class AbstractPeripheral
Throws:
SIMException

timerExpired

public void timerExpired()
                  throws SIMException
Specified by:
timerExpired in interface TimerListener
Throws:
SIMException

jmce - 1_02