Class: GBRb::InstructionSet::And
- Inherits:
-
Boolean
- Object
- Instruction
- Boolean
- GBRb::InstructionSet::And
- Defined in:
- lib/gbrb/instruction_set/boolean.rb
Instance Attribute Summary
Attributes inherited from Instruction
Instance Method Summary collapse
- #call(r, mem, v = nil) ⇒ Object
-
#initialize(target, m = 1, t = 4, indirect = false, immediates = 0) ⇒ And
constructor
A new instance of And.
Methods inherited from Instruction
Constructor Details
#initialize(target, m = 1, t = 4, indirect = false, immediates = 0) ⇒ And
Returns a new instance of And.
27 28 29 30 |
# File 'lib/gbrb/instruction_set/boolean.rb', line 27 def initialize target, m=1, t=4, indirect=false, immediates=0 @op = :& super end |
Instance Method Details
#call(r, mem, v = nil) ⇒ Object
32 33 34 35 |
# File 'lib/gbrb/instruction_set/boolean.rb', line 32 def call r, mem, v=nil super r.set_half_carry_flag end |