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

Explain procedure to test the power line, Explain procedure to take shut do...

Explain procedure to take shut down and to test the power line before starting work? Ans: Study the circuit and find out the circuit breaker to be opened. Open and lock the c

What do you mean by an assembler, What is an assembler? Assembler: An...

What is an assembler? Assembler: An assembler or macro-assembler usually forms a part of the operating system. This translates an assembly language program in machine languag

Enhance the supply chain, Over 6,000 companies have established operations ...

Over 6,000 companies have established operations within Jebel Ali Free Zone, using it as a base to distribute their products to the GCC countries and beyond. These companies hav

ELECTRO MAGNETIC INDUCTION, If aluminium and copper pipes are of same lengt...

If aluminium and copper pipes are of same length and diameter ... same magnet dropped through them...in copper it takes more time to come out of other end, i myself have done this.

Calculate the instantaneous and rms values, Q. The flux-density distributio...

Q. The flux-density distribution in the air gap of a 60-Hz, two-pole, salient-pole machine is sinusoidal, having an amplitude of 0.6 T. Calculate the instantaneous and rms value

Uses of fet, Uses of FET IGBTs (Insulated-gate bipolar transistor) se...

Uses of FET IGBTs (Insulated-gate bipolar transistor) see application in switching internal combustion engine ignition coils, in which fast switching and voltage blocking cap

Show how emitter amplifier work as a buffer amplifier, Q. Due to what speci...

Q. Due to what special property does an emitter amplifier work as a buffer amplifier?  The circuit design of the emitter follower is such that it has a high input impedance and

Fibre optics, 1. A very narrow laser beam in air is shone into a sphere of ...

1. A very narrow laser beam in air is shone into a sphere of solid glass that has a uniform refractive index n>1 and radius ? . The beam makes an angle a in air with the normal to

Evaluate reference voltage, Q. Consider the 4-bit R-2R ladder D/A converter...

Q. Consider the 4-bit R-2R ladder D/A converter with V ref =-10 V. Determine the analog output voltage when the binary input code is 1100. Also, find what reference voltage is to

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