daf¶
daf A¶
指令格式¶
daf A
影响标志¶
C
AC
伪指令¶
1 2 3 4 5 6 7 8 | bit T bit[4] H4, L4 AC = (A[3:0] > 9 or AC == 1) ? 1 : 0 {T, L4} = AC ? A[3:0] + 6 : A[3:0] {T, H4} = A[7:4] + T C = ({T, H4} > 9 or C == 1) ? 1 : 0 H4 = C ? H4 + 6 : H4 A = {H4, L4} |
指令描述¶
对累加器A进行十进制调制,结果存回累加器A;
范例¶
1 2 3 4 | //0xE6的十进制调制 //C = 0, AC = 1, Z = 0, OV = 0 mov A, #0xE6 //A = 0xE6 daf A //A = 0x4C, C = 1, AC = 1, Z = 0, OV = 0 |