Personal Original, reprint please indicate source:Cnblogs.com/jailbreaker
[iOS Reverse combat] This series of posts, will be related to arm assembly, as well as debugging tool use, coupled with actual combat analysis step by step reverse, in layman's terms.
This is the first post, which briefly describes the functions of the various registers of arm.
R0-R3 : For the transfer of function parameters and return values
r4-r6, R8, R10-r11 : No special rules, general universal registers
R7 : Stack frame pointer (frame Pointer). The address on the stack that points to the previous saved stack frame (stack frame) and the link register (link register, LR).
R9 : Operating system reserved
R12 : Also called IP (Intra-procedure Scratch), to make it clear that a bit of ink, see http://blog.csdn.net/gooogleman/article/details/3529413
R13 : Also called SP (stack pointer), is the stack top pointer
R14 : Also called LR (link register), which stores the return address of the function.
R15 : Also called PC (program counter), pointing to the current instruction address.
CPSR : Current programs State Register, which stores flags such as condition flag interrupt disabled in user state.
in other System state interrupt state and other CPSR There is also a SPSR , not in detail here.
Reference: https://developer.apple.com/library/ios/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ Armv6functioncallingconventions.html
[iOS reverse combat one of]arm registers introduction