Fix bug in RRX (defined "old_carry" after changing it >< )

Former-commit-id: b890d40bb57da1cc6b63d6436bc8f346131fa5bc
This commit is contained in:
Michel Heily 2019-07-10 22:33:39 +03:00
parent 50086a8715
commit 4c3379615a

View file

@ -191,8 +191,8 @@ impl Core {
0 => {
if immediate {
/* RRX */
self.cpsr.set_C(val & 0b1 != 0);
let old_c = self.cpsr.C() as i32;
self.cpsr.set_C(val & 0b1 != 0);
((val as u32) >> 1) as i32 | (old_c << 31)
} else {
val