Sub subtract instruction, Electrical Engineering

Assignment Help:

SUB Subtract Instruction

This  instruction  is used to  subtract the contents of any  register  or memory location from  the contents of  accumulator. There are two  formats as follows:

a.Subtract the contents of Register The  contents of  register R are subtracted  from the contents of accumulator and  result of operation is  stored in the accumulator. Here register R  may be any  one  of the A, B, C,D, E,H or L registers.

SUBR                   ( A- A - R)

Flags : All  flags  are modified according to the results.

As we have already  discussed in chapter 1 that the subtraction is done  using 2 s  complement  method in microprocessor.  Followings  steps are followed  by the  8085 microprocessor while performing  subtract operations.

 Step1.  Converts subtrahend ( the  number to  be subtracted) into its 1 s complement form.

 Steps2.  Adds 1 to  the 1 complements  form to  obtain 2  complement  form the  subtrahend.

 Step3.  Adds 2 complements  to the minuend ( the  contents of the accumulator).

 Step 4.  Complements  the carry  flag.


Related Discussions:- Sub subtract instruction

What is internal structure of 8086, 8086 is having 2 dissimilar units i.e. ...

8086 is having 2 dissimilar units i.e. BIU(Bus Interface Unit) and EU(Execution Unit), these two units work synchronously.

What are flip flop circuits in digital electronics, What are flip flop circ...

What are flip flop circuits in digital electronics? Discuss race around condition in J-K Flip Flop

Explain classification of energy band materials, With the help of energy ba...

With the help of energy bands explain how conduction takes place in conductors, semiconductors and insulators. On the basis of energy band materials are categorized as insulato

Show application of bistable multivibrator, Q. Show Application of bistable...

Q. Show Application of bistable multivibrator? · Bistable multivibrator is used as counters and storing of binary information. · It is used as frequency divider in timing ci

Which Transistor configuration best to use in cascade, Q. Which of the 3 tr...

Q. Which of the 3 transistor configuration is best to use in cascade if maximum voltage gain is to be realized?  The common collector configuration is not used for intermediate

Find the voltage across the 50-resistor, Q. Write and execute a PSpice prog...

Q. Write and execute a PSpice programto analyze the resistor bridge circuit shown in Figure to solve for the node voltages and the voltage-source current. Then find the voltage acr

Explain the operation of 8279, Explain the operation of 8279.  Explain the ...

Explain the operation of 8279.  Explain the following terms: (i)  N key Roll over. (ii)  Key board debounce. (iii)  FIFO RAM. Ans The 8279 microprocessor i

Bjt, what is compensation of bjt

what is compensation of bjt

Valence band- conduction band- valence electrons energy gap, Explain the te...

Explain the terms: valence band, conduction band, valence electrons, and energy gap with the help of suitable diagrams. Valence Electrons: The electrons in the outermost orbi

What are operations performed on data in 8085, What are operations performe...

What are operations performed on data in 8085 The various operations performed are Store 8-bit data Perform arithmetic and logical operations Test for conditio

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd