Class: Wilson::SpecialRegister
Overview
SpecialRegister is the abstract implementation of any kind of register that isn’t a general register, eg: segment registers, mmx registers, fpu registers, etc…
Direct Known Subclasses
ControlRegister, DebugRegister, FPURegister, MMXRegister, SegmentRegister, TestRegister
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Attributes inherited from Operand
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Operand
#initialize, #instructionFromMessage, #method_missing, on, #operand?
Constructor Details
This class inherits a constructor from Wilson::Operand
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wilson::Operand
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
1146 1147 1148 |
# File 'lib/wilson.rb', line 1146 def id @id end |
Class Method Details
.on_id(machine, id) ⇒ Object
1148 1149 1150 1151 1152 1153 |
# File 'lib/wilson.rb', line 1148 def self.on_id machine, id register = self.new register.machine = machine register.id = id register end |
Instance Method Details
#special_register? ⇒ Boolean
1155 1156 1157 |
# File 'lib/wilson.rb', line 1155 def special_register? true end |