30 May 2012

libemu

emu_cpu_parse()  ->  to get/read next instruction(disassemble at eip)
emu_cpu_step() -> /* call the function */ (simulate the instruction in libemu)

rujuk fail libemu/src/emu_cpu.c, baris 895:
int32_t emu_cpu_run(struct emu_cpu *c)
{
int steps=0;
while (emu_cpu_parse(c) == 0)
{
// printf("%s \n", c->instr_string);

if ( emu_cpu_step(c) != 0 )
break;

steps++;
}
// printf("%s \n", emu_strerror(c->emu));
return steps;
}

No comments:

Post a Comment

Terima kasih