fi.hu.cs.ttk91
Interface TTK91Cpu

All Known Implementing Classes:
Processor

public interface TTK91Cpu


Field Summary
static int CU_IR
           
static int CU_PC
           
static int CU_PC_CURRENT
           
static int CU_SR
           
static int CU_TR
           
static int REG_FP
           
static int REG_R0
           
static int REG_R1
           
static int REG_R2
           
static int REG_R3
           
static int REG_R4
           
static int REG_R5
           
static int REG_R6
           
static int REG_R7
           
static int REG_SP
           
static int STATUS_ABNORMAL_EXIT
           
static int STATUS_STILL_RUNNING
           
static int STATUS_SVC_SD
           
 
Method Summary
 int getStatus()
           
 int getValueOf(int register)
           
 

Field Detail

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
Method Detail

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