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

Determine the current in the series circuit, Q. (a) Let a unit impulse of v...

Q. (a) Let a unit impulse of voltage v(t) = δ(t) be applied to a series combination of R = 20 and L = 10 mH. Determine the current i(t)in the series circuit. (b) Repeat (a) for

Give some applications of german silver, Give some applications of German s...

Give some applications of German silver. German silver is an alloy of zinc, nickel and copper. German silver is used in electrical measuring instruments.

Calculate the mechanical speed of rotar, Calculate the mechanical speed of ...

Calculate the mechanical speed of rotar: An asynchronous machine of 460V, 25hp, 4 poles with rotor wound in Y has the following data (of the side stator): Resistance of the

Explain time multiplexed space switching, Explain time multiplexed space sw...

Explain time multiplexed space switching? With a neat diagram illustrate its operation. Ans: Time division switches where an outlet or an inlet corresponded to a single s

Explain working of presentation layer, Q. Explain working of Presentation L...

Q. Explain working of Presentation Layer? This is concerned with format of the data represented, in order to overcome difference in representation of information as supplied to

Standard deviation of mean, For large number of measurements the mean is ca...

For large number of measurements the mean is calculated by taking a sample. Each sample that is taken has a mean. The mean of various sample difference from sample and are known to

Show effects of saliency and saturation, Q. Show Effects of Saliency and Sa...

Q. Show Effects of Saliency and Saturation? Because of saliency, the reactancemeasured at the terminals of a salient-pole synchronousmachine as opposed to a cylindrical-rotor m

Cma complement accumulator instruction, CMA Complement Accumulator  Instru...

CMA Complement Accumulator  Instruction Complement the  contents of the accumulator  i e the   accumulator  al once are converted zeros  and all zeros  are converted to  ones.

Ac motors, AC Motors DC motors that have their magnetic fields produce...

AC Motors DC motors that have their magnetic fields produced by coils as described earlier can, in principle,  be powered from AC as well, since if the applied voltage reverse

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