dioscuri.module.cpu32
Class IOPortHandler
java.lang.Object
dioscuri.module.cpu32.IOPortHandler
- All Implemented Interfaces:
- HardwareComponent, Hibernatable, IOPortCapable
public class IOPortHandler
- extends java.lang.Object
- implements IOPortCapable, HardwareComponent
Class for storing the I/O port map, and handling the required redirection.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IOPortHandler
public IOPortHandler()
setConnection
public boolean setConnection(AbstractModule mod)
- Parameters:
mod -
- Returns:
- -
dumpState
public void dumpState(java.io.DataOutput output)
throws java.io.IOException
- Specified by:
dumpState in interface HardwareComponent
- Parameters:
output -
- Throws:
java.io.IOException
loadState
public void loadState(java.io.DataInput input)
throws java.io.IOException
- Specified by:
loadState in interface HardwareComponent
- Parameters:
input -
- Throws:
java.io.IOException
ioPortReadByte
public int ioPortReadByte(int address)
throws ModuleException
- Specified by:
ioPortReadByte in interface IOPortCapable
- Parameters:
address -
- Returns:
- -
- Throws:
ModuleException
ioPortReadWord
public int ioPortReadWord(int address)
throws ModuleException
- Specified by:
ioPortReadWord in interface IOPortCapable
- Parameters:
address -
- Returns:
- -
- Throws:
ModuleException
ioPortReadLong
public int ioPortReadLong(int address)
throws ModuleException
- Specified by:
ioPortReadLong in interface IOPortCapable
- Parameters:
address -
- Returns:
- -
- Throws:
ModuleException
ioPortWriteByte
public void ioPortWriteByte(int address,
int data)
throws ModuleException
- Specified by:
ioPortWriteByte in interface IOPortCapable
- Parameters:
address - data -
- Throws:
ModuleException
ioPortWriteWord
public void ioPortWriteWord(int address,
int data)
throws ModuleException
- Specified by:
ioPortWriteWord in interface IOPortCapable
- Parameters:
address - data -
- Throws:
ModuleException
ioPortWriteLong
public void ioPortWriteLong(int address,
int data)
throws ModuleException
- Specified by:
ioPortWriteLong in interface IOPortCapable
- Parameters:
address - data -
- Throws:
ModuleException
ioPortsRequested
public int[] ioPortsRequested()
- Specified by:
ioPortsRequested in interface IOPortCapable
- Returns:
- -
registerIOPortCapable
public void registerIOPortCapable(IOPortCapable device)
- Parameters:
device -
deregisterIOPortCapable
public void deregisterIOPortCapable(IOPortCapable device)
- Parameters:
device -
map
public java.lang.String map()
- Returns:
- -
reset
public boolean reset()
- Specified by:
reset in interface HardwareComponent
- Returns:
- -
initialised
public boolean initialised()
- Specified by:
initialised in interface HardwareComponent
- Returns:
- -
acceptComponent
public void acceptComponent(HardwareComponent component)
- Specified by:
acceptComponent in interface HardwareComponent
- Parameters:
component -
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
updateComponent
public void updateComponent(HardwareComponent component)
- Specified by:
updateComponent in interface HardwareComponent
- Parameters:
component -
updated
public boolean updated()
- Specified by:
updated in interface HardwareComponent
- Returns:
- -
timerCallback
public void timerCallback()
- Specified by:
timerCallback in interface HardwareComponent