Class: GBRb::InstructionSet::Lda16sp
- Inherits:
-
Instruction
- Object
- Instruction
- GBRb::InstructionSet::Lda16sp
- 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(m = 5, t = 20, immediates = 2) ⇒ Lda16sp
constructor
A new instance of Lda16sp.
Methods inherited from Instruction
Constructor Details
#initialize(m = 5, t = 20, immediates = 2) ⇒ Lda16sp
Returns a new instance of Lda16sp.
182 183 184 |
# File 'lib/gbrb/instruction_set/ld.rb', line 182 def initialize m=5, t=20, immediates=2 super end |
Instance Method Details
#call(r, mem, v) ⇒ Object
186 187 188 |
# File 'lib/gbrb/instruction_set/ld.rb', line 186 def call r, mem, v mem.write_word v, r.sp.read end |