执行如下指令后,标志寄存器中各状态位之值。
(1)MOVAX,34C5H
ADDAX,546AH
(2)MOVAX,E453H
ADDAX,C572H
【正确答案】:(1) MOV AX,34C5H ADD AX,546AH 0011010011000101 +)0101010001101010 __________________________ 1000100100101111 显然,CF=0,SF=1,ZF=0 AF是D3cy(D3向D4有无进位),AF=0; OF=D15cy+D16cy=1+0=1 PF是指低8位中“1”的个数,本题中为5个“1”,PF=0 (2) MOV AX,E453H ADD AX,C572H 1110010001010011 +)1100010101110010 _____________________ 11010100111000101 得:CF=1,SF=1,ZF=0 AF=0,OF=0,PF=1