jfrace.device
Class ELZET80Keyboard

java.lang.Object
  |
  +--jfrace.device.DummyDevice
        |
        +--jfrace.device.ELZET80Keyboard
All Implemented Interfaces:
AddressSpaceListener, Device, Hardware

public class ELZET80Keyboard
extends DummyDevice
implements AddressSpaceListener

Keyboard of my old ELZET 80 system.

Author:
Franz-Josef Elmer

Constructor Summary
ELZET80Keyboard()
           
 
Method Summary
 byte getByte(int address)
          Return the byte at the given address.
 int getNumberOfUnits()
          Return 3 as the number of addressable units.
 void hardwareMoved(AddressSpaceEvent event)
          Catch the CPMEmulator when it is added to the address space.
 
Methods inherited from class jfrace.device.DummyDevice
getNumberOfBits, getValue, reset, setByte, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ELZET80Keyboard

public ELZET80Keyboard()
Method Detail

hardwareMoved

public void hardwareMoved(AddressSpaceEvent event)
Catch the CPMEmulator when it is added to the address space.
Specified by:
hardwareMoved in interface AddressSpaceListener
Following copied from interface: jfrace.AddressSpaceListener
Parameters:
event - Event holding the details.

getNumberOfUnits

public int getNumberOfUnits()
Return 3 as the number of addressable units.
Overrides:
getNumberOfUnits in class DummyDevice

getByte

public byte getByte(int address)
Return the byte at the given address. This method is similar to getValue but has a better performance.
WARNING: This method should be used only when the addressable unit is a byte.
Overrides:
getByte in class DummyDevice
Parameters:
address - memory address.
Returns:
the value of the byte at address.
See Also:
getValue