You can clone with
With current pylibemu, Is it possible to disassemble eip (to assembly)?
Currently not but if you're interested in such stuff I will take a look at libemu source code and wrap what you need.
Currently I use external tools to disassemble. But it would be appropriated to use libemu for that.
Hint from common:
2)cpu->instr_string is yours
unfortunately I cant comprehend :)
Hope you can add this method to class Emulator
emu.cpu_debugflag_set(1) must be called first followed by emu.cpu_parse() before calling get_instruction().
Disassemble current instruction
Issue #8: Disassemble EIP (solved)
Just committed a patch which does what you need.
The method is called cpu_get_current_instruction and can be called safely because it handles setting the debug flag and CPU parsing by itself. Please check if it works correctly for you too.
PS Sorry for the delay I added this method...
After experimenting with the cpu_get_current_instruction(), I would prefer a plain method, just return cpu->instr_string.
The debug flag and parsing should be call manually by the coder him self, as the code in sctestmain.c
I need this flexibility, because in my implementation, I will call cpu_parse() explicitly before call cpu_get_current_instruction().
Hope you dont mind.