|
||||||||||
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 referenceMethod Detail |
---|
public void resetMemory()
resetMemory
in interface IMemory
public 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 IMemory
PATH
- - PATH to the objectFile
java.lang.Exception
public Disassembler getDisassembler()
getDisassembler
in interface IMemory
public java.util.Set<java.lang.Integer> getAllUsedAddresses()
getAllUsedAddresses
in interface IMemory
public java.lang.String toString()
toString
in interface IMemory
toString
in class java.lang.Object
public Labels getLabels()
getLabels
in interface IMemory
public java.lang.String getLabelAt(int address)
getLabelAt
in interface IMemory
public int getAddressOfLabel(java.lang.String label)
getAddressOfLabel
in interface IMemory
public void setWatchPoint(int adr)
setWatchPoint
in interface IMemory
public void delWatchPoint(int adr)
delWatchPoint
in interface IMemory
public boolean isWatchPoint(int adr)
isWatchPoint
in interface IMemory
public java.util.HashSet<java.lang.Integer> getAllWatchPoints()
getAllWatchPoints
in interface IMemory
public IPluginManager getPluginManager()
getPluginManager
in interface IMemory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |