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

Properties of a semiconductor, Properties of a semiconductor: What pr...

Properties of a semiconductor: What properties of a semiconductor are determined from a Hall effect experiment ? Sol. The Hall Effect experiment is used to determine th

Calculate the bandwidth and input-output resistance, Using the LM741operati...

Using the LM741operational amplifier build a voltage amplifier with the voltage gain of  |A V | = 500 v/v ± = 20%. Measure all necessary parameters of the amplifier (as per deliver

Calomel electode, Explain the construction and working of Calomel electrode...

Explain the construction and working of Calomel electrode

Determine the doppler frequency, We are given an M=32 pulse sequence of slo...

We are given an M=32 pulse sequence of slow time data, collected with PRF = 10 kHz.  We want to use a Cooley-Tukey radix 2 FFT algorithms to compute the Doppler spectrum of the dat

State the advantages of expert systems, State the Advantages of expert syst...

State the Advantages of expert systems -  Never "forgets" to ask a question in determining the logic -  provides consistent answers - Less skilled work force needed, ther

Role of stakeholders in distribution reform, Role of StakeHolders in Distri...

Role of StakeHolders in Distribution Reform These challenges could be met only by comprehensive reforms in the distribution sector. Earlier, you have studied about the roles o

What is work-sharing constructs, Q. What is Work-Sharing Constructs? A ...

Q. What is Work-Sharing Constructs? A work-sharing construct distributes execution of associated region amongst the members of team which encounters it. A work-sharing construc

Electrons, Ask question #Minimum 100 words accepted how does the charge pla...

Ask question #Minimum 100 words accepted how does the charge plate relate to the movement of electrons

Issues for installation of meters, Issues for Installation of Meters T...

Issues for Installation of Meters The subsequent should also be ensured: a) Appropriate crimping device should be used for crimping the lugs. Thimbles should be of appro

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