Fix bug in RRX (defined "old_carry" after changing it >< )
Former-commit-id: b890d40bb57da1cc6b63d6436bc8f346131fa5bc
This commit is contained in:
parent
50086a8715
commit
4c3379615a
|
@ -191,8 +191,8 @@ impl Core {
|
||||||
0 => {
|
0 => {
|
||||||
if immediate {
|
if immediate {
|
||||||
/* RRX */
|
/* RRX */
|
||||||
self.cpsr.set_C(val & 0b1 != 0);
|
|
||||||
let old_c = self.cpsr.C() as i32;
|
let old_c = self.cpsr.C() as i32;
|
||||||
|
self.cpsr.set_C(val & 0b1 != 0);
|
||||||
((val as u32) >> 1) as i32 | (old_c << 31)
|
((val as u32) >> 1) as i32 | (old_c << 31)
|
||||||
} else {
|
} else {
|
||||||
val
|
val
|
||||||
|
|
Reference in a new issue