English 中文(简体)
How to create a NOP instruction for iPhone ARM binaries?
原标题:
  • 时间:2009-12-09 17:25:38
  •  标签:
  • iphone
  • arm

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

问题回答

MOV r0, r0 is traditionally used in ARM code, which has the opcode 0xe1a00000; MOV r8, r8 is used in THUMB code (opcode 0x46c0)

ARMv7 has an actual NOP instruction, with the following encodings:

    0xbf00  2 byte thumb2 form
0xf3af8000  4 byte thumb2 form
0x*320f000  4 byte arm form

When targeting earlier versions of the architecture, assemblers translate NOP into the MOV instructions that moonshadow listed.

You shouldn t need to use the actual opcodes, as the development tools understand NOP.

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





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签