diff options
Diffstat (limited to 'src/arch/artificial.c')
-rw-r--r-- | src/arch/artificial.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/artificial.c b/src/arch/artificial.c index 65d917e..e588a4e 100644 --- a/src/arch/artificial.c +++ b/src/arch/artificial.c @@ -139,10 +139,13 @@ GArchInstruction *g_db_instruction_new_from_data(const bin_t *data, off_t *pos, result = g_object_new(G_TYPE_DB_INSTRUCTION, NULL); - operand = g_imm_operand_new_from_data(MDS_8_BITS, data, pos, len, + operand = g_imm_operand_new_from_data(g_arch_processor_get_instruction_size(proc), + data, pos, len, g_arch_processor_get_endianness(proc)); if (operand == NULL) goto gdinfd_error; + g_imm_operand_pad(G_IMM_OPERAND(operand), true); + g_arch_instruction_attach_extra_operand(result, operand); return result; |