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

Dc machine closed-loop dynamics, i) Calculate the eigenvalues of a 100 hp,...

i) Calculate the eigenvalues of a 100 hp, 1150 rpm dc machine at rated flux with no extra load inertia. Use the "hot" value of the armature resistance. Calculate estimates of t

Zener diode, where is a zener diode used in a car

where is a zener diode used in a car

Bipolar junction transistor, Bipolar junction transistor: Transistors ...

Bipolar junction transistor: Transistors are so named as they conduct via using both majority and minority carriers. The bipolar junction transistor that is abbreviated as BJT

Digital electronics, Digital Electronics: We have study the fundamenta...

Digital Electronics: We have study the fundamentals of Digital circuits. Primary we have studied the mathematics of Binary numbers also called as Boolean algebra and how to im

Sequential circuit, a 4 bit synchronous counter uses flip flops with propag...

a 4 bit synchronous counter uses flip flops with propagation delay times of 15ns each. what will be the maximum possible time requires for change of state?

OSI Layers, Data transfer code for OSI layers in matlab?

Data transfer code for OSI layers in matlab?

Bad effects of armature reactions, Q.  What is meant by armature reaction....

Q.  What is meant by armature reaction. Explain briefly the bad effects of armature reactions.   Sol. By armature reaction is meant the effect of magnetic field set up

Explain polarization, Explain Polarization. Polarization: A dielectric ...

Explain Polarization. Polarization: A dielectric has molecules the atomic nuclei of that are effectively fixed, related to each other. In absence of any external field all the

Orthogonal frequency division multiplexing, CURRENTLY, orthogonal frequency...

CURRENTLY, orthogonal frequency division multiplexing (OFDM) is emerging as the preferred modulation technique in modern high data rate broadband wireless mobile communication syst

Description of clauses used in a parallel construct, Q. Description of clau...

Q. Description of clauses used in a parallel construct? When a thread comes across a parallel construct a set of new threads is made to execute parallel region. Inside the para

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