public static enum MUnit.Register extends java.lang.Enum<MUnit.Register>
Enum Constant and Description |
---|
a0 |
a1 |
a2 |
a3 |
at |
fp |
gp |
hi |
k0 |
k1 |
lo |
pc |
ra |
s0 |
s1 |
s2 |
s3 |
s4 |
s5 |
s6 |
s7 |
sp |
t0 |
t1 |
t2 |
t3 |
t4 |
t5 |
t6 |
t7 |
t8 |
t9 |
v0 |
v1 |
zero |
Modifier and Type | Method and Description |
---|---|
static int |
getNumber(MUnit.Register r)
Returns the number for register r.
|
static MUnit.Register |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MUnit.Register[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MUnit.Register zero
public static final MUnit.Register at
public static final MUnit.Register v0
public static final MUnit.Register v1
public static final MUnit.Register a0
public static final MUnit.Register a1
public static final MUnit.Register a2
public static final MUnit.Register a3
public static final MUnit.Register t0
public static final MUnit.Register t1
public static final MUnit.Register t2
public static final MUnit.Register t3
public static final MUnit.Register t4
public static final MUnit.Register t5
public static final MUnit.Register t6
public static final MUnit.Register t7
public static final MUnit.Register s0
public static final MUnit.Register s1
public static final MUnit.Register s2
public static final MUnit.Register s3
public static final MUnit.Register s4
public static final MUnit.Register s5
public static final MUnit.Register s6
public static final MUnit.Register s7
public static final MUnit.Register t8
public static final MUnit.Register t9
public static final MUnit.Register k0
public static final MUnit.Register k1
public static final MUnit.Register gp
public static final MUnit.Register sp
public static final MUnit.Register fp
public static final MUnit.Register ra
public static final MUnit.Register hi
public static final MUnit.Register lo
public static final MUnit.Register pc
public static MUnit.Register[] values()
for (MUnit.Register c : MUnit.Register.values()) System.out.println(c);
public static MUnit.Register valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static int getNumber(MUnit.Register r)
r
- the registerr