|
||||||||||
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.RunInfo
This class tells GUIBrain what the processor has done. RunDebugger creates objects from this class and passes them to onwards.
Field Summary | |
private int |
addr
This field represents the address |
private int |
aluResult
This field contains the value of ALU-operation |
private int |
binary
This field contains the command in binary format. |
(package private) java.util.LinkedList |
changedMemoryLines
This list contains all changed memory lines. |
private java.lang.String |
colonString
This String contains the colon-representation of current line |
private int |
compareStatus
This field contains the compare status of status register. |
private java.lang.String |
deviceName
This String value contains the name of the device |
private int |
deviceNumber
This value contains the value of the device |
private boolean |
externalOperation
This boolean value tells is the operation in or out -operation |
private boolean |
isIN
This boolean value is set true if operation is in operation, otherwise false |
private java.lang.String |
lineContents
This field contains contents of the line, |
private int |
lineNumber
This field contains line number. |
private int |
newPC
This field contains value of new PC. |
private int |
numberOfMemoryfetches
This int represents the number of memoryfetches |
private int |
operationType
This field contains the number of operation type. |
private int[] |
registers
This array contains the current values of registers 0-7 |
private int |
Ri
This field contains index register. |
private int |
Rj
This field contains first operand of the command. |
private int |
secondFetchValue
This field contains the value of second memory fetch |
private java.lang.String |
svcOperation
This value contains the String representation of SVC-operation |
private int |
valueAtADDR
This field contains the value of address field |
private int |
valueOfDevice
This value contains the value read or written from / to device |
Fields inherited from class fi.hu.cs.titokone.DebugInfo |
|
Constructor Summary | |
RunInfo(int lineNumber,
java.lang.String lineContents)
This constructor initializes the RunInfo and sets its starting values. |
Method Summary | |
int |
getADDR()
This method returns value of the ADDR part of the command. |
int |
getALUResult()
This method returns the result of the ALU operation. |
int |
getBinary()
This method returns the binary command. |
java.util.LinkedList |
getChangedMemoryLines()
|
java.lang.String |
getColonString()
This method gets the colon-presentation of the command. |
int |
getCompareStatus()
Gets compare status of status register. |
int |
getFirstOperand()
This method returns register number of the first operand. |
int |
getIndexRegister()
This method returns number of the index register. |
java.lang.String |
getLineContents()
This method returns the symbolic command found on the line.. |
int |
getLineNumber()
This method returns the number of the line. |
int |
getMemoryfetches()
This methot tells GUIBrain how many memoryfetches were made. |
int |
getNewPC()
Gets the value of new PC. |
int |
getOperationtype()
This method tells GUIBrain what kind of operation happened. |
int[] |
getRegisters()
Returns register array. |
int |
getSecondFetchValue()
This method gets value of second memory fetch. |
java.lang.String |
getSVC()
This method returns type of the SVC operation. |
int |
getValueAtADDR()
This method returns value found at the ADDR. |
boolean |
isExternalOp()
This method tells is external operation executed |
boolean |
isInOp()
This method tells is external operation in or out |
void |
setADDR(int addr)
This method sets the value of the ADDRess field. |
void |
setALUResult(int result)
This sets the result of performed ALU operation |
void |
setBinary(int binary)
This method sets the binary command. |
void |
setChangedMemoryLines(java.util.LinkedList changedMemoryLines)
|
void |
setColonString(java.lang.String colonString)
This method sets the colon-presentation of the command. |
void |
setCompareOperation(int whichBit)
This method tells info that a compare operation was made and what SR bit was changed to what value. |
void |
setFirstOperand(int Rj)
This method sets the first operand. |
void |
setIN(java.lang.String deviceName,
int device,
int value)
This method tells info what was read from given device and what was the value. |
void |
setIndexRegister(int Ri)
this method sets the index register. |
void |
setNewPC(int newPC)
Sets the value of new PC. |
void |
setNumberOfFetches(int fetches)
This method sets the number of fetches. |
void |
setOperationType(int type)
This method sets the type of operation performed. |
void |
setOUT(java.lang.String deviceName,
int device,
int value)
This method tells info what was written to the given device and what was the value. |
void |
setRegisters(int[] registers)
|
void |
setSecondFetchValue(int secondFetchValue)
This method sets value of second memory fetch. |
void |
setSVCOperation(java.lang.String operation)
This method sets what kind of SVC operation was made. |
void |
setValueAtADDR(int value)
This method sets the value found at ADDR. |
java.lang.String |
whatDevice()
This method returns name of the used device. |
int[] |
whatIN()
This method tells GUIBrain what was result of an IN command (device and value. |
int[] |
whatOUT()
This method tells GUIBrain what was result of an OUT command (device and value). |
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 int operationType
private int lineNumber
private java.lang.String lineContents
private int binary
private int[] registers
private java.lang.String colonString
private int numberOfMemoryfetches
private int Rj
private int newPC
private int Ri
private int addr
private int valueAtADDR
private int secondFetchValue
private int aluResult
private int compareStatus
private boolean externalOperation
private boolean isIN
private java.lang.String deviceName
private int deviceNumber
private int valueOfDevice
private java.lang.String svcOperation
java.util.LinkedList changedMemoryLines
Constructor Detail |
public RunInfo(int lineNumber, java.lang.String lineContents)
lineNumber
- Line number of current line.lineContents
- String containing symbolic command.Method Detail |
public void setRegisters(int[] registers)
public void setOperationType(int type)
type
- Type of operation.public void setColonString(java.lang.String colonString)
colonString
- The colon-presentation of the command,
eg. 0:1:0:2:3 (for NOP R1, =3(R2)).public java.lang.String getColonString()
public void setIndexRegister(int Ri)
Ri
- Number of the register.public void setFirstOperand(int Rj)
Rj
- Number of the register.public void setNumberOfFetches(int fetches)
fetches
- Number of fetches.public void setADDR(int addr)
addr
- Int containing the ADDR.public void setValueAtADDR(int value)
value
- Value found at the ADDR.public void setChangedMemoryLines(java.util.LinkedList changedMemoryLines)
public void setALUResult(int result)
result
- Result of the operation.public void setCompareOperation(int whichBit)
whichBit
- Number of the bit.public boolean isExternalOp()
public boolean isInOp()
public void setIN(java.lang.String deviceName, int device, int value)
deviceName
- Name of the device.device
- Number of the device.value
- Value read.public void setOUT(java.lang.String deviceName, int device, int value)
deviceName
- Name of the device.device
- Number of the device.value
- Value written.public void setSVCOperation(java.lang.String operation)
public void setNewPC(int newPC)
newPC
- Value of the new PC.public int getNewPC()
public int getCompareStatus()
public int getOperationtype()
public int getMemoryfetches()
public int getLineNumber()
public java.lang.String getLineContents()
public int getBinary()
public void setBinary(int binary)
binary
- Contains the binary command.public int[] getRegisters()
public java.util.LinkedList getChangedMemoryLines()
public int[] whatOUT()
public int[] whatIN()
public java.lang.String whatDevice()
public int getFirstOperand()
public int getIndexRegister()
public int getADDR()
public int getValueAtADDR()
public void setSecondFetchValue(int secondFetchValue)
secondFetchValue
- Value which have got at second memory fetch.public int getSecondFetchValue()
public int getALUResult()
public java.lang.String getSVC()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |