Class: GBRb::InstructionSet::LdD16
- Inherits:
-
Instruction
- Object
- Instruction
- GBRb::InstructionSet::LdD16
- Defined in:
- lib/gbrb/instruction_set/ld.rb
Instance Attribute Summary
Attributes inherited from Instruction
Instance Method Summary collapse
- #call(r, mem, v) ⇒ Object
-
#initialize(destination, m = 3, t = 12) ⇒ LdD16
constructor
A new instance of LdD16.
Methods inherited from Instruction
Constructor Details
#initialize(destination, m = 3, t = 12) ⇒ LdD16
Returns a new instance of LdD16.
63 64 65 66 |
# File 'lib/gbrb/instruction_set/ld.rb', line 63 def initialize destination, m=3, t=12 super m, t, 2 @destination = destination end |
Instance Method Details
#call(r, mem, v) ⇒ Object
68 69 70 |
# File 'lib/gbrb/instruction_set/ld.rb', line 68 def call r, mem, v r.public_send(@destination).store v end |