dioscuri.module.motherboard
Class DeviceDummy
java.lang.Object
dioscuri.module.AbstractModule
dioscuri.module.motherboard.DeviceDummy
- All Implemented Interfaces:
- Addressable, Module
public class DeviceDummy
- extends AbstractModule
- implements Addressable
This class is a dummy for a peripheral device.
Contains all standard methods for a device.
Note: init this module only after all other devices, because this class
claims all available I/O address space that is left
- See Also:
AbstractModule
| Nested classes/interfaces inherited from interface dioscuri.interfaces.Module |
Module.Type |
| Methods inherited from class dioscuri.module.AbstractModule |
getConnection, getConnections, getDebugMode, getDump, getExpectedConnections, getType, isConnected, setConnection, setDebugMode, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface dioscuri.interfaces.Module |
getConnection, getConnections, getDebugMode, getDump, getExpectedConnections, getType, isConnected, setConnection, setDebugMode, start, stop |
DeviceDummy
public DeviceDummy(Emulator owner)
- Class constructor
- Parameters:
owner -
reset
public boolean reset()
- Reset all parameters of module.
- Specified by:
reset in interface Module- Specified by:
reset in class AbstractModule
- Returns:
- true iff the AbstractModule was reset properly.
- See Also:
AbstractModule
getIOPortByte
public byte getIOPortByte(int portAddress)
throws ModuleException
-
- Specified by:
getIOPortByte in interface Addressable
- Returns:
-
- Throws:
ModuleException- See Also:
Addressable
setIOPortByte
public void setIOPortByte(int portAddress,
byte data)
throws ModuleException
-
- Specified by:
setIOPortByte in interface Addressable
- Throws:
ModuleException- See Also:
Addressable
getIOPortWord
public byte[] getIOPortWord(int portAddress)
throws ModuleException,
WriteOnlyPortException
-
- Specified by:
getIOPortWord in interface Addressable
- Returns:
-
- Throws:
ModuleException
WriteOnlyPortException- See Also:
Addressable
setIOPortWord
public void setIOPortWord(int portAddress,
byte[] dataWord)
throws ModuleException
-
- Specified by:
setIOPortWord in interface Addressable
- Throws:
ModuleException- See Also:
Addressable
getIOPortDoubleWord
public byte[] getIOPortDoubleWord(int portAddress)
throws ModuleException,
WriteOnlyPortException
-
- Specified by:
getIOPortDoubleWord in interface Addressable
- Returns:
-
- Throws:
ModuleException
WriteOnlyPortException- See Also:
Addressable
setIOPortDoubleWord
public void setIOPortDoubleWord(int portAddress,
byte[] dataDoubleWord)
throws ModuleException
-
- Specified by:
setIOPortDoubleWord in interface Addressable
- Throws:
ModuleException- See Also:
Addressable