Fix mistake in UMLAL

Former-commit-id: 6fe9bdf5471b71b58dcf9ee9ffa03c41b24e6301
This commit is contained in:
Michel Heily 2019-07-26 17:54:13 +03:00
parent 1b5626a1a7
commit 7429236471

View file

@ -475,7 +475,9 @@ impl Core {
self.add_cycle(); self.add_cycle();
if insn.accumulate_flag() { if insn.accumulate_flag() {
result = result.wrapping_add(self.get_reg(rn) as u64); let hi = self.get_reg(rd_hi) as u64;
let lo = self.get_reg(rd_lo) as u64;
result = result.wrapping_add(hi << 32 | lo);
self.add_cycle(); self.add_cycle();
} }