OA. free
Free
Qualcomm Embedded Systems & Hardware Embedded Systems & Hardware Medium

Instructions like STD, STC and CLC belong to which type of instructions given in options?

Qualcomm technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Instructions like STD, STC and CLC belong to which type of instructions given in options?

Choose one option.
Show answer & explanation
Answer: C. Processor control instructions

STD (Set Direction flag), STC (Set Carry flag), and CLC (Clear Carry flag) are all processor control instructions that manipulate CPU flags or control the processor's internal state. These instructions directly affect the status register (flags) and processor behavior, rather than transferring data, performing logic operations, or controlling loops.

Step-by-step Derivation:
Instruction classification in 8086/x86 assembly:

  1. STD - Sets the Direction Flag (DF = 1). Controls string operation direction.
  2. STC - Sets the Carry Flag (CF = 1). Sets a processor status flag.
  3. CLC - Clears the Carry Flag (CF = 0). Clears a processor status flag.

All three instructions manipulate CPU status flags or internal processor state, making them Processor Control Instructions.

Why not the others:

  • Logic instructions (A): AND, OR, XOR, NOT — perform bitwise operations on data
  • Data transfer instructions (B): MOV, PUSH, POP — move data between registers/memory
  • Loop control instructions (D): LOOP, LOOPE, LOOPNE — control iteration and branching

STD, STC, and CLC directly control processor behavior and flags, fitting the definition of processor control instructions.