00001
00002
00003
00004
00005
00006
00007 #include "copyright.h"
00008
00009
00010
00011 #define rd(i) (((i) >> 11) & 0x1f)
00012 #define rt(i) (((i) >> 16) & 0x1f)
00013 #define rs(i) (((i) >> 21) & 0x1f)
00014 #define shamt(i) (((i) >> 6) & 0x1f)
00015 #define immed(i) (((i) & 0x8000) ? (i)|(-0x8000) : (i)&0x7fff)
00016
00017 #define off26(i) (((i)&((1<<26)-1))<<2)
00018 #define top4(i) (((i)&(~((1<<28)-1))))
00019 #define off16(i) (immed(i)<<2)
00020
00021 #define extend(i, hibitmask) (((i)&(hibitmask)) ? ((i)|(-(hibitmask))) : (i))
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