首页 > 其他 > 详细

【汇编指令】数据处理指令之逻辑指令

时间:2014-12-09 23:11:50      阅读:591      评论:0      收藏:0      [点我收藏+]

逻辑指令集有:AND/ORR/EOR/BIC

1)与逻辑指令一般用于置零某位:AND

AND

Logical AND operation.

Syntax   AND{cond}{S}  Rd, Rn, Op2
Description   Load Rd with logical AND of Rn with Op2. Rd := Rn AND Op2
Condition Flags   If S is specified, N, Z flags are updated. C flag may be updated by calculation of Op2.
Example  
       AND  R9,R2,#0xFF00     // Load R9 with R2 and value in 0xFF00

bubuko.com,布布扣


2)逻辑或指令:ORR(或逻辑一般用于某位的置 1 )

ORR

Logical OR operation.

Syntax   ORR{cond}{S}  Rd, Rn, Op2
Description   OR operations on the values in Rn and Op2.
Condition Flags   If S is specified, N, Z flags are updated. C flag may be updated by calculation of Op2.
Example  
      ORR     R2, R0, R5    // Rd = R0 or R5


bubuko.com,布布扣


3)比较指令:CMP  /    CMN    /TST   /   TEQ




【汇编指令】数据处理指令之逻辑指令

原文:http://blog.csdn.net/cj_kano/article/details/41828769

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!