I would like to convert an instruction like:
lea ecx, [esp+150h+var_13E+2]
lea ecx, [esp+14h]
I know it's possible to do this with the key K. But I'm writing an IDAPython plugin that needs an automatic conversion of instructions like the one above.

Edit: Are there any idaapi functions to do this?

1 Answer 1

idaapi.op_seg(idc.get_screen_ea(), -1)
idaapi.op_stkvar(idc.get_screen_ea(), -1)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.