I am new with IDA assembler and i used to work with hopper app. the problem is i can't change instruction in IDA from something like CBNZ to NOP. is there any button to do this? i can't find anything on the internet and I have been searching for it all day. I have tried many options from the edit menu.
NOTE: I'm assuming you're using IDA 7.X, although this should work equally well for 6.X versions.
The option you're looking for is called
Patch Program. For your specific question, you'd do the following:
- Select the instruction you want to change
- Go to
Edit -> Patch Program -> Assemble
- Replace the instruction in the text box with the instruction you'd like it to be.
- Click OK
The original instruction will now have been replaced with the new one.
This article has more info and examples of using the other options in the
Patch Program submenu.