Skip to content

Commit

Permalink
remove bit rotation manually
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Dec 25, 2024
1 parent baa870e commit 112e462
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cpu/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ fn alu_swap(cpu: &mut Cpu, a: u8) -> u8 {
cpu.registers.flag(C, false);
cpu.registers.flag(H, false);
cpu.registers.flag(N, false);
(a >> 4) | (a << 4)
a.rotate_left(4)
// (a >> 4) | (a << 4)
}

fn alu_sla(cpu: &mut Cpu, a: u8) -> u8 {
Expand Down

0 comments on commit 112e462

Please sign in to comment.