public class SfaDriver extends XfaDriver
The driver maitains header files for SMSQE files, which are saved with the files.
The driver opens XFAFiles,one for each SMSQE file. Each XfaFile gets a unique number (integer 0 - 0xffff) which gets put into the SMSQE channel definition block (offset 0x1E). For each drive, the driver maintains a HashMap ‹Integer,NfaFile› so that it can find the NfaFile with the integer.
cpu, deviceID, filenameChange, fileNumber, nativeDir, tempHeader, usage
Constructor and Description |
---|
SfaDriver(MC68000Cpu cpu)
Creates the device driver.
|
Modifier and Type | Method and Description |
---|---|
static int |
readHeaderOK(java.io.File f,
MC68000Cpu cpu,
java.nio.ByteBuffer tempHeader)
Tries to get a header for an SFA file and possibly copy it somewhere to memory.
|
closeAllFiles, closeFile, convertFilename, deleteFile, formatMedium, getDeviceID, getName, getNames, getUsage, makeName, openFile, setCpu, setDirname, setFilenameChange, setNames, setUsage, trap3OK, writeBack
public SfaDriver(MC68000Cpu cpu)
cpu
- the cpu used.public static int readHeaderOK(java.io.File f, MC68000Cpu cpu, java.nio.ByteBuffer tempHeader)
f
- the file in question.cpu
- the smsqmulator.cpu.MC68000Cpu used.tempHeader
- a ByteBuffer to read the header to from the file. If this is null
or of insufficent size, one will be created on the fly.int
which can have the following values: