Skip to content

Commit

Permalink
Ignore .b for modrm.rm encoded mask registers
Browse files Browse the repository at this point in the history
Closes #292
  • Loading branch information
flobernd committed Dec 19, 2021
1 parent 198fee5 commit 4756724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -4214,7 +4214,7 @@ static ZyanStatus ZydisPopulateRegisterIds(ZydisDecoderContext* context,
/* TEST */ (1 << 3) - 1, // ignore `.B`, ignore `.X`
/* CONTROL */ (1 << 4) - 1, // ignore `.X`
/* DEBUG */ (1 << 4) - 1, // ignore `.X`
/* MASK */ (1 << 4) - 1, // ignore `.B`, ignore `.X`
/* MASK */ (1 << 3) - 1, // ignore `.B`, ignore `.X`
/* BOUND */ (1 << 4) - 1 // ignore `.X`
};
id_rm &= (is_reg ? mask_rm[def_rm] : 0xFF);
Expand Down

0 comments on commit 4756724

Please sign in to comment.