Sub subtract instruction, Electrical Engineering

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.

Posted Date: 4/4/2013 7:06:46 AM | Location : United States







Related Discussions:- Sub subtract instruction, Assignment Help, Ask Question on Sub subtract instruction, Get Answer, Expert's Help, Sub subtract instruction Discussions

Write discussion on Sub subtract instruction
Your posts are moderated
Related Questions
Q. For a p-channel JFET in its active region, specify the polarities of voltages and the directions of conventional currents.

Explain Suitability of ferrites for high frequency application. Ferrites are extensively used in micro wave equipments and in computers. Ferrites are advantageous at high frequ


Binary Multiplication Multiplication can be seen as multiple additions. For  example  if we  have to multiple 4 and 8 we can  8, 4  time to get the  solution. Actually this  conc

The distribution transformer is supplying a load at 240 V and 0.8 power factor lagging. The open-circuit and short-circuit test data are given in Example. (a) Determine the frac

Q. Explain Telephone hand set and it’s working ? A standard telephone set is comprised of a transmitter, a receiver and electrical network for equalization, associated circ

find the resultant of two forces 20N and25N acting at an angle 60 degree each other

Semiconductor Equations  The semiconductor equations that are relating these variables are shown below: Carrier density: n = n i exp (E FN - E i / KT)        (1)

What do you understand by Bezier surface ? Discuss Determine the equivalent bicubic formulation of a closed and open cubic B-spine surface. a) What do you understand by solid

Q. What do you mean by Companding? Companding is the process of compressing and expanding. It comprises compressing the signal at the transmitter and expanding it at the receiv