Worksheets221 - Quiz07
Total questions: 11
Worksheet time: 8mins
Is it possible for the INC instruction to set the Carry flag?
yes
no
The following instructions will set the Overflow flag:
no
yes
If AL contains +127 and you add 3 to AL, the Overflow flag
no
yes
Suppose BX and DX contain positive integers. If adding them produces a negative result, the Overflow flag will be set
no
yes
The Overflow flag will never be set when adding a positive integer to a negative integer
no
yes
Which instructions will increment val2?
add 1, val2
inc 1, val2
inc val2
add val2, 1
If val4 is incremented by 1 using the ADD instruction, what will be the values of the Over- flow and Sign flags?
SF=0 OF=0
SF=0 OF=1
SF=1 OF=0
SF=1 OF=1
Where indicated, values of the Carry, Sign, Zero, and Overflow flags after the instruction has executed:
CF = 1 SF = 1 ZF = 0 OF = 1
CF = 0 SF = 1 ZF = 0 OF = 0
CF = 0 SF = 1 ZF = 0 OF = 1
CF = 1 SF = 0 ZF = 1 OF = 0
Where indicated, values of the Carry, Sign, Zero, and Overflow flags after the instruction has executed:
CF = 1 SF = 1 ZF = 0 OF = 1
CF = 0 SF = 1 ZF = 0 OF = 0
CF = 0 SF = 1 ZF = 0 OF = 1
CF = 1 SF = 0 ZF = 1 OF = 0
Where indicated, values of the Carry, Sign, Zero, and Overflow flags after the instruction has executed:
CF = 1 SF= 0 ZF = 1 OF = 0
CF = 0 SF = 1 ZF = 0OF = 1
CF = 1 SF = 1 ZF = 0 OF = 1
CF = 0 SF = 1 ZF = 0 OF = 0
Is it possible for the NEG instruction to set the Overflow flag
no
yes
