Main Page   Compound List   File List   Compound Members   File Members  

mipssim.h File Reference

#include "copyright.h"

Go to the source code of this file.

Compounds

struct  OpInfo
struct  OpString

Defines

#define OP_ADD   1
#define OP_ADDI   2
#define OP_ADDIU   3
#define OP_ADDU   4
#define OP_AND   5
#define OP_ANDI   6
#define OP_BEQ   7
#define OP_BGEZ   8
#define OP_BGEZAL   9
#define OP_BGTZ   10
#define OP_BLEZ   11
#define OP_BLTZ   12
#define OP_BLTZAL   13
#define OP_BNE   14
#define OP_DIV   16
#define OP_DIVU   17
#define OP_J   18
#define OP_JAL   19
#define OP_JALR   20
#define OP_JR   21
#define OP_LB   22
#define OP_LBU   23
#define OP_LH   24
#define OP_LHU   25
#define OP_LUI   26
#define OP_LW   27
#define OP_LWL   28
#define OP_LWR   29
#define OP_MFHI   31
#define OP_MFLO   32
#define OP_MTHI   34
#define OP_MTLO   35
#define OP_MULT   36
#define OP_MULTU   37
#define OP_NOR   38
#define OP_OR   39
#define OP_ORI   40
#define OP_RFE   41
#define OP_SB   42
#define OP_SH   43
#define OP_SLL   44
#define OP_SLLV   45
#define OP_SLT   46
#define OP_SLTI   47
#define OP_SLTIU   48
#define OP_SLTU   49
#define OP_SRA   50
#define OP_SRAV   51
#define OP_SRL   52
#define OP_SRLV   53
#define OP_SUB   54
#define OP_SUBU   55
#define OP_SW   56
#define OP_SWL   57
#define OP_SWR   58
#define OP_XOR   59
#define OP_XORI   60
#define OP_SYSCALL   61
#define OP_UNIMP   62
#define OP_RES   63
#define MaxOpcode   63
#define IndexToAddr(x)   ((x) << 2)
#define SIGN_BIT   0x80000000
#define R31   31
#define SPECIAL   100
#define BCOND   101
#define IFMT   1
#define JFMT   2
#define RFMT   3

Enumerations

enum  RegType {
  NONE, RS, RT, RD,
  EXTRA
}

Variables

OpInfo opTable []
int specialTable []
OpString opStrings []


Define Documentation

#define BCOND   101
 

Definition at line 106 of file mipssim.h.

Referenced by Instruction::Decode.

#define IFMT   1
 

Definition at line 108 of file mipssim.h.

Referenced by Instruction::Decode.

#define IndexToAddr      ((x) << 2)
 

Definition at line 94 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define JFMT   2
 

Definition at line 109 of file mipssim.h.

#define MaxOpcode   63
 

Definition at line 88 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_ADD   1
 

Definition at line 25 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_ADDI   2
 

Definition at line 26 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_ADDIU   3
 

Definition at line 27 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_ADDU   4
 

Definition at line 28 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_AND   5
 

Definition at line 29 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_ANDI   6
 

Definition at line 30 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_BEQ   7
 

Definition at line 31 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_BGEZ   8
 

Definition at line 32 of file mipssim.h.

Referenced by Instruction::Decode, and Machine::OneInstruction.

#define OP_BGEZAL   9
 

Definition at line 33 of file mipssim.h.

Referenced by Instruction::Decode, and Machine::OneInstruction.

#define OP_BGTZ   10
 

Definition at line 34 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_BLEZ   11
 

Definition at line 35 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_BLTZ   12
 

Definition at line 36 of file mipssim.h.

Referenced by Instruction::Decode, and Machine::OneInstruction.

#define OP_BLTZAL   13
 

Definition at line 37 of file mipssim.h.

Referenced by Instruction::Decode, and Machine::OneInstruction.

#define OP_BNE   14
 

Definition at line 38 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_DIV   16
 

Definition at line 40 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_DIVU   17
 

Definition at line 41 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_J   18
 

Definition at line 42 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_JAL   19
 

Definition at line 43 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_JALR   20
 

Definition at line 44 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_JR   21
 

Definition at line 45 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_LB   22
 

Definition at line 46 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_LBU   23
 

Definition at line 47 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_LH   24
 

Definition at line 48 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_LHU   25
 

Definition at line 49 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_LUI   26
 

Definition at line 50 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_LW   27
 

Definition at line 51 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_LWL   28
 

Definition at line 52 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_LWR   29
 

Definition at line 53 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_MFHI   31
 

Definition at line 55 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_MFLO   32
 

Definition at line 56 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_MTHI   34
 

Definition at line 58 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_MTLO   35
 

Definition at line 59 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_MULT   36
 

Definition at line 60 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_MULTU   37
 

Definition at line 61 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_NOR   38
 

Definition at line 62 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_OR   39
 

Definition at line 63 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_ORI   40
 

Definition at line 64 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_RES   63
 

Definition at line 87 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_RFE   41
 

Definition at line 65 of file mipssim.h.

#define OP_SB   42
 

Definition at line 66 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SH   43
 

Definition at line 67 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SLL   44
 

Definition at line 68 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SLLV   45
 

Definition at line 69 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SLT   46
 

Definition at line 70 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SLTI   47
 

Definition at line 71 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SLTIU   48
 

Definition at line 72 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SLTU   49
 

Definition at line 73 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SRA   50
 

Definition at line 74 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SRAV   51
 

Definition at line 75 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SRL   52
 

Definition at line 76 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SRLV   53
 

Definition at line 77 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SUB   54
 

Definition at line 78 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SUBU   55
 

Definition at line 79 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SW   56
 

Definition at line 80 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SWL   57
 

Definition at line 81 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SWR   58
 

Definition at line 82 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_SYSCALL   61
 

Definition at line 85 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_UNIMP   62
 

Definition at line 86 of file mipssim.h.

Referenced by Instruction::Decode, and Machine::OneInstruction.

#define OP_XOR   59
 

Definition at line 83 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define OP_XORI   60
 

Definition at line 84 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define R31   31
 

Definition at line 97 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define RFMT   3
 

Definition at line 110 of file mipssim.h.

Referenced by Instruction::Decode.

#define SIGN_BIT   0x80000000
 

Definition at line 96 of file mipssim.h.

Referenced by Machine::OneInstruction.

#define SPECIAL   100
 

Definition at line 105 of file mipssim.h.

Referenced by Instruction::Decode.


Enumeration Type Documentation

enum RegType
 

Enumeration values:
NONE 
RS 
RT 
RD 
EXTRA 

Definition at line 155 of file mipssim.h.

Referenced by TypeToReg.

00155 { NONE, RS, RT, RD, EXTRA }; 


Variable Documentation

struct OpString opStrings[] [static]
 

Definition at line 162 of file mipssim.h.

OpInfo opTable[] [static]
 

Initial value:

Definition at line 117 of file mipssim.h.

int specialTable[] [static]
 

Initial value:

Definition at line 141 of file mipssim.h.


Generated on Mon Feb 10 09:54:50 2003 for nachos by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002
The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees