State the final flag's value (CF, PF, AF, ZF & SF) for the operation given below. Explain the reason.
MOV AH, 9CH
MOV AL, 64H
ADD AH, AL
9C16 = 1001 11002
6416 = 0110 01002
AH + AL--> AH
AH = 9C16+6416 = 1 0000 00002 (number 1 is not included because the register size is only 8 bit,therefore the AH final value is 0016)
CF = 1 (got carry from D7)
PF = 1 (the number of 1 is even)
AF = 1 (got carry from D3 to D4)
ZF = 1 (because the final value is zero
SF = 0 (because the value at D15 is zero)
My first 3 month in microstock photography - Well, maybe not exactly the first 3 month... as i already have an approved shutterstock account since 2008, but never really try to upload something sale-a...
6 years ago