码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-12-09 23:13:26      阅读:378      评论:0      收藏:0      [点我收藏+]

标签:des   blog   http   io   ar   sp   java   strong   on   

逻辑指令集有: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




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

标签:des   blog   http   io   ar   sp   java   strong   on   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!