ARM assembly instructions MCR/MRC learning

Publisher:SparklingDreamsLatest update time:2016-07-13 Source: eefocusKeywords:ARM  MCR  MRC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The MCR instruction transfers the ARM data register to the coprocessor register. If the coprocessor cannot successfully perform the operation, an undefined instruction abort will occur.

Grammar teaching format:

MCR{} p15, 0, , , {,}

MCR2 p15, 0, , , {,}

is the condition code for the instruction to run. When is ignored, the instruction runs unconditionally. In MCR2, is Ob1, and the instruction runs unconditionally.

 

  is the opcode of the operation that the coprocessor will perform.

For the CP15 coprocessor, is always 0b. When is not 0b, the result of the instruction operation is unpredictable.

  is an ARM register used as a meta-register. Its value is transferred to the coprocessor register.

 

  cannot be PC. When it is PC, the result of the instruction operation is unpredictable.

 

  is the coprocessor register used as the target register, which may be numbered C0, C1....C15.

is an additional target register or an original operand register. It is used to distinguish different physical registers with the same number. When no additional information is required in the instruction, C0 is specified as , otherwise the result of the instruction operation is unpredictable. provides additional information to distinguish different physical registers with the same number. When additional information is specified in the instruction, is omitted or specified as 0, otherwise the result of the instruction operation is unpredictable.

The MRC instruction transfers the value in the coprocessor register to the ARM processor register. If the coprocessor cannot successfully execute the operation, an undefined instruction exception interrupt will be generated.

 

The syntax format of the command is:

MRC{} p15, 0, , , {,}

MRC2 p15, 0, , , {,}

Keywords:ARM  MCR  MRC Reference address:ARM assembly instructions MCR/MRC learning

Previous article:Introduction to the main uses of ARM coprocessor and its instructions CDP LDC STC MCR MRC
Next article:ARM coprocessor operations mrc and mcr

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号