Return "db" when more convenient for the moment
This commit is contained in:
parent
91ecd5ab54
commit
41e423407f
@ -40,10 +40,18 @@ static int _i386_decode(ArchPlugin * plugin, ArchInstructionCall * call)
|
|||||||
if(helper->read(helper->arch, &opcode, sizeof(opcode))
|
if(helper->read(helper->arch, &opcode, sizeof(opcode))
|
||||||
!= sizeof(opcode))
|
!= sizeof(opcode))
|
||||||
return -1;
|
return -1;
|
||||||
|
call->operands[0].type = AOT_NONE;
|
||||||
|
call->operands[1].type = AOT_NONE;
|
||||||
|
call->operands[2].type = AOT_NONE;
|
||||||
if((ai = helper->get_instruction_by_opcode(helper->arch, 8, opcode))
|
if((ai = helper->get_instruction_by_opcode(helper->arch, 8, opcode))
|
||||||
== NULL)
|
== NULL)
|
||||||
/* FIXME return "db" instead */
|
{
|
||||||
return -1;
|
/* FIXME check if it's a longer instruction */
|
||||||
|
call->name = "db";
|
||||||
|
call->operands[0].type = AO_IMMEDIATE(0, 0, 8);
|
||||||
|
call->operands[0].value.immediate.value = opcode;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
call->name = ai->name;
|
call->name = ai->name;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user