检测点11.2
写出下面每条指令执行后,ZF PF SF CF OF等标志位的值。
CF OF SF ZF PF
sub al,al 0 0 0 0 1
;00000000
mov al,10H 0 0 0 0 1
;0001000
add al,90H 0 0 1 0 1
0001000
1001000
= 1010000
mov al,80H 0 0 1 0 1
;10000000
add al,80H 1 1 0 1 1
10000000
10000000
= 100000000
mov al,0FCH 1 1 0 1 1
11111100
add al,05H 1 0 0 0 0
11111100=-4
00000101=5
= 100000001
mov al,7DH 1 0 0 0 0
01111101
add al,0BH 0 1 1 0 1
01111101=125
00001011=11
= 10001000
debug跟踪,结果可以得到验证,如下图。mov,push,pop等数据传输指令对于ZF PF SF CF OF没有影响