目录
cpl R
Z
1 2
R = ~R Z = R ? 0 : 1
将寄存器R反转,结果存回到寄存器R;
1 2 3 4
//Z = 0 set 0xB0 //[0xB0] = 0xff cpl 0xB0 //[0xB0] = 0x00, Z = 1 cpl 0xB0 //[0xB0] = 0xff, Z = 0
cpl A, R
A = ~R Z = A ? 0 : 1
将寄存器R反转,结果存储到累加器A;
1 2 3
//Z = 0 set 0xB5 //[0xB5] = 0x55 cpl A, 0xB5 //A = 0xAA