If a ‘1’ is encountered when operand is scanned by BSF, then
A. zero flag is reset
B. zero flag is set
C. VM flag is set
D. RF flag is reset
Answer:A
If a ‘1’ is encountered when operand is scanned by BSF, then
A. zero flag is reset B. zero flag is set C. VM flag is set D. RF flag is reset
Explanation: The BSF instruction scans the operand from right to left. If a ‘1’ is encountered during the scan, zero flag is set, and the bit position of ‘1’ is stored into the destination operand.