fix typo which led to bug with opreg decoding

This commit is contained in:
mykola2312 2024-08-19 01:32:50 +03:00
parent eb4b5767ee
commit 4ae333513e
2 changed files with 2 additions and 3 deletions

View file

@ -100,7 +100,7 @@ static const instruction_t* find_instruction(const uint8_t* cur, unsigned type,
continue;
}
if (ins->config.has_modrm)
if (ins->config.has_opreg)
{
// instruction encoding employs register embedded into last opcode byte
// so we need to apply bit mask

View file

@ -3,8 +3,7 @@
.globl test_1_end
test_1:
lock
mov %gs:(%rbx), %rax
push %rbp
nop # target that rtdisasm must reach
test_1_end: