加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

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

发布时间:2020-12-14 02:53:36 所属栏目:大数据 来源:网络整理
导读:逻辑指令集有: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 fl

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



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

ORR

Logical OR operation.

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




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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读