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

Determine the current for given capacitance values, Q. Consider the circuit...

Q. Consider the circuit of Figure. Determine and sketch i L (t) and v C (t) for capacitance values of (a) 1/6 F, (b) 1/8 F, and (c) 1 / 26 F. Note that the capacitance values ar

What is idss, Q. What is Idss. What are the conditions for its maximum valu...

Q. What is Idss. What are the conditions for its maximum value? The term 'Idss' refers to saturation condition of the Drain current. From the above graph it's clear that as the

What are difference equations, What are Difference Equations? A continu...

What are Difference Equations? A continuous-time system can be described by differential equations. Likewise, a discrete-time system can be explained by difference equations. T

Superposition Theorem, Help using superpositions find voltage across all re...

Help using superpositions find voltage across all resistor

Induced emf, applications of dynamically induced emf

applications of dynamically induced emf

Applications of operational amplifiers, Q. Applications of operational ampl...

Q. Applications of operational amplifiers? An op amp along with a few external components (resistors and capacitors) is capable of performing many different operations-hence th

Explain role/purpose of dummy coils in dc machine winding., Dummy coils : ...

Dummy coils : These coils are used with wave winding and resorted to when the requirement of the winding are not met by the standard armature punching available in armature win

Network reconductoring - technical loss reduction, Network Reconductoring -...

Network Reconductoring - Technical Loss Reduction The size of conductor/cable is a significant parameter as it determines the current density and the resistance of the line. A

Determine the armature e.m.f. and load angle of generator, A 3-phase, wye-c...

A 3-phase, wye-connected, 11 kV, 137.5 MVA turbo-alternator of 0.8 power factor lagging has a synchronous reactance XS = 1.4 Ω. Assume the machine to be ideal for convenience of an

Multimeter probes, different types of probes used in multimeter

different types of probes used in multimeter

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