Aad and Daa Inst Set
Aad and Daa Inst Set
Aad and Daa Inst Set
BY
HAMSINI SHANKAR
INAYAT KAZI
RUSHIL TIKU
AAA- ASCII ADJUST AFTER ADDITION
FLAGS Affected
AF (Auxiliary Flag)
CF (Carry Flag)
The logic used behind the AAA instruction
If
low nibble of AL > 9 or AF=1
AL = AL + 6
AH = AH + 1
AF = 1
CF =1
Else
AF= 0
CF=0
EXAMPLE OF AAA INST.