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

Calculate arithmetic mean, a) Get the best linear relationship in accordanc...

a) Get the best linear relationship in accordance with least square analysis for the following data:- X 0.9 2.3 3.3 4.5 5.7 6.7 Y 1.1 1.6 2.6 3.2 4.0 5.0 b) The table belo

Explain standard set of procedure used in completing a call, Q. Explain Sta...

Q. Explain Standard set of procedure used in Completing a call? Completing a local telephone call between two subscribers linked to the same telephone switch is accomplished th

Construction and operation of jet, Construction and operation of jet: ...

Construction and operation of jet: jet is a three terminal device one terminal capable of controlling the current between the other two. Basic construction of an n chann

Spectrum analyzer, Problem statement: A specialized piece of laboratory te...

Problem statement: A specialized piece of laboratory test equipment, called a spectrum analyzer,will be placed on a mobile push cart. The spectrum analyzer measures the amplitude

Illustrate the principle of alignment, Q. Illustrate the principle of align...

Q. Illustrate the principle of alignment? Pieces of highly permeablematerial, such as iron, situated in ambientmediumof lowpermeability, such as air, in which a magnetic field

Problem of current electricity, charges of +2q and -4q are fixed a distance...

charges of +2q and -4q are fixed a distance d apart as in figure_2(a).find electric field at the point A ,B and C (b) sketch roughly the electric field lines.

Personal and corporate income tax rate, Ginny Jones currently works as the ...

Ginny Jones currently works as the VP-Product Strategy for a well-established enterprise software company. She and her friend, Tom Robinson, currently CFO at a competing firm (and

Explain lithography, Explain Lithography. Lithography - This is one ...

Explain Lithography. Lithography - This is one of the processes which is carried out throughout manufacture of integrated circuits. Silica oxide (SiO 2 ) layer is thermally

Cdma transmission model, The RAKE receiver exploits multipath channel chara...

The RAKE receiver exploits multipath channel characteristics and scrambling codes with good cross-correlation properties to realize a maximum ratio diversity combiner. Multipath pr

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