Method: Rex::Poly::LogicalBlock#regnum_of
- Defined in:
- lib/rex/poly/block.rb
#regnum_of(reg) ⇒ Object
Returns the register number associated with the supplied LogicalRegister instance. If the active state for this instance is operating in the first phase, then zero is always returned. Otherwise, the correct register number is returned based on what is currently assigned to the supplied LogicalRegister instance, if anything.
291 292 293 |
# File 'lib/rex/poly/block.rb', line 291 def regnum_of(reg) (@state.first_phase) ? 0 : reg.regnum end |