1 #ifndef __REGDEF_H 2 #define __REGDEF_H 3 4 #define zero $0 /* wired zero */ 5 //#define AT $1 /* assembler temp - uppercase because of ".set at" */ 6 #define v0 $2 /* values for function returns */ 7 #define v1 $3 8 #define a0 $4 /* argument registers */ 9 #define a1 $5 10 #define a2 $6 11 #define a3 $7 12 #define t0 $8 13 #define t1 $9 14 #define t2 $10 15 #define t3 $11 16 #define t4 $12 17 #define t5 $13 18 #define t6 $14 19 #define t7 $15 20 #define s0 $16 21 #define s1 $17 22 #define s2 $18 23 #define s3 $19 24 #define s4 $20 25 #define s5 $21 26 #define s6 $22 27 #define s7 $23 28 #define t8 $24 29 #define t9 $25 30 #define jp $25 31 #define k0 $26 /* reserved for OS */ 32 #define k1 $27 /* reserved for OS */ 33 #define gp $28 /* global pointer */ 34 #define sp $29 /* stack pointer */ 35 #define fp $30 /* frame pointer */ 36 #define s8 $30 /* frame pointer */ 37 #define ra $31 /* return address */ 38 39 #endif /* __REGDEF_H */ 40