Package mars.mips.dump
Class IntelHexDumpFormat
java.lang.Object
mars.mips.dump.AbstractDumpFormat
mars.mips.dump.IntelHexDumpFormat
- All Implemented Interfaces:
DumpFormat
Intel's Hex memory initialization format
- Version:
- July 2011
- Author:
- Leo Alterman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddumpMemoryRange(File file, int firstAddress, int lastAddress) Write MIPS memory contents according to the Memory Initialization File (MIF) specification.Methods inherited from class mars.mips.dump.AbstractDumpFormat
getCommandDescriptor, getDescription, getFileExtension, toString
-
Constructor Details
-
IntelHexDumpFormat
public IntelHexDumpFormat()Constructor. File extention is "hex".
-
-
Method Details
-
dumpMemoryRange
public void dumpMemoryRange(File file, int firstAddress, int lastAddress) throws AddressErrorException, IOException Write MIPS memory contents according to the Memory Initialization File (MIF) specification.- Specified by:
dumpMemoryRangein interfaceDumpFormat- Specified by:
dumpMemoryRangein classAbstractDumpFormat- Parameters:
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.- Throws:
AddressErrorException- if firstAddress is invalid or not on a word boundary.IOException- if error occurs during file output.
-