rsubc¶
rsubc R, A¶
指令格式¶
rsubc R, A
影响标志¶
C
AC
Z
OV
伪指令¶
1 2 3 4 5 6 7 8 9 10 11 | bit T, H bit[4] L4 bit[3] H3 bit[8] X X = ~R {AC, L4} = A[3:0] + X[3:0] + C {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 |
范例¶
1 2 3 4 5 6 | //0xB6 - 0x74 //C = 1, AC = 0, Z = 0, OV = 1 mov A, #0x74 //A = 0x74 mov 0xE2, A //[0xE2] = 0x74 mov A, #0xB6 //A = 0xB6 rsubc 0xE2, A //[0xE2] = 0x42, C = 1, AC = 1, Z = 0, OV = 1 |