加法指令,因S存在,更新条件位 NZCV flags。
Add (immediate), setting flags, adds a register value and an optionally-shifted immediate value, and writes the result to the destination register. It updates the condition flags based on the result.
Add(立即数),设置标志,添加寄存器值和可选移位的立即值,并将结果写入目标寄存器。它根据结果更新条件标志。
32-bit variant
Applies when sf == 0.
ADDS <Wd>, <Wn|WSP>, #<imm>{, <shift>}
64-bit variant
Applies when sf == 1.
ADDS <Xd>, <Xn|SP>, #<imm>{, <shift>}
403e90: f94012a0 ldr x0, [x21, #32] // x21=0x43c870, x0=[0x43c890]=width
403e94: b8796801 ldr w1, [x0, x25] // w1=width[lvl]
403e98: 3100043a adds w26, w1, #0x1 // i=w26=width[lvl]+1
403e9c: 540000a0 b.eq 403eb0 <ferror@plt+0x1fd0> // b.none, eq->z=1, ne->z=0