ARM base instruction -- cinc

Conditional Increment returns, in the destination register, the value of the source register incremented by 1 if the condition is TRUE, and otherwise returns the value of the source register.

如果条件为TRUE,则条件增量在目标寄存器中返回源寄存器的值加1,否则返回源寄存器。

32-bit variant

Applies when sf == 0.

CINC <Wd>, <Wn>, <cond>

64-bit variant

Applies when sf == 1.

CINC <Xd>, <Xn>, <cond>

Decode for all variants of this encoding

integer d = UInt(Rd);

integer n = UInt(Rn);

integer datasize = if sf == '1' then 64 else 32;

Operation

bits(datasize) result;

bits(datasize) operand1 = X[n];

if ConditionHolds(cond) then

result = operand1 + 1;

else

result = operand1;

X[d] = result;

404288: 710002ff cmp w23, #0x0 // w23=0

40428c: aa1b03fc mov x28, x27 // x28=x27=walk->next

404290: 110006f7 add w23, w23, #0x1 // w23=w23+1 count++

404294: 1a94069b cinc w27, w20, ne // w27=0, w20=0; if ConditionHolds(cond) then w27=w20+1=1

404298: 17ffffd2 b 4041e0 <ferror@plt+0x2300>

相关推荐
手打猪大屁4 天前
ARM裸机开发——I.MX6U_汇编LED灯驱动
汇编·arm开发
zhmc5 天前
Keil A51汇编伪指令
汇编
攻城狮7号5 天前
【第48节】探究汇编使用特性:从基础到混合编程
汇编·c++·windows
打工人你好11 天前
Visual Studio Code 在.S汇编文件中添加调试断点及功能简介
汇编·ide·vscode
红白小蛋糕12 天前
《操作系统真象还原》第八章(1)——内存管理系统
汇编·笔记·ubuntu
tjsoft13 天前
asm汇编源代码之按键处理相关函数
汇编
tjsoft14 天前
asm汇编源代码之-汉字点阵字库显示程序源代码下载
汇编
AntHub14 天前
汇编获取二进制
汇编
tjsoft15 天前
asm汇编字符串操作
linux·运维·汇编
tjsoft15 天前
asm汇编源代码之CPU型号检测
汇编