Package iota
Class NRegister
java.lang.Object
iota.NRegister
- Direct Known Subclasses:
NPhysicalRegister
,NVirtualRegister
Abstract representation of a register.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NPhysicalRegister
Returns the physical reg associated with the given reg.toString()
Returns a string representation of this register.
-
Field Details
-
number
public int numberRegister number. -
name
Register name.
-
-
Constructor Details
-
NRegister
Constructs an NRegister object.- Parameters:
number
- register number.name
- register name.
-
-
Method Details
-
toString
Returns a string representation of this register. -
toPhysicalRegister
Returns the physical reg associated with the given reg.- Parameters:
reg
- the reg.- Returns:
- the physical reg associated with the given reg.
-