目录
inc R
Z
1 2
R = R + 1 Z = R ? 0 : 1
将寄存器R加1,结果存回到寄存器R
1 2 3
//Z = 1 clr 0xB1 //[0xB1] = 0x00 inc 0xB1 //[0xB1] = 0x01, Z = 0
inc A, R
A = R + 1 Z = A ? 0 : 1
将寄存器R加1,结果存储到累加器A;
//Z = 0 set 0xD4 //[0xD4] = 0xff inc A, 0xD4 //A = 0x00, Z = 1