Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a NOP instruction for iPhone ARM binaries?

Tags:

iphone

arm

The NOP opcode for x86/x86_64 is 0x90, but which is the analog on the iPhone with the ARM instruction set?

like image 848
Julian Avatar asked Dec 09 '09 17:12

Julian


People also ask

What is NOP in ARM?

Usage. NOP does nothing. If NOP is not implemented as a specific instruction on your target architecture, the assembler treats it as a pseudo-instruction and generates an alternative instruction that does nothing, such as MOV r0, r0 (ARM) or MOV r8, r8 (Thumb). NOP is not necessarily a time-consuming NOP .

What is ARM instruction set?

The ARM instruction sets. The ARMv7 architecture is a 32-bit processor architecture. It is also a load/store architecture, meaning that data-processing instructions operate only on values in general purpose registers. Only load and store instructions access memory.

What is ARM assembly language?

Assembly language is a low-level programming language for a computer or other programmable device that is closest to the machine language. It is often specific to a particular computer architecture so there are multiple types of assembly languages. ARM is an increasingly popular assembly language.


1 Answers

I would like to add that non-conditional NOP for armv7 is 0xE320F000.

Note that if you are going to patch a file you will need to write bytes in reverse order (little endian) - 00 F0 20 E3

like image 76
n0p Avatar answered Sep 18 '22 13:09

n0p