[iOS reverse combat one of]arm registers introduction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.