fix(cpu): properly decode THUMB PUSH and POP at comptime

This commit is contained in:
2022-01-30 00:16:13 -04:00
parent dc6931639f
commit 6ffaf12804
2 changed files with 3 additions and 3 deletions

View File

@@ -394,8 +394,8 @@ fn thumbPopulate() [0x400]ThumbInstrFn {
}
if (i >> 6 & 0xF == 0b1011 and i >> 3 & 0x3 == 0b10) {
const L = i >> 11 & 1 == 1;
const R = i >> 8 & 1 == 1;
const L = i >> 5 & 1 == 1;
const R = i >> 2 & 1 == 1;
lut[i] = format14(L, R);
}