Instructions like LDS and LES belong to which type of instructions given in options?
Micron technical mcq question, verified with a worked answer. Free to practise - no sign-up.
Instructions like LDS and LES belong to which type of instructions given in options?
Show answer & explanation
LDS (Load Segment) and LES (Load Segment Register) are both x86 assembly instructions used to load a far pointer (segment:offset pair) into a register and a segment register, respectively. Their primary purpose is transferring data from memory into registers, making them data transfer instructions. The other categories are incorrect: processor control instructions manage CPU state (CLI, STI), logic instructions perform bitwise operations (AND, OR, XOR), and loop control instructions manage loops (LOOP, LOOPZ).
Step-by-step Derivation:
LDS reg, mem64 – Loads a far pointer from memory into a general-purpose register and the DS segment register. LES reg, mem64 – Loads a far pointer from memory into a general-purpose register and the ES segment register. Both follow the pattern of MOV, PUSH, POP, etc., which are classified as data transfer instructions because they move data between registers, memory, and segment registers without modifying the data itself.