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

Give an introductive notes about fet amplifier, Q. Give an introductive not...

Q. Give an introductive notes about FET amplifier ?  The small signal models for the common source FET can be used for analyzing the three basic FET amplifier configurations: (

Can you draw robot configuration, a) Draw robot configuration. b) Explai...

a) Draw robot configuration. b) Explain the significance of end effectors. c) Define the terms (i) accuracy (ii) Repeatability (iii) Work volume (iv) Control Reso

Magnetism and mahnetic materials, I have to make assignment of about the to...

I have to make assignment of about the topic Magnetism and magnetic materials. I don''t know how I will prepare this assignment. Please give me some instructions about this.

Digital logic circuits, . In successive-approximation A/D converter, offset...

. In successive-approximation A/D converter, offset voltage equal to 1/2LSB is added to theD/A converter’s output. This is done to

Calculate the voltage gain, Using the BC548B BJT transistor amplifier biasi...

Using the BC548B BJT transistor amplifier biasing circuit of Lab 2 build an amplifier with the voltage gain of  |A V | = 30 v/v ± = 10%. Measure all necessary parameters of the amp

What do you mean by output voltage swing, Q. What do you mean by Output Vol...

Q. What do you mean by Output Voltage Swing? Ideally this is equal to the difference between the two supply rail voltages, although in practice it is a few volts less.

What do you mean by sensors or transducers, Q. What do you mean by Sensors ...

Q. What do you mean by Sensors or Transducers? In almost all engineering applications there arises a need tomeasure some physical quantities, such as positions, displacements,

Determine the required voltage at the high-voltage terminals, Q. A 20-kVA, ...

Q. A 20-kVA, 2200:220-V, 60-Hz, single-phase transformer has these parameters: Resistance of the 2200-V winding R1 = 2.50  Resistance of the 220-V winding R2 = 0.03  Lea

Write some notes for the gauss-seidel method, Write Some Notes for the Gaus...

Write Some Notes for the Gauss-Seidel Method? 1.  Equation below is used to calculate the voltage at each busbar in turn, always using the most up to date values for the other

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