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

Working principle of an electronic voltmeter, Q.   Explain the working prin...

Q.   Explain the working principle of an electronic voltmeter. Sol. Electronic voltmeter Basic Voltmeter: The addition of a series resistor, or multiplier, converts the

Write a note on feedback of emitter follower, Q. Write a note on feedback o...

Q. Write a note on feedback of emitter follower? The emitter follower can be seen to be an example of negative feedback when the relationship is put in the form

Design an integrator, Q. An integrator as shown in Figure is to be designed...

Q. An integrator as shown in Figure is to be designed to solve dy(t) / dt + 2000y (t) = 0 with y(0) = 5. If R i is chosen to be 10 k, find C f .

Difference between object oriented and object based language, Object based ...

Object based languages don't support Inheritance where as object oriented supports. C# is a object oriented language due to it supports inheritance and asp.net is not a language it

Describe the physical properties and uses of the brasses, Describe the phys...

Describe the physical properties and uses of the Brasses. Brass - It is an alloy of copper and zinc along with 60 percent copper and 40 percent zinc. Its properties are- 1.

Calculate the saturation current of the diode, Q. A silicon diode is forwar...

Q. A silicon diode is forward-biased with V = 0.5 V at a temperature of 293 K. If the diode current is 10 mA, calculate the saturation current of the diode.

Write notes on clamping, Q. Write notes on clamping ? Clamping network ...

Q. Write notes on clamping ? Clamping network shifts (clamps) a signal to a different d.c level, that is it introduces a d.c. level to an a.c signal. Hence, the clamping networ

Measurement, Why delay circuit used in CRO?

Why delay circuit used in CRO?

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