Instructions of 8085 Microprocessor · Microprocessors and Computer Organization
16 questions · asked in 12 of 26 years (2001–2026)
MCQ 15 · NAT 11-mark 13 · 2-mark 3
2001Questions per year2026
Questions 6–10 of 16
In an 8085 microprocessor, which one of the following instructions changes the content of the accumulator?
Answer: (D)
Check what each instruction does:
(A) MOV B,M copies the memory byte addressed by HL into register B. The accumulator is unchanged.
(B) PCHL loads the program counter from HL. The accumulator is unchanged.
(C) RNZ returns from a subroutine if the zero flag is 0, by popping the program counter from the stack. The accumulator is unchanged.
(D) SBI BEH subtracts the immediate byte BEH and the borrow (carry) flag from the accumulator: . This changes A.
Answer: (D)
(A) MOV B,M copies the memory byte addressed by HL into register B. The accumulator is unchanged.
(B) PCHL loads the program counter from HL. The accumulator is unchanged.
(C) RNZ returns from a subroutine if the zero flag is 0, by popping the program counter from the stack. The accumulator is unchanged.
(D) SBI BEH subtracts the immediate byte BEH and the borrow (carry) flag from the accumulator: . This changes A.
Answer: (D)
An 8085 microprocessor executes "STA 1234H" with starting address location 1FFEH (STA copies the contents of the Accumulator to the 16-bit address location). While the instruction is fetched and executed, the sequence of values written at the address pins is
Answer: (A)
The instruction STA 1234H is 3 bytes long and starts at 1FFEH:
It takes four machine cycles. The pins carry the high byte of the address used in each cycle:
1. Opcode fetch from 1FFEH:
2. Memory read of 34H from 1FFFH: 1FH
3. Memory read of 12H from 2000H: 20H
4. Memory write of the accumulator to 1234H: 12H
So the sequence on is . Options (B) and (D) have five values, but STA has only four machine cycles.
Answer: (A)
It takes four machine cycles. The pins carry the high byte of the address used in each cycle:
1. Opcode fetch from 1FFEH:
2. Memory read of 34H from 1FFFH: 1FH
3. Memory read of 12H from 2000H: 20H
4. Memory write of the accumulator to 1234H: 12H
So the sequence on is . Options (B) and (D) have five values, but STA has only four machine cycles.
Answer: (A)
An 8085 assembly language program is given below. Assume that the carry flag is initially unset. The content of the accumulator after the execution of the program is
Answer: (C)
Load the accumulator: MVI A,07H gives .
Execute the remaining instructions one by one. RLC rotates A left by one bit (bit 7 goes to bit 0 and to the carry), and RRC rotates A right by one bit.
So the accumulator holds 23H.
Answer: (C)
Execute the remaining instructions one by one. RLC rotates A left by one bit (bit 7 goes to bit 0 and to the carry), and RRC rotates A right by one bit.
So the accumulator holds 23H.
Answer: (C)
For the 8085 assembly language program given below, the content of the accumulator after the execution of the program is
Answer: (C)
So, when the program finishes, the accumulator holds 67H.
An 8085 executes the following instructions
2710 LXI H, 30A0 H
2713 DAD H
2414 PCHL
All address and constants are in Hex. Let PC be the contents of the program counter and HL be the contents of the HL register pair just after executing PCHL. Which of the following statements is correct ?
2710 LXI H, 30A0 H
2713 DAD H
2414 PCHL
All address and constants are in Hex. Let PC be the contents of the program counter and HL be the contents of the HL register pair just after executing PCHL. Which of the following statements is correct ?
Answer: (C)
Execute step by step:
PCHL copies HL into the program counter and leaves HL unchanged. So after PCHL, and . Option (D) has the right PC but HL = 2715H, which HL never takes.
Answer: (C)
PCHL copies HL into the program counter and leaves HL unchanged. So after PCHL, and . Option (D) has the right PC but HL = 2715H, which HL never takes.
Answer: (C)
Keep practising
Topics in Microprocessors and Computer Organization
Basics of 8085 Microprocessor
Instructions of 8085 MicroprocessorYou are here
Microprocessor 8085 ProgrammingMicroprocessor 8085 InterruptsInterfacing and Peripheral Devices