Class: GBRb::InstructionSet::Ldca
- Inherits:
-
Instruction
- Object
- Instruction
- GBRb::InstructionSet::Ldca
- Defined in:
- lib/gbrb/instruction_set/ld.rb
Instance Attribute Summary
Attributes inherited from Instruction
Instance Method Summary collapse
- #call(r, mem) ⇒ Object
-
#initialize(m = 2, t = 8) ⇒ Ldca
constructor
A new instance of Ldca.
Methods inherited from Instruction
Constructor Details
#initialize(m = 2, t = 8) ⇒ Ldca
Returns a new instance of Ldca.
141 142 143 |
# File 'lib/gbrb/instruction_set/ld.rb', line 141 def initialize m=2, t=8 super m, t end |
Instance Method Details
#call(r, mem) ⇒ Object
145 146 147 |
# File 'lib/gbrb/instruction_set/ld.rb', line 145 def call r, mem mem.write_byte r.c.read + 0xff00, r.a.read end |