|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdioscuri.module.AbstractModule
dioscuri.module.ModuleMotherboard
public abstract class ModuleMotherboard
Abstract class representing a generic motherboard module.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface dioscuri.interfaces.Module |
|---|
Module.Type |
| Field Summary | |
|---|---|
int |
ioSpaceSize
|
| Fields inherited from class dioscuri.module.AbstractModule |
|---|
type |
| Constructor Summary | |
|---|---|
ModuleMotherboard()
|
|
| Method Summary | |
|---|---|
abstract boolean |
getA20()
Get value of A20 address line |
abstract long |
getCurrentInstructionNumber()
Retrieve current number of instruction (instructions executed so far) |
abstract byte |
getIOPortByte(int portAddress)
|
abstract byte[] |
getIOPortDoubleWord(int portAddress)
|
abstract byte[] |
getIOPortWord(int portAddress)
|
abstract boolean |
registerClock(ModuleClock clock)
Registers a clock to motherboard |
abstract boolean |
requestTimer(Updateable device,
int updatePeriod,
boolean continuous)
Requests a timer for given device at clock |
abstract boolean |
resetTimer(Updateable device,
int updateInterval)
Resets the timer of device (if any) |
abstract void |
setA20(boolean a20)
Set value of A20 address line |
abstract boolean |
setIOPort(int portAddress,
Addressable device)
Set I/O address port to given device |
abstract void |
setIOPortByte(int portAddress,
byte dataByte)
|
abstract void |
setIOPortDoubleWord(int portAddress,
byte[] dataDoubleWord)
|
abstract void |
setIOPortWord(int portAddress,
byte[] dataWord)
|
abstract boolean |
setTimerActiveState(Updateable device,
boolean runState)
Set a timer to start/stop running |
| Methods inherited from class dioscuri.module.AbstractModule |
|---|
getConnection, getConnections, getDebugMode, getDump, getExpectedConnections, getType, isConnected, reset, 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, reset, setConnection, setDebugMode, start, stop |
| Field Detail |
|---|
public int ioSpaceSize
| Constructor Detail |
|---|
public ModuleMotherboard()
| Method Detail |
|---|
public abstract boolean registerClock(ModuleClock clock)
clock -
public abstract boolean requestTimer(Updateable device,
int updatePeriod,
boolean continuous)
device - continuous - updatePeriod -
public abstract boolean setTimerActiveState(Updateable device,
boolean runState)
device - runState -
public abstract boolean resetTimer(Updateable device,
int updateInterval)
device - updateInterval -
public abstract boolean setIOPort(int portAddress,
Addressable device)
portAddress - device -
public abstract byte getIOPortByte(int portAddress)
throws ModuleException
getIOPortByte in interface AddressableModuleExceptionAddressable
public abstract void setIOPortByte(int portAddress,
byte dataByte)
throws ModuleException
setIOPortByte in interface AddressableModuleExceptionAddressable
public abstract byte[] getIOPortWord(int portAddress)
throws ModuleException
getIOPortWord in interface AddressableModuleExceptionAddressable
public abstract void setIOPortWord(int portAddress,
byte[] dataWord)
throws ModuleException
setIOPortWord in interface AddressableModuleExceptionAddressable
public abstract byte[] getIOPortDoubleWord(int portAddress)
throws ModuleException
getIOPortDoubleWord in interface AddressableModuleExceptionAddressable
public abstract void setIOPortDoubleWord(int portAddress,
byte[] dataDoubleWord)
throws ModuleException
setIOPortDoubleWord in interface AddressableModuleExceptionAddressablepublic abstract boolean getA20()
public abstract void setA20(boolean a20)
a20 - true to set, false to clearpublic abstract long getCurrentInstructionNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||