dioscuri.module
Class ModuleBIOS
java.lang.Object
dioscuri.module.AbstractModule
dioscuri.module.ModuleBIOS
- All Implemented Interfaces:
- Module
- Direct Known Subclasses:
- BIOS
public abstract class ModuleBIOS
- extends AbstractModule
Abstract class class defining a template for a BIOS module, which
may contain a system BIOS, VIDEO BIOS and optional BIOSes.
Nested classes/interfaces inherited from interface dioscuri.interfaces.Module |
Module.Type |
Method Summary |
abstract byte[] |
getSystemBIOS()
Returns the system BIOS code from ROM |
abstract byte[] |
getVideoBIOS()
Returns the Video BIOS code from ROM |
abstract boolean |
setSystemBIOS(byte[] biosCode)
Sets the system BIOS code in ROM |
abstract boolean |
setVideoBIOS(byte[] biosCode)
Sets the Video BIOS code in ROM |
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 |
ModuleBIOS
public ModuleBIOS()
getSystemBIOS
public abstract byte[] getSystemBIOS()
- Returns the system BIOS code from ROM
- Returns:
- byte[] biosCode containing the binary code of System BIOS
setSystemBIOS
public abstract boolean setSystemBIOS(byte[] biosCode)
throws ModuleException
- Sets the system BIOS code in ROM
- Parameters:
biosCode
-
- Returns:
- true if BIOS code is of specified SYSTEMBIOS_ROM_SIZE and store
is successful, false otherwise
- Throws:
ModuleException
getVideoBIOS
public abstract byte[] getVideoBIOS()
- Returns the Video BIOS code from ROM
- Returns:
- byte[] biosCode containing the binary code of Video BIOS
setVideoBIOS
public abstract boolean setVideoBIOS(byte[] biosCode)
throws ModuleException
- Sets the Video BIOS code in ROM
- Parameters:
biosCode
-
- Returns:
- true if BIOS code is of specified VIDEOBIOS_ROM_SIZE and store is
successful, false otherwise
- Throws:
ModuleException