Al - Status Flags
Al - Status Flags
Status Flags
Status Flags
Not all operations will change the value in the flag register.
Overflow flag
Bit 6 7 Bit 7 8
1 Carry No carry
2 No carry Carry
• Example:
876543210
• Example:
F 16
Mov al, 02
16
02 CF = 1
sub al, 04 - 04 there is a borrow
FE into
Parity flag
• This flag shows whether the number of bit 1 in the result of
an arithmetic operation is even or odd.