Arm instruction machine code and case analysis

Source: Internet
Author: User

First, the previous image is the same:


[28:31] cond:
Code of command execution Condition
[26:27]: Reserved
[25] X: determines whether to adopt "instant addressing (set to 1)" or "register addressing (set to 0 )"
[] Opcode: the encoding of operators (such as mov and LDR)
[20] s: the embodiment of the S Mark in the instruction, with S, the bit is 0, without s, is 1
[16: 19] rn: set to zero.
[] RD: the encoding of the target register. In ARM9. each mode has 16 General registers.
[0: 11] shifter-operand: the operand of the command (immediate number or register, etc)


Analyze machine code 0xfca0f001

Binary: 11111100101000001111000000000001

[31: 28]: 1111
[27:26]: 11
[25]: 0
[]: 0101
[20]: 0
[]: 0000
[]: 1111
[]: 000000000001

(To be continued)



Refer:

Http://blog.csdn.net/gooogleman/article/details/3758555

Http://sjdai.spaces.eepw.com.cn/articles/article/item/76690

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.