rsubc¶
rsubc R, A¶
指令格式¶
rsubc R, A
影响标志¶
C
AC
Z
OV
伪指令¶
bit T, H
bit[4] L4
bit[3] H3
bit[8] X
X = ((~R) + C)[7:0]
{AC, L4} = A[3:0] + X[3:0]
{T, H3} = A[6:4] + X[6:4] + AC
{C, H} = A[7] + X[7] + T
OV = C ^ T
R = {H, H3, L4}
Z = R ? 0 : 1
指令描述¶
寄存器R和累加器A带借位反向减法,结果存储到寄存器R;
注意:按照伪指令的算法,减法C
标志在有借位时为0
,无借位时为1
;