Common instruction parsing of ARM assembly under Linux

Source: Internet
Author: User

1. Ldr and STR:

(1) Ldr as an instruction, called a register loading instruction. Loads the in-memory value into the register.

(2) Ldr, as a pseudo-instruction, implements a 32-bit constant or address value to be loaded into the register. A constant or address value label that is loaded after must have a "=" before the compiler replaces the pseudo-directive with the instruction implementation.

(3) Str saves the value in the register to the memory unit.

2. A long pseudo-operation that assigns a value to the inner deposit element.

Start:virable:. Long start 

As above, indicates that the value represented by start is stored in the memory represented by Virable.

Virable:. Long 0x66666666

As above, the 0x66666666 is stored in the memory unit where the virable resides.

3. ADR and ADRL:

Pseudo-instruction to load an address into the register. ADR small range address read instruction that reads the address value based on the relative offset of the PC into the register.

ADRL Medium range Address read instruction.

4. B and BL:

Pseudo-directives, which implement relative jumps based on PC values, and B are used for jumps that do not return. BL is generally used for subroutine jumps, that is, the last program is called by the Mov pc,lr return to the point.

Common instruction parsing of ARM assembly under Linux

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.