assemble
summary: implement assembly of instructions
- description:
We add support for assembling the following pseudo instructions:
“zero eax” -> xor eax, eax
“nothing” -> nop
level: intermediate
Attributes
Classes
Module Contents
- class assemble.assemble_idp_hook_t(_flags: int = 0, _hkcb_flags: int = 1)
Bases:
ida_idp.IDP_Hooks- ev_assemble(ea, cs, ip, use32, line)
Assemble an instruction. (display a warning if an error occurs).
- Parameters:
ea – (::ea_t) linear address of instruction
cs – (::ea_t) cs of instruction
ip – (::ea_t) ip of instruction
use32 – (bool) is 32-bit segment?
line – (const char *) line to assemble
- Returns:
size of the instruction in bytes
- assemble.idp_hook_stat = 'un'