fi.hu.cs.ttk91
Interface TTK91Cpu
- All Known Implementing Classes:
- Processor
- public interface TTK91Cpu
CU_TR
public static final int CU_TR
- See Also:
- Constant Field Values
CU_IR
public static final int CU_IR
- See Also:
- Constant Field Values
CU_PC
public static final int CU_PC
- See Also:
- Constant Field Values
CU_PC_CURRENT
public static final int CU_PC_CURRENT
- See Also:
- Constant Field Values
CU_SR
public static final int CU_SR
- See Also:
- Constant Field Values
REG_R0
public static final int REG_R0
- See Also:
- Constant Field Values
REG_R1
public static final int REG_R1
- See Also:
- Constant Field Values
REG_R2
public static final int REG_R2
- See Also:
- Constant Field Values
REG_R3
public static final int REG_R3
- See Also:
- Constant Field Values
REG_R4
public static final int REG_R4
- See Also:
- Constant Field Values
REG_R5
public static final int REG_R5
- See Also:
- Constant Field Values
REG_R6
public static final int REG_R6
- See Also:
- Constant Field Values
REG_R7
public static final int REG_R7
- See Also:
- Constant Field Values
REG_SP
public static final int REG_SP
- See Also:
- Constant Field Values
REG_FP
public static final int REG_FP
- See Also:
- Constant Field Values
STATUS_STILL_RUNNING
public static final int STATUS_STILL_RUNNING
- See Also:
- Constant Field Values
STATUS_SVC_SD
public static final int STATUS_SVC_SD
- See Also:
- Constant Field Values
STATUS_ABNORMAL_EXIT
public static final int STATUS_ABNORMAL_EXIT
- See Also:
- Constant Field Values
getValueOf
public int getValueOf(int register)
- Parameters:
register
- the register to fetch
- Returns:
- the value stored into wanted register
- Throws:
java.lang.IllegalArgumentException
- if asked with a invalid register code
getStatus
public int getStatus()
- Returns:
- the status of the cpu as signified by STATUS_* signals