Fix rotation of 8 being interpreted as 0
This commit is contained in:
parent
6e61c5402d
commit
8c0b923455
@ -841,7 +841,11 @@ impl<T> Disasm<'_, T> {
|
|||||||
let rotation = if ins_word[10] {
|
let rotation = if ins_word[10] {
|
||||||
Rotation::Register(ins_word[4..7].load_be::<u8>())
|
Rotation::Register(ins_word[4..7].load_be::<u8>())
|
||||||
} else {
|
} else {
|
||||||
Rotation::Immediate(ins_word[4..7].load_be::<u8>())
|
let mut rotation = ins_word[4..7].load_be::<u8>();
|
||||||
|
if rotation == 0 {
|
||||||
|
rotation = 8;
|
||||||
|
}
|
||||||
|
Rotation::Immediate(rotation)
|
||||||
};
|
};
|
||||||
(op, dst, rotation)
|
(op, dst, rotation)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user