Reflexil icon indicating copy to clipboard operation
Reflexil copied to clipboard

Cannot edit or add CALLI opcode (not supported operand type)

Open mkalex777 opened this issue 9 years ago • 2 comments

I'm trying to add calli opcode, but it uses operand type which is not supported by Reflexil. So, it's impossible to edit or add such opcode.

When I'm trying to edit calli opcode, the Reflexil shows "Operand type: [Not supported]", so I cannot edit it.

Here is screenshot: http://savepic.su/6942616.png

Image

Please fix it

mkalex777 avatar Dec 31 '15 13:12 mkalex777

Can you provide your assembly ? And yes this special opcode needs a 'Callsite', a specific operand not yet supported by Reflexil.

sailro avatar Dec 31 '15 16:12 sailro

you can get this instruction in assembly with ILASM. Just decompile assembly with ILDASM, add the following line into the body of some method and recompile it back with ILASM. Here is example of such opcode:

calli      unmanaged stdcall void(void*)

another example:

calli      unmanaged stdcall float32(int32,int32)

It will be great if you will add ability to edit opcode just with text editor instead of using comboboxes. It will significantly improve usability of Reflexil.

mkalex777 avatar Jan 04 '16 01:01 mkalex777