Which one is true for LHLD instruction ? 

This question was previously asked in
NIELIT Scientific Assistant ECE 5 Dec 2021 Official Paper
View all NIELIT Scientific Assistant Papers >
  1. Two Byte Instruction
  2. Three Byte Instruction 
  3. One Byte Instruction
  4. Four Byte Instruction

Answer (Detailed Solution Below)

Option 2 : Three Byte Instruction 
Free
NIELIT Scientific Assistant Quantitative Aptitude Mock Test
0.5 K Users
20 Questions 20 Marks 30 Mins

Detailed Solution

Download Solution PDF

Explanation:

LHLD Instruction in Microprocessors

Definition: The LHLD (Load HL Pair Direct) instruction is used in microprocessor programming to load the contents of a specified memory location into the HL register pair. This instruction is part of the instruction set of the 8085 microprocessor, which is an 8-bit microprocessor.

Working Principle: When the LHLD instruction is executed, the microprocessor fetches the specified 16-bit address from the instruction and then loads the contents of the memory location at that address into the L register. Simultaneously, it loads the contents of the next consecutive memory location (address + 1) into the H register. This effectively loads the HL register pair with a 16-bit value from two consecutive memory locations.

Instruction Format: The LHLD instruction is a 3-byte instruction, where the first byte is the opcode for LHLD, and the next two bytes represent the 16-bit address from which the data is to be loaded. The instruction format can be illustrated as follows:

Opcode  | Address Low | Address High
-------------------------------------
LHLD    |   8-bit     |   8-bit

Correct Option Analysis:

The correct option is:

Option 2: Three Byte Instruction

This option correctly describes the LHLD instruction as a three-byte instruction. The first byte is the opcode, and the next two bytes represent the 16-bit address from which the data is to be loaded into the HL register pair.

Latest NIELIT Scientific Assistant Updates

Last updated on Feb 20, 2025

-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.

-> Online application form, last date has been extended up to from 17th April 2025.

->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.

 

-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).

Get Free Access Now
Hot Links: teen patti earning app teen patti game online teen patti stars