1    package org.xwt.mips;
2    interface Registers {
3        // Register Names
4        public final static int ZERO = 0; // Immutable, hardwired to 0
5        public final static int AT = 1;  // Reserved for assembler
6        public final static int K0 = 26; // Reserved for kernel 
7        public final static int K1 = 27; // Reserved for kernel 
8        public final static int GP = 28; // Global pointer (the middle of .sdata/.sbss)
9        public final static int SP = 29; // Stack pointer
10       public final static int FP = 30; // Frame Pointer
11       public final static int RA = 31; // Return Address
12       
13       // Return values (caller saved)
14       public final static int V0 = 2;
15       public final static int V1 = 3;
16       // Argument Registers (caller saved)
17       public final static int A0 = 4; 
18       public final static int A1 = 5;
19       public final static int A2 = 6;
20       public final static int A3 = 7;
21       // Temporaries (caller saved)
22       public final static int T0 = 8;
23       public final static int T1 = 9;
24       public final static int T2 = 10;
25       public final static int T3 = 11;
26       public final static int T4 = 12;
27       public final static int T5 = 13;
28       public final static int T6 = 14;
29       public final static int T7 = 15;
30       public final static int T8 = 24;
31       public final static int T9 = 25;
32       // Saved (callee saved)
33       public final static int S0 = 16;
34       public final static int S1 = 17;
35       public final static int S2 = 18;
36       public final static int S3 = 19;
37       public final static int S4 = 20;
38       public final static int S5 = 21;
39       public final static int S6 = 22;
40       public final static int S7 = 23;
41   }
42