fix: properly decode format 11 instructions

This commit is contained in:
2022-10-21 05:12:18 -03:00
parent 603e4b6fdf
commit f9e7128061
2 changed files with 5 additions and 5 deletions

View File

@@ -496,7 +496,7 @@ fn thumbPopulate() [0x400]ThumbInstrFn {
},
0b001 => blk: {
const L = i >> 5 & 1 == 1;
const rd = i >> 2 & 0x3;
const rd = i >> 2 & 0x7;
break :blk format11(L, rd);
},
0b010 => blk: {