|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dioscuri.Emulator
public class Emulator
Top class owning all classes of the emulator. Entry point
Field Summary | |
---|---|
protected static int |
CMD_DEBUG
|
protected static int |
CMD_DEBUG_DUMP
|
protected static int |
CMD_DEBUG_ENTER
|
protected static int |
CMD_DEBUG_HELP
|
protected static int |
CMD_DEBUG_MEM_DUMP
|
protected static int |
CMD_DEBUG_SHOWREG
|
protected static int |
CMD_DEBUG_STEP
|
protected static int |
CMD_DEBUG_STOP
|
protected static int |
CMD_LOAD_DATA
|
protected static int |
CMD_LOAD_MODULES
|
protected static int |
CMD_LOGGING
|
protected static int |
CMD_LOGTOFILE
|
protected static int |
CMD_MISMATCH
|
protected static int |
CMD_OBSERVE
|
protected static int |
CMD_RESET
|
protected static int |
CMD_START
|
protected static int |
CMD_STOP
|
protected dioscuri.config.Emulator |
emuConfig
|
static int |
MODULE_ATA_HD1_TRANSFER_START
|
static int |
MODULE_ATA_HD1_TRANSFER_STOP
|
static int |
MODULE_ATA_HD2_TRANSFER_START
|
static int |
MODULE_ATA_HD2_TRANSFER_STOP
|
static int |
MODULE_FDC_TRANSFER_START
|
static int |
MODULE_FDC_TRANSFER_STOP
|
static int |
MODULE_KEYBOARD_CAPSLOCK_OFF
|
static int |
MODULE_KEYBOARD_CAPSLOCK_ON
|
static int |
MODULE_KEYBOARD_NUMLOCK_OFF
|
static int |
MODULE_KEYBOARD_NUMLOCK_ON
|
static int |
MODULE_KEYBOARD_SCROLLLOCK_OFF
|
static int |
MODULE_KEYBOARD_SCROLLLOCK_ON
|
protected dioscuri.config.Emulator.Architecture.Modules |
moduleConfig
|
Constructor Summary | |
---|---|
Emulator(GUI owner)
Class constructor |
Method Summary | |
---|---|
boolean |
connectModules()
Connect the modules together. |
boolean |
createModules()
|
protected void |
debug(int command)
|
protected boolean |
ejectFloppy(java.lang.String driveLetter)
|
boolean |
getColdStart()
Get cold start. |
GUI |
getGui()
Get the gui. |
java.util.ArrayList<HardwareComponent> |
getHWcomponents()
Get the hardware components. |
IO |
getIo()
Get the io. |
protected Module |
getModule(Module.Type type)
Return reference to module from given type |
Modules |
getModules()
Get the modules. |
java.awt.image.BufferedImage |
getScreenImage()
|
java.lang.String |
getScreenText()
|
boolean |
initScreenOutputDevice()
Init Screen Output Device. |
protected boolean |
insertFloppy(java.lang.String driveLetter,
byte carrierType,
java.io.File imageFile,
boolean writeProtected)
|
boolean |
isCpu32bit()
|
boolean |
loadBIOS()
Load the BIOS into memory |
protected void |
notifyKeyboard(java.awt.event.KeyEvent keyEvent,
int keyEventType)
|
protected void |
notifyMouse(java.awt.event.MouseEvent mouseEvent)
|
protected void |
reset()
|
boolean |
resetModules()
Reset all modules. |
void |
run()
|
protected void |
setActive(boolean state)
|
boolean |
setBootParams()
Read from config and set the boot params. |
void |
setColdStart(boolean coldStart)
Set cold start. |
boolean |
setDebugMode()
Set the debug mode. |
boolean |
setFloppyParams()
Get and set floppy parameters |
boolean |
setHardDriveParams()
Read and set the hard drive parameters |
boolean |
setMemoryParams()
Read from config and set memory parameters |
void |
setModules(Modules modules)
Set the modules. |
boolean |
setMouseParams()
Read from config and set mouse parameters |
boolean |
setTimingParams(Module module)
Set the timing parameters |
boolean |
setupEmu()
|
void |
statusChanged(int status)
|
protected void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected dioscuri.config.Emulator emuConfig
protected dioscuri.config.Emulator.Architecture.Modules moduleConfig
protected static final int CMD_START
protected static final int CMD_STOP
protected static final int CMD_RESET
protected static final int CMD_DEBUG
protected static final int CMD_LOGGING
protected static final int CMD_OBSERVE
protected static final int CMD_LOAD_MODULES
protected static final int CMD_LOAD_DATA
protected static final int CMD_LOGTOFILE
protected static final int CMD_DEBUG_HELP
protected static final int CMD_DEBUG_STEP
protected static final int CMD_DEBUG_DUMP
protected static final int CMD_DEBUG_ENTER
protected static final int CMD_DEBUG_STOP
protected static final int CMD_DEBUG_SHOWREG
protected static final int CMD_DEBUG_MEM_DUMP
protected static final int CMD_MISMATCH
public static final int MODULE_FDC_TRANSFER_START
public static final int MODULE_FDC_TRANSFER_STOP
public static final int MODULE_ATA_HD1_TRANSFER_START
public static final int MODULE_ATA_HD1_TRANSFER_STOP
public static final int MODULE_KEYBOARD_NUMLOCK_ON
public static final int MODULE_KEYBOARD_NUMLOCK_OFF
public static final int MODULE_KEYBOARD_CAPSLOCK_ON
public static final int MODULE_KEYBOARD_CAPSLOCK_OFF
public static final int MODULE_KEYBOARD_SCROLLLOCK_ON
public static final int MODULE_KEYBOARD_SCROLLLOCK_OFF
public static final int MODULE_ATA_HD2_TRANSFER_START
public static final int MODULE_ATA_HD2_TRANSFER_STOP
Constructor Detail |
---|
public Emulator(GUI owner)
owner
- graphical user interface (owner of emulation process)Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
protected void stop()
protected void reset()
protected void debug(int command)
command
- protected void setActive(boolean state)
state
- public Modules getModules()
public java.util.ArrayList<HardwareComponent> getHWcomponents()
public void setModules(Modules modules)
modules
- public GUI getGui()
public IO getIo()
public boolean getColdStart()
public void setColdStart(boolean coldStart)
coldStart
- protected Module getModule(Module.Type type)
type
- stating the type of the requested module
protected void notifyKeyboard(java.awt.event.KeyEvent keyEvent, int keyEventType)
keyEvent
- keyEventType
- protected void notifyMouse(java.awt.event.MouseEvent mouseEvent)
mouseEvent
- protected boolean insertFloppy(java.lang.String driveLetter, byte carrierType, java.io.File imageFile, boolean writeProtected)
driveLetter
- carrierType
- imageFile
- writeProtected
-
protected boolean ejectFloppy(java.lang.String driveLetter)
driveLetter
-
public void statusChanged(int status)
status
- public java.lang.String getScreenText()
public java.awt.image.BufferedImage getScreenImage()
public boolean isCpu32bit()
public boolean setupEmu()
public boolean createModules()
public boolean connectModules()
public boolean setTimingParams(Module module)
module
-
public boolean resetModules()
public boolean initScreenOutputDevice()
public boolean setMouseParams()
public boolean setMemoryParams()
public boolean loadBIOS()
public boolean setFloppyParams()
public boolean setHardDriveParams()
public boolean setBootParams()
public boolean setDebugMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |