fix(cpu): pass SLA (HL) and SRA (HL) tests from blargg

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-04-22 20:38:13 -05:00
parent 9bf10f0c7d
commit 6f4f872765
1 changed files with 2 additions and 2 deletions

View File

@ -1245,7 +1245,7 @@ impl Instruction {
let shifted = value << 1;
cpu.write_byte(addr, value);
cpu.write_byte(addr, shifted);
(Cycle::new(16), (value >> 7) & 0x01, shifted)
}
};
@ -1279,7 +1279,7 @@ impl Instruction {
let msb = (value >> 7) & 0x01;
let shifted = msb << 7 | value >> 1;
cpu.write_byte(addr, value);
cpu.write_byte(addr, shifted);
(Cycle::new(16), value & 0x01, shifted)
}
};