Class: GBRb::CPU::Or

Inherits:
Boolean show all
Defined in:
lib/gbrb/cpu/instruction.rb

Instance Attribute Summary

Attributes inherited from Instruction

#i, #m, #t

Instance Method Summary collapse

Methods inherited from Instruction

#carry?, #immediate_count

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