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 equation of the circle concentric, 1. Find the slope and the y-int...

1. Find the slope and the y-intercept of the line whose equation is 5x + 6y = 7. 2. Find the equation of the line that is parallel to 2x + 5y = 7 and passes through the midpoint

Allocative efficiency, Allocative Efficiency: A neoclassical concept refer...

Allocative Efficiency: A neoclassical concept referring to allocation of productive resources (labour, capital, etc.) in a manner that best maximizes well-being (or 'utility') of

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.

Find the resistance of 1 km of copper cable, Find the resistance of 1 km o...

Find the resistance of 1 km of copper cable having a diameter of 10 mm if the resistivity of copper is 0.017 x 10 -6 Ωm.

Magnetic permeability and the definition of the amp, The ampere has been de...

The ampere has been defined (by the International Committee of Weights and Measures in 1946) as the current flowing in two long parallel wires 1 metre apart that produces a force o

Compute the fourier transform, Compute the Fourier Transform of the followi...

Compute the Fourier Transform of the following function: f(x) = exp( - x 2 /(2σ 2 )) cos (2πx/k) where σ and k are constants. What is the minimum sampling rate required

Determine ripple factor of half wave rectifier, Illustrate VI Characteristi...

Illustrate VI Characteristics of PN junction diode (10) Illustrate Half Wave Rectifier. Disadvantage of Half Wave Rectifier. Determine ripple factor of Half Wave Rectifier.

Explain about concentrator expande, In second technique, a concentrator exp...

In second technique, a concentrator expander (CE) is used near cluster of users and another one at exchange end as demonstrated in figure. Only a few junction lines are run between

Explain super scalar architecture, Explain super scalar architecture. ...

Explain super scalar architecture. The Pentium microprocessor is organized along with three execution units. Single is executes floating-point instructions, and another two (U

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