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

The classical free electron theory, The free electron theory of metals was ...

The free electron theory of metals was first proposed by Drude and later improved by Lorentz. The main postulates of this theory are 1.       All metal contain, adequate number

Saturation and cutoff in bipolar junction transistor, Saturation and Cutoff...

Saturation and Cutoff in bipolar junction transistor: Saturation : With both of the junctions forward-biased, a BJT is in saturation mode and makes easy high current condu

Explain about frequency shift keying, Q. Explain about Frequency Shift Keyi...

Q. Explain about Frequency Shift Keying? In this scheme frequency of the carrier signal is changed according to the data. Transmitter sends different frequencies for a "I" than

Electronics, Figure 1(a) shows a simple one-stage MOSFET amplifier. The inp...

Figure 1(a) shows a simple one-stage MOSFET amplifier. The input-output relationship is graphed in Figure 1(b), where the solid curve indicates operation in the saturated region an

Trivalent impurity to a semiconductor, Addition of trivalent impurity to a ...

Addition of trivalent impurity to a semiconductor creates many (A) Holes. (B) Free electrons. (C) Valance electrons. (D) Bound electrons. Ans: Addition o

Design of a p only controller, For an operating point half way up the paral...

For an operating point half way up the parallel section and the discharge valve and the discharge fully open, design a proportional only controller which will give closed loop dyna

Explain idiv instructions in 8086 family, Explain IDIV instructions in 80...

Explain IDIV instructions in 8086 family with example and their effect on flag. IDIV: It used to divide a 16-bit signed number with an 8-bit signed no. or 32 bit signed numb

Determine variation of large scale integration chips, Large scale integrati...

Large scale integration chips have between (A) Less than 10 components.         (B) 10 and 100 components. (C) 100 and 1000 components.       (D)  More than 1000 componen

Drawing, #question what are the types of lines used there and their applica...

#question what are the types of lines used there and their application ..

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