Class: Amaterasu::GameBoy::Cpu::Instructions::CbRlc
- Includes:
- Utils::BitOps
- Defined in:
- lib/amaterasu/game_boy/cpu/instructions/cb_rlc.rb
Overview
Holds the logic of all the RLC (Rotate Left Circular) instructions.
-
RLC r8
-
RLC [HL]
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(cpu:, target:) ⇒ CbRlc
constructor
A new instance of CbRlc.
Methods included from Utils::BitOps
Methods inherited from Base
Constructor Details
#initialize(cpu:, target:) ⇒ CbRlc
Returns a new instance of CbRlc.
14 15 16 17 18 19 |
# File 'lib/amaterasu/game_boy/cpu/instructions/cb_rlc.rb', line 14 def initialize(cpu:, target:) super(cpu:) @mnemonic = "RLC #{format_operand(target)}" @logic = build_logic(target) end |