ch2-flags

ch2-flags - 8086 flags: condition and control EE 3750...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
8086 flags: condition and control EE 3750 2 Condition flags CF (carry flag) — addition sets flag if carry out of MSB generate; subtraction sets flag if borrow needed. PF (parity flag) — set to 1 if low-order 8 bits (low order byte) contain even number of 1’s (that is, gives odd parity) AF (auxiliary carry flag) — set if carry out of bit 3 during addition or borrow by bit 3 during subtraction. Used exclusively for BCD arithmetic. ZF (zero flag) — set to 1 if result is 0; to 0 if result is nonzero SF (sign flag) — equal to MSB of result OF (overflow flag) — set if overflow occurs (that is, if carry in to MSB is not equal to carry out from MSB)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
3 Example CF (carry flag) — carry out of MSB PF (parity flag) — set to 1 if low- order 8 bits (low order byte) contain even number of 1’s AF (auxiliary carry flag) —carry out of bit 3 ZF (zero flag) — set to 1 if result is 0; to 0 if result is nonzero SF (sign flag) —MSB of result
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

ch2-flags - 8086 flags: condition and control EE 3750...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online