jmce.sim.disk
Class BootLoader
java.lang.Object
jmce.sim.AbstractHardware
jmce.sim.AbstractPeripheral
jmce.sim.disk.BootLoader
- All Implemented Interfaces:
- Hardware, Peripheral, ResetListener
public class BootLoader
- extends AbstractPeripheral
- implements ResetListener
Automatic disk boot loader.
This Peripheral
at CPU reset search for a
DiskController
and if it is present load the first
sector of the first drive in the main memory at the address pecified
with setAddres.
- Version:
- 1.01
- Author:
- Mario Viara
Method Summary |
int |
getAddress()
Return the address when the boot will be loaded |
void |
registerCPU(CPU cpu)
Register a parent CPU for future reference. |
void |
reset(CPU cpu)
Load code thru reset listener to be sure that all peripheral
are ready and initialized. |
void |
setAddress(int a)
Set the address where the boot will be loaded |
java.lang.String |
toString()
|
Methods inherited from class jmce.sim.AbstractHardware |
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jmce.sim.Hardware |
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName |
BootLoader
public BootLoader()
setAddress
public void setAddress(int a)
- Set the address where the boot will be loaded
getAddress
public int getAddress()
- Return the address when the boot will be loaded
registerCPU
public void registerCPU(CPU cpu)
throws SIMException
- Description copied from interface:
Peripheral
- Register a parent CPU for future reference.
- Specified by:
registerCPU
in interface Peripheral
- Overrides:
registerCPU
in class AbstractPeripheral
- Throws:
SIMException
reset
public void reset(CPU cpu)
throws SIMException
- Load code thru reset listener to be sure that all peripheral
are ready and initialized.
- Specified by:
reset
in interface ResetListener
- Throws:
SIMException
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractHardware