Package jminusminus
Class NRegister
java.lang.Object
jminusminus.NRegister
- Direct Known Subclasses:
NPhysicalRegister
,NVirtualRegister
An abstract representation for a (physical and virtual) register.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
number
protected int numberRegister number. -
name
Register name.
-
-
Constructor Details
-
NRegister
Constructs an NRegister.- Parameters:
number
- register number.name
- register name.
-
-
Method Details
-
number
public int number()Returns the number of this register.- Returns:
- the number of this register.
-
name
Returns the name of this register.- Returns:
- the name of this register.
-