|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DumpFormat
Interface for memory dump file formats. All MARS needs to be able to do is save an assembled program or data in the specified manner for a given format. Formats are specified through classes that implement this interface.
Method Summary | |
---|---|
void |
dumpMemoryRange(java.io.File file,
int firstAddress,
int lastAddress)
Write MIPS memory contents according to the specification for this format. |
java.lang.String |
getCommandDescriptor()
A short one-word descriptor that will be used by the MARS command line parser (and the MARS command line user) to specify that this format is to be used. |
java.lang.String |
getDescription()
Get a short description of the format, suitable for displaying along with the extension, if any, in the file save dialog and also for displaying as a tool tip. |
java.lang.String |
getFileExtension()
Get the file extension associated with this format. |
java.lang.String |
toString()
Descriptive name for the format. |
Method Detail |
---|
java.lang.String getFileExtension()
java.lang.String getDescription()
java.lang.String getCommandDescriptor()
java.lang.String toString()
toString
in class java.lang.Object
void dumpMemoryRange(java.io.File file, int firstAddress, int lastAddress) throws AddressErrorException, java.io.IOException
file
- File in which to store MIPS memory contents.firstAddress
- first (lowest) memory address to dump. In bytes but
must be on word boundary.lastAddress
- last (highest) memory address to dump. In bytes but
must be on word boundary. Will dump the word that starts at this address.
AddressErrorException
- if firstAddress is invalid or not on a word boundary.
java.io.IOException
- if error occurs during file output.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |