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