AX=AA55H,BX=55AAH
AX = 1010 1010 0101 0101B
CMP AX,BX ;比较指令 不影响AX,BX
TEST AX 80H ;测试指令,不影响AX,BX
OR AX 80H
1010 1010 0101 0101
OR 0000 0000 1000 0000
______________________
1010 1010 1101 0101B = AX = AAD5H
AND AX,0FH
1010 1010 1101 0101B
AND 0000 0000 0000 1111B
________________________
0000 0000 0000 0101B AX = 0005H
XOR AX,0FH
0000 0000 0000 0101
XOR 0000 0000 0000 1111
_______________________
0000 0000 0000 1010B AX = 000AH
终上所述: AX = 000AH
PS:若有不明白的地方,可以追问
CMP AX,BX ;AX=aa55
TEST AX 80H ;ax = aa55
OR AX 80H ;ax =aad5
AND AX,0FH ;ax=0005
XOR AX,0FH ;ax=000a