You are on page 1of 2

Examples of Flag Register

Lecture (3)
Flag Register Examples
Example 1: What is the content of 8086/8088 flag register after execution the
following addition: BC h + DE h

• If X=0 then the contents of flag register= 1001 0101 = 95


• If X=1 then the contents of flag register= 1011 1111 = BF
Sol:

1|Page
Examples of Flag Register
Lecture (3)
Example 2: What is the state of an arithmetic operation result if the contents of
flag register is : 2B
Sol:

2|Page

You might also like