|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jfrace.device.CPMEmulator
Device which emulates the BIOS for CP/M V2.2.
Field Summary | |
static int |
CONIN
|
static int |
CONOUT
|
static int |
CONST
|
static byte |
DISK_ERROR
BIOS return value for a disk error. |
static java.lang.String |
DRIVE_A
|
static java.lang.String |
DRIVE_B
|
static byte |
ERROR
BIOS return value for an error. |
static int |
HOME
|
static int |
LIST
|
static int |
LISTST
|
static byte |
OK
BIOS return value in the case of no error. |
static int |
PUNCH
|
static int |
READ
|
static int |
READER
|
static java.lang.String |
RESET_BUTTON
|
static int |
SECTRAN
|
static int |
SELDSK
|
static int |
SETDMA
|
static int |
SETSEC
|
static int |
SETTRK
|
static int |
WBOOT
BIOS functions |
static int |
WRITE
|
Constructor Summary | |
CPMEmulator(AddressSpace as,
java.lang.String theDiskPath,
int jbiosSystemAdrPointer,
int biosOffset,
byte[] bios,
int port,
Terminal terminal)
Create a new instance. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
coldBoot()
Cold boot. |
byte |
getByte(int address)
Process BIOS function and return register A. |
int |
getNumberOfBits()
Returns 8. |
int |
getNumberOfUnits()
Returns 1. |
int |
getValue(int address)
Returns 0. |
void |
itemStateChanged(java.awt.event.ItemEvent event)
|
byte |
processBIOSFunction(int function,
int arg1,
int arg2)
Process a BIOS call. |
void |
reset()
Reset. |
void |
setAddButton(java.awt.Button button)
Set 'add' button. |
void |
setByte(int address,
byte value)
Set the BIOS function code. |
void |
setDisk(int driveIndex,
CPMDisk disk)
Set a disk. |
void |
setValue(int address,
int value)
Does nothing. |
byte |
warmBoot()
Load CCP and BDOS from the first disk found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte OK
public static final byte ERROR
public static final byte DISK_ERROR
public static final int WBOOT
public static final int CONST
public static final int CONIN
public static final int CONOUT
public static final int LIST
public static final int PUNCH
public static final int READER
public static final int HOME
public static final int SELDSK
public static final int SETTRK
public static final int SETSEC
public static final int SETDMA
public static final int READ
public static final int WRITE
public static final int LISTST
public static final int SECTRAN
public static final java.lang.String DRIVE_A
public static final java.lang.String DRIVE_B
public static final java.lang.String RESET_BUTTON
Constructor Detail |
public CPMEmulator(AddressSpace as, java.lang.String theDiskPath, int jbiosSystemAdrPointer, int biosOffset, byte[] bios, int port, Terminal terminal)
as
- AddressSpace.theDiskPath
- Directory of the CP/M disks.jbiosSystemAdrPointer
- Address in AddressSpace
where JBIOS system address is stored.biosOffset
- First address of the (J)BIOS.bios
- JBIOS binary data.port
- Processor port of the CP/M emulator.terminal
- Terminal.Method Detail |
public void setDisk(int driveIndex, CPMDisk disk)
public void setAddButton(java.awt.Button button)
public byte processBIOSFunction(int function, int arg1, int arg2)
function
- Number of BIOS function.arg1
- First argument (i.e., BC register).arg2
- Second argument (i.e., DE register).biosResult
(for HL).public void coldBoot()
public byte warmBoot()
COPYRIGHT
starting at the 24th byte of
an 128 sector.OK
if loading was successful.public void reset()
reset
in interface Hardware
public int getNumberOfBits()
getNumberOfBits
in interface Hardware
public int getNumberOfUnits()
getNumberOfUnits
in interface Device
public int getValue(int address)
getValue
in interface Device
jfrace.Device
address
- Memory address.public void setValue(int address, int value)
setValue
in interface Device
jfrace.Device
address
- Memory address.value
- the new value.public byte getByte(int address)
getByte
in interface Device
jfrace.Device
address
- Memory address.address
.public void setByte(int address, byte value)
setByte
in interface Device
address
- Will be ignored.value
- BIOS function code.public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |