|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthicosim.components.backend.processor.Memory
public class Memory
Class which represents the memory.
| Constructor Summary | |
|---|---|
Memory(Engine engine)
Constructor - set up TreeMap |
|
| Method Summary | |
|---|---|
void |
delWatchPoint(int adr)
|
int |
getAddressOfLabel(java.lang.String label)
This method is used to get the address of a label. |
java.util.Set<java.lang.Integer> |
getAllUsedAddresses()
This method returns all addresses of the memory. |
java.util.HashSet<java.lang.Integer> |
getAllWatchPoints()
|
java.lang.String |
getDisassembledInstructionAt(int address)
|
Disassembler |
getDisassembler()
This method returns the disassembler reference. |
java.lang.String |
getLabelAt(int address)
This method is used to get the label at the given address. |
Labels |
getLabels()
This method returns the labels. |
IPluginManager |
getPluginManager()
|
boolean |
isWatchPoint(int adr)
|
java.lang.String |
loadObjectfile(java.lang.String PATH)
This method reads in the objectfile and sets up all the relevant information, like memory, processor, progCounter, Labels |
int |
readValueAt(int address)
This method is used to read the value at the given address in decimal. |
void |
resetMemory()
|
void |
setWatchPoint(int adr)
|
java.lang.String |
toString()
String representation of the memory. |
void |
writeTo(int address,
int value)
This method is used to write the value at the given address. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Memory(Engine engine)
- - Engine reference| Method Detail |
|---|
public void resetMemory()
resetMemory in interface IMemorypublic int readValueAt(int address)
readValueAt in interface IMemory
public java.lang.String getDisassembledInstructionAt(int address)
throws java.lang.Exception
java.lang.Exception
public void writeTo(int address,
int value)
writeTo in interface IMemory
public java.lang.String loadObjectfile(java.lang.String PATH)
throws java.lang.Exception
loadObjectfile in interface IMemoryPATH - - PATH to the objectFile
java.lang.Exceptionpublic Disassembler getDisassembler()
getDisassembler in interface IMemorypublic java.util.Set<java.lang.Integer> getAllUsedAddresses()
getAllUsedAddresses in interface IMemorypublic java.lang.String toString()
toString in interface IMemorytoString in class java.lang.Objectpublic Labels getLabels()
getLabels in interface IMemorypublic java.lang.String getLabelAt(int address)
getLabelAt in interface IMemorypublic int getAddressOfLabel(java.lang.String label)
getAddressOfLabel in interface IMemorypublic void setWatchPoint(int adr)
setWatchPoint in interface IMemorypublic void delWatchPoint(int adr)
delWatchPoint in interface IMemorypublic boolean isWatchPoint(int adr)
isWatchPoint in interface IMemorypublic java.util.HashSet<java.lang.Integer> getAllWatchPoints()
getAllWatchPoints in interface IMemorypublic IPluginManager getPluginManager()
getPluginManager in interface IMemory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||