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

Find the maximum radiation intensity, Q. An antenna has beam widths of 3° a...

Q. An antenna has beam widths of 3° and 10° in orthogonal planes and has a radiation ef?ciency factor of 0.6. Find the maximum radiation inten- sity if 1 kW is applied to the anten

Show frequency response using pspice and probe, Q. Show Frequency response ...

Q. Show Frequency response using pspice and probe? PSpice is capable of performing transient circuit analysis, for which the request is given by the following statement: • T

Define resistance strain gauge, Q. Define Resistance Strain Gauge? Mech...

Q. Define Resistance Strain Gauge? Mechanical and civil engineers routinely employ the dependence of resistance on the physical dimensions of a conductor to measure strain. A s

Dc machines, commutator in d.c machine acts as... what????

commutator in d.c machine acts as... what????

Construction - unijunction transistor, Construction - UniJunction Transisto...

Construction - UniJunction Transistor: Construction: The basic structure of uni junction transistor is shown in fig. (a). It essentially consists of a lightly doped N type s

Draw the energy diagram of a pn junction, Question: a). Draw the energy...

Question: a). Draw the energy diagram of a pn junction: (i) at thermal equilibrium, (ii) when a forward bias with magnitude half the built in potential (V = φk/2) is applie

Explain the application of clippers, Q. Explain the application of clippers...

Q. Explain the application of clippers. There are numerous clipper applications. In general clippers are used to perform one of the following two functions: · Changing the s

Basis vectors, • Vectors can be represented in terms of basis vectors, a se...

• Vectors can be represented in terms of basis vectors, a set of vectors that span the vector space • Mostly will use i, j, k to denote a Cartesian right-handed basis set • V

Calculate the membrane areas, In a 3-stage continuous ultrafiltration proce...

In a 3-stage continuous ultrafiltration process, a solution is concentrated from 5 gm/Liter to 50 gm/Liter of protein. The final retentate is to have a flow rate of 1000 L/hr. The

Determine the rectified load voltage, Consider the circuit of Figure (a) wi...

Consider the circuit of Figure (a) with v S (t) = 10 cos ωt. Use the piecewise-linear model of the diode with a threshold voltage of 0.6 V and a forward resistance of 0.5  to dete

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