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

Magnetic circuits, develop and explain series and parallel magnetic circuit...

develop and explain series and parallel magnetic circuits?

Tardy billing and poor revenue collection, Tardy Billing and Poor Revenue C...

Tardy Billing and Poor Revenue Collection Prolonged disputes, connivance, lack of consumer friendly policies, incorrect identification of category, fictitious billing (of non-

Define abcd propagation , ABCD propagation of an optical ray through a s...

ABCD propagation of an optical ray through a system can be described by a straightforward two by two  matrix. In ray optics, the feature of a system is known by the correspondin

Calculate the power factor of the motor, A 3 phase 400 volt(line to line) w...

A 3 phase 400 volt(line to line) wye connected synchronous motor has Xs= 1 ohm per phase and a negligible armature resistance. The field current is so adjusted that the internal(in

Draw the block diagram of phase cancellation ssb generator, a. The antenna ...

a. The antenna current of an AM broadcast transmitter, modulated to depth of 40% by an audio sine wave is 11 amp. It enhances to 12 amp as a result of simultaneous modulation by an

Determine the type of the semiconductor, Determine the Type of the Semicond...

Determine the Type of the Semiconductor An unknown semiconductor has E g =1.1 eV and N t =N v . lt is doped with 10 16 /cm 3 donor atoms. - (a) Determine the type of the s

Show steady-state sinusoidal analysis with pspice, Q. Show Steady-State Sin...

Q. Show Steady-State Sinusoidal Analysis with PSpice PSpice can easily solve steady-state ac circuits for currents and voltages. Ac voltage sources, which must begin with the l

Conveyor, The FESTO conveyer consists of 600mm belt driven by a 24V d.c. mo...

The FESTO conveyer consists of 600mm belt driven by a 24V d.c. motor at a rate of 13 seconds per metre. A relay on the FESTO panel controls the motor operation and is wired for sou

D flip-flop - latch or delay element, Q. D flip-flop - latch or delay eleme...

Q. D flip-flop - latch or delay element? The symbol for the clocked D flip-flop is shown in Figure (a), in which the two output terminals Q and ¯ Q behave just as in the SRFF,

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