Class: GBRb::CPU::Or
- Inherits:
-
Boolean
- Object
- Instruction
- Boolean
- GBRb::CPU::Or
- Defined in:
- lib/gbrb/cpu/instruction.rb
Instance Attribute Summary
Attributes inherited from Instruction
Instance Method Summary collapse
- #call(r, mem) ⇒ Object
-
#initialize(target, m = 1, t = 4, indirect = false) ⇒ Or
constructor
A new instance of Or.
Methods inherited from Instruction
Constructor Details
#initialize(target, m = 1, t = 4, indirect = false) ⇒ Or
Returns a new instance of Or.
471 472 473 474 |
# File 'lib/gbrb/cpu/instruction.rb', line 471 def initialize target, m=1, t=4, indirect=false @op = :| super end |
Instance Method Details
#call(r, mem) ⇒ Object
476 477 478 479 |
# File 'lib/gbrb/cpu/instruction.rb', line 476 def call r, mem super r.clear_half_carry_flag end |