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

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

The correct answer is

Subtracts 20H from the accumulator

The 8085 microprocessor provides a family of arithmetic instructions that operate on the accumulator (register A). Within this family, the mnemonic suffix distinguishes the exact operation: instructions ending in I use an immediate operand (a constant supplied in the instruction itself), while variants with a B involve the borrow/carry flag.

  • SUI data stands for Subtract Immediate from Accumulator. It performs A ← A − data, subtracting the 8-bit immediate value directly from the accumulator, and it does not include any borrow.
  • Therefore SUI 20H computes A ← A − 20H. If A initially holds, say, 50H, then after this instruction A = 30H. The result is stored back in A, and the flags (Sign, Zero, Carry, Auxiliary Carry, Parity) are updated according to the outcome; a borrow sets the Carry flag.

Hence the correct description is that it subtracts 20H from the accumulator. The other options confuse SUI with related mnemonics. Subtracting with borrow describes SBI (A ← A − data − CY), which additionally deducts the carry flag. Adding 20H would be the job of ADI (A ← A + data). Comparing 20H with the accumulator is done by CPI, which performs the subtraction internally only to set flags but leaves A unchanged. SUI, by contrast, actually alters the accumulator and involves no borrow.

Was this answer helpful?

Similar Questions

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

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

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

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

  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