|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.kbna.dioscuri.module.Module
nl.kbna.dioscuri.module.ModuleBIOS
nl.kbna.dioscuri.module.bios.BIOS
public class BIOS
An implementation of a hardware BIOS module. Contains: - 64 KB of ROM - CMOS settings
Metadata module
********************************************
general.type : bios
general.name : BIOS ROM
general.architecture : Von Neumann
general.description : General implementation of BIOS ROM chip.
general.creator : Tessella Support Services, Koninklijke Bibliotheek, Nationaal Archief of the Netherlands
general.version : 1.0
general.keywords : bios, ROM, 64KB, 32KB, bootstrap, system bios, video bios, optional rom
general.relations : cpu, memory
general.yearOfIntroduction :
general.yearOfEnding :
general.ancestor :
general.successor :
bios.romsize : 64 + 32 KB
bios.settings : CMOS
Notes: none| Field Summary | |
|---|---|
private boolean |
debugMode
|
private Emulator |
emu
|
private boolean |
isObserved
|
private static java.util.logging.Logger |
logger
|
static int |
MODULE_ID
|
static java.lang.String |
MODULE_NAME
|
static java.lang.String |
MODULE_TYPE
|
private java.lang.String[] |
moduleConnections
|
private byte[] |
optionalROM
|
private static int |
SYSTEMBIOS_ROM_SIZE
|
private byte[] |
systemROM
|
private static int |
VIDEOBIOS_ROM_SIZE
|
private byte[] |
videoROM
|
| Constructor Summary | |
|---|---|
BIOS(Emulator owner)
Class constructor |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getConnection()
Returns a String[] with all names of modules it needs to be connected to |
byte[] |
getData(Module requester)
Returns data from this module |
boolean |
getDebugMode()
Returns the status of the debug mode toggle |
java.lang.String |
getDump()
Returns a dump of this module |
int |
getID()
Returns the ID of the module |
java.lang.String |
getName()
Returns the name of the module |
byte[] |
getSystemBIOS()
Returns the system BIOS code from ROM with size of SYSTEM_BIOS_ROM_SIZE |
java.lang.String |
getType()
Returns the type of the module |
byte[] |
getVideoBIOS()
Returns the Video BIOS code from ROM |
boolean |
isConnected()
Checks if this module is connected to operate normally |
boolean |
isObserved()
Returns the status of observed toggle |
boolean |
reset()
Reset all parameters of module. |
boolean |
setConnection(Module module)
Sets up a connection with another module |
boolean |
setData(byte[] data,
Module sender)
Set data for this module |
boolean |
setData(java.lang.String[] data,
Module sender)
Sets given String[] data for this module |
void |
setDebugMode(boolean status)
Sets the debug mode toggle |
void |
setObserved(boolean status)
Sets the observed toggle |
boolean |
setSystemBIOS(byte[] biosCode)
Sets the system BIOS code in ROM Note: System BIOS must be exactly 64 KB |
boolean |
setVideoBIOS(byte[] biosCode)
Sets the Video BIOS code in ROM |
void |
start()
Starts the module |
void |
stop()
Stops the module |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Emulator emu
private java.lang.String[] moduleConnections
private boolean isObserved
private boolean debugMode
private byte[] systemROM
private byte[] videoROM
private byte[] optionalROM
private static java.util.logging.Logger logger
public static final int MODULE_ID
public static final java.lang.String MODULE_TYPE
public static final java.lang.String MODULE_NAME
private static final int SYSTEMBIOS_ROM_SIZE
private static final int VIDEOBIOS_ROM_SIZE
| Constructor Detail |
|---|
public BIOS(Emulator owner)
| Method Detail |
|---|
public int getID()
getID in class ModuleModulepublic java.lang.String getType()
getType in class ModuleModulepublic java.lang.String getName()
getName in class ModuleModulepublic java.lang.String[] getConnection()
getConnection in class Modulepublic boolean setConnection(Module module)
setConnection in class Modulemod - Module that is to be connected to this class
Modulepublic boolean isConnected()
isConnected in class Modulepublic boolean reset()
reset in class Modulepublic void start()
start in class ModuleModulepublic void stop()
stop in class ModuleModulepublic boolean isObserved()
isObserved in class ModuleModulepublic void setObserved(boolean status)
setObserved in class Modulestatus - Modulepublic boolean getDebugMode()
getDebugMode in class ModuleModulepublic void setDebugMode(boolean status)
setDebugMode in class Modulestatus - Modulepublic byte[] getData(Module requester)
getData in class ModuleModule - requester, the requester of the data
Module
public boolean setData(byte[] data,
Module sender)
setData in class Modulebyte[] - containing dataModule - sender, the sender of the data
Module
public boolean setData(java.lang.String[] data,
Module sender)
setData in class ModuleString[] - dataModule - sender, the sender of the data
Modulepublic java.lang.String getDump()
getDump in class ModuleModulepublic byte[] getSystemBIOS()
getSystemBIOS in class ModuleBIOS
public boolean setSystemBIOS(byte[] biosCode)
throws ModuleException
setSystemBIOS in class ModuleBIOSbyte[] - biosCode containing the binary code of BIOS
ModuleExceptionpublic byte[] getVideoBIOS()
getVideoBIOS in class ModuleBIOS
public boolean setVideoBIOS(byte[] biosCode)
throws ModuleException
setVideoBIOS in class ModuleBIOSbyte[] - biosCode containing the binary code of Video BIOS
ModuleException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||