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