|
|||||||||
| 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(File file,
int firstAddress,
int lastAddress)
Write MIPS memory contents according to the specification for this format. |
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. |
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. |
String |
getFileExtension()
Get the file extension associated with this format. |
String |
toString()
Descriptive name for the format. |
| Method Detail |
|---|
String getFileExtension()
String getDescription()
String getCommandDescriptor()
String toString()
toString in class Object
void dumpMemoryRange(File file,
int firstAddress,
int lastAddress)
throws AddressErrorException,
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.
IOException - if error occurs during file output.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||