|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.models.mips.memory.MemoryLoader
The MemoryLoader is able to fill instances with the Memory- interface with the content of *.o, *.hex and *.rom files. The content can be saved in *.rom-Format.
Field Summary | |
protected boolean |
debug
|
protected MemoryDispatcher |
dispatch
|
protected Memory |
mem
|
static int |
PHDRMAX
|
static int |
SHDRMAX
|
Constructor Summary | |
MemoryLoader(Memory newMem)
|
Method Summary | |
boolean |
getLog()
|
int |
load(java.lang.String name,
java.lang.String dir)
General interface for different formats, returns entry point if defined in object file or 0 |
boolean |
loadBin(java.io.InputStream bs,
int offset)
Load files with raw data directly into memory. |
int |
loadElf(java.io.InputStream bs)
Load ELF-files (no shared libraries). |
boolean |
loadHex(java.io.InputStream bs)
Load files containing data in *.hex format. |
boolean |
loadRom(java.lang.String name,
java.lang.String dir)
Load files containig data in *.rom format. |
void |
save(java.lang.String name,
java.lang.String dir)
Save memory into a file with *.rom-Format |
void |
setLog(boolean newDebug)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Memory mem
protected MemoryDispatcher dispatch
public static final int PHDRMAX
public static final int SHDRMAX
protected boolean debug
Constructor Detail |
public MemoryLoader(Memory newMem)
Method Detail |
public void save(java.lang.String name, java.lang.String dir)
public int load(java.lang.String name, java.lang.String dir)
public int loadElf(java.io.InputStream bs)
public boolean loadHex(java.io.InputStream bs)
public boolean loadBin(java.io.InputStream bs, int offset)
public boolean loadRom(java.lang.String name, java.lang.String dir)
public void setLog(boolean newDebug)
public boolean getLog()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |