Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgomes28 committed Oct 1, 2024
1 parent ae04426 commit 91fac05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ std::optional<InstructionConfig> pull_stack_to_status_reg(emulator::Cpu& cpu, st
void ror_operation(emulator::Cpu& cpu, std::uint8_t value)
{
std::uint8_t const new_value = (value >> 1) | (static_cast<std::uint8_t>(cpu.flags.c) << 7);
cpu.reg.a = new_value;
cpu.reg.a = new_value;
cpu.flags.c = value & (0b0000'0001);
}

Expand Down

0 comments on commit 91fac05

Please sign in to comment.