Main Page   Compound List   File List   Compound Members   File Members  

encode.h

Go to the documentation of this file.
00001 /*
00002  Copyright (c) 1992-1993 The Regents of the University of California.
00003  All rights reserved.  See copyright.h for copyright notice and limitation 
00004  of liability and disclaimer of warranty provisions.
00005  */
00006 
00007 #include "copyright.h"
00008 
00009 
00010 /* normal opcodes */
00011 
00012 #define I_SPECIAL       000
00013 #define I_BCOND         001
00014 #define I_J             002
00015 #define I_JAL           003
00016 #define I_BEQ           004
00017 #define I_BNE           005
00018 #define I_BLEZ          006
00019 #define I_BGTZ          007
00020 #define I_ADDI          010
00021 #define I_ADDIU         011
00022 #define I_SLTI          012
00023 #define I_SLTIU         013
00024 #define I_ANDI          014
00025 #define I_ORI           015
00026 #define I_XORI          016
00027 #define I_LUI           017
00028 #define I_COP0          020
00029 #define I_COP1          021
00030 #define I_COP2          022
00031 #define I_COP3          023
00032 
00033 #define I_LB            040
00034 #define I_LH            041
00035 #define I_LWL           042
00036 #define I_LW            043
00037 #define I_LBU           044
00038 #define I_LHU           045
00039 #define I_LWR           046
00040 
00041 #define I_SB            050
00042 #define I_SH            051
00043 #define I_SWL           052
00044 #define I_SW            053
00045 
00046 #define I_SWR           056
00047 
00048 #define I_LWC0          060
00049 #define I_LWC1          061
00050 #define I_LWC2          062
00051 #define I_LWC3          063
00052 
00053 #define I_SWC0          070
00054 #define I_SWC1          071
00055 #define I_SWC2          072
00056 #define I_SWC3          073
00057 
00058 /* special opcodes */
00059 
00060 #define I_SLL           000
00061 
00062 #define I_SRL           002
00063 #define I_SRA           003
00064 #define I_SLLV          004
00065 
00066 #define I_SRLV          006
00067 #define I_SRAV          007
00068 #define I_JR            010
00069 #define I_JALR          011
00070 
00071 #define I_SYSCALL       014
00072 #define I_BREAK         015
00073 
00074 #define I_MFHI          020
00075 #define I_MTHI          021
00076 #define I_MFLO          022
00077 #define I_MTLO          023
00078 
00079 #define I_MULT          030
00080 #define I_MULTU         031
00081 #define I_DIV           032
00082 #define I_DIVU          033
00083 
00084 #define I_ADD           040
00085 #define I_ADDU          041
00086 #define I_SUB           042
00087 #define I_SUBU          043
00088 #define I_AND           044
00089 #define I_OR            045
00090 #define I_XOR           046
00091 #define I_NOR           047
00092 
00093 #define I_SLT           052
00094 #define I_SLTU          053
00095 
00096 /* bcond opcodes */
00097 
00098 
00099 #define I_BLTZ          000
00100 #define I_BGEZ          001
00101 
00102 #define I_BLTZAL        020
00103 #define I_BGEZAL        021
00104 
00105 /* whole instructions */
00106 
00107 #define I_NOP           000

Generated on Mon Feb 10 09:54:45 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