Fix mistake in UMLAL
Former-commit-id: 6fe9bdf5471b71b58dcf9ee9ffa03c41b24e6301
This commit is contained in:
parent
1b5626a1a7
commit
7429236471
|
@ -475,7 +475,9 @@ impl Core {
|
|||
self.add_cycle();
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue