All Exams Test series for 1 year @ ₹349 only
Question

In the 8085 microprocessor, what does the instruction PCHL do?

The correct answer is

Loads the PC with HL

The PCHL instruction of the 8085 microprocessor performs the register-transfer operation:

PC ← HL — that is, it loads the Program Counter with the contents of the HL register pair.

Because the Program Counter holds the address of the next instruction to be fetched, overwriting it with the 16-bit value in HL forces execution to jump to that address. Key points:

  • It behaves as an unconditional register-indirect jump: the high byte H goes to the upper half of the PC and the low byte L to the lower half.
  • It is a compact 1-byte instruction requiring no operand, and it does not affect any status flags.
  • Because the destination address is computed at run-time in HL, PCHL is ideal for jump tables, computed GOTOs, and returning to a dynamically calculated address.

The reverse operation — loading HL with the PC — is not what PCHL does; the mnemonic order (PC then HL) reflects the destination-then-source direction PC ← HL. Popping the PC from the stack is the job of RET (and conditional returns), while pushing the PC onto the stack is done by CALL instructions; PCHL involves the stack in no way at all.

Was this answer helpful?

Similar Questions

  1. In the 8085 microprocessor, what operation is performed by the instruction SUI 20H?

  2. In the 8085 microprocessor, what will be the value of the Program Counter after execution of the instruction RST 3?

  3. What is the function of the INTA’ signal in the 8085 microprocessor?

  4. What does the instruction ORA B do in 8085?

  5. Which instruction is used to return from a subroutine in 8085?


Important Questions from Instruction Set of 8085

  1. The technique of assigning a memory address to each I/O device in the computer system is called -

  2. In an 8085 microprocessor, the instruction CMP B has been executed while the contents of accumulator is less than that of register B. As a result, carry flag and zero flag will be respectively -

  3. A fetch cycle is the

  4. Determine the contents of accumulator if the instruction RAL is executed twice. Assume the contents of accumulator is AAH and CY = 0.

  5. Calculate the time required to execute the entire instruction cycle if two machine codes, 0011 1110 and 0011 0010, are stored in memory locations 2000H and 2001H, respectively.

    If the clock frequency is 2 MHz, the first machine code represents opcode to load data byte in the accumulator and the second code represents data to be loaded in the accumulator.

Need Expert Advice?
Test Series
RRB JE img
Railways
RRB JE Prev. Yr. Paper (CBT 1 + CBT 2) Test Series
290 Tests 5 Tests Free
4474 Attempts
4.3(88)
English

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App