Sub subtract instruction, Electrical Engineering

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.

Posted Date: 4/4/2013 7:06:46 AM | Location : United States







Related Discussions:- Sub subtract instruction, Assignment Help, Ask Question on Sub subtract instruction, Get Answer, Expert's Help, Sub subtract instruction Discussions

Write discussion on Sub subtract instruction
Your posts are moderated
Related Questions
Q. A three-phase load, connected to a 440-V bus, draws 120 kWat a power factor of 0.85 lagging. In parallel with this load is a three-phase capacitor bank that is rated 50 kVAR . D

Q. A practical current source is represented by an ideal current source of 200 mA along with a shunt internal source resistance of 12 k. Determine the percentage drop in load curr

Q. What do you mean by Resistance? An ideal resistor is a circuit element with the property that the current through it is linearly proportional to the potential difference acr

Suppose we have a coil wound onto a ring of material with relative permeability µ r . Provided that the relative permeability µ r  >> 1, then the magnetic flux lines will s

Give the names of four alloys along with their composition, which are used for making heater and thermocouple elements. Constantan or Eureka {(55 to 60 percent) Cu, (45 to 40 p

Explain Extrinsic Semiconductor. Extrinsic Semiconductor: An intrinsic semiconductor is able to conduct some current even at room temperature but as this is not helpful for t

Q. Determine the voltages V x using voltage division and equivalent resistor reductions for the circuits shown in Figure.

Give the examples of sinusoidal with two equations?

Cellular telecommunication sector - Software Defined Radio As of now, every cell phone transmits and receives information through a speci?c standard. If we have to change the s

Q. Give an account on the operation of the R-C coupled amplifie r. When a.c. signal is applied to the base of the first transistor, it appears in the amplified form across its c