|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfi.hu.cs.titokone.DebugInfo
fi.hu.cs.titokone.LoadInfo
This class provides info about the loading of a program. It has the code area and the data area as a MemoryLine array. The code is in its numeric form as well as a list of symbolic operation codes with comments and symbols in place, if known. LoadInfo also stores the values of FP and SP.
Field Summary | |
private MemoryLine[] |
codeArea
This field contains the contents of the code area after the loading is complete. |
private MemoryLine[] |
dataArea
This field contains the contents of the data area after the loading is complete. |
private int |
initFP
This field contains the value to be stored to the FP register. |
private int |
initSP
This field contains the value to be stored to the SP register. |
private SymbolTable |
symbolTable
This field contains the symbotable |
Fields inherited from class fi.hu.cs.titokone.DebugInfo |
|
Constructor Summary | |
LoadInfo(MemoryLine[] codeArea,
MemoryLine[] dataArea,
SymbolTable symbolTable,
int initSP,
int initFP,
java.lang.String statusMessage)
|
Method Summary | |
int[] |
getBinaryCommands()
|
int[] |
getData()
|
java.lang.String[] |
getDataAreaSymbolic()
|
java.lang.String[] |
getDataSymbolic()
|
int |
getFP()
|
int |
getSP()
|
java.lang.String[] |
getSymbolicCommands()
|
java.lang.String[][] |
getSymbolTable()
|
Methods inherited from class fi.hu.cs.titokone.DebugInfo |
getComments, getStatusMessage, setComments, setStatusMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private MemoryLine[] codeArea
private SymbolTable symbolTable
private MemoryLine[] dataArea
private int initSP
private int initFP
Constructor Detail |
public LoadInfo(MemoryLine[] codeArea, MemoryLine[] dataArea, SymbolTable symbolTable, int initSP, int initFP, java.lang.String statusMessage)
codeArea
- Has the opcodes as MemoryLine array.dataArea
- Has the data part as MemoryLine array.symbolTable
- Contains the symboltable.initSP
- The initial value of SP.initFP
- The initial value of FP.statusMessage
- Message to GUI to be displayed at the status bar.Method Detail |
public java.lang.String[] getSymbolicCommands()
public int[] getBinaryCommands()
public int[] getData()
public java.lang.String[] getDataSymbolic()
public java.lang.String[] getDataAreaSymbolic()
public java.lang.String[][] getSymbolTable()
public int getSP()
public int getFP()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |