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

What is an amplifier, Q. What is an amplifier? What are the various types o...

Q. What is an amplifier? What are the various types of amplifiers? AMPLIFIER: A circuit that increases the amplitude of the given input signal is an amplifier. A small a.c. sig

Dc motor, write the working and construction of dc motor.

write the working and construction of dc motor.

Calculation of AT&C loss, how to make a matlab program for calculation of A...

how to make a matlab program for calculation of AT&C loss for perticular area

., speed control of single phase ac motors

speed control of single phase ac motors

D/a converter, weighted resistor and r2r ladder d/a converter

weighted resistor and r2r ladder d/a converter

Explain mobility, Explain Mobility . Average drift velocity of electrons...

Explain Mobility . Average drift velocity of electrons (e - ) in an applied field is proportional to the field, the absolute magnitude of the proportionality factor eq/m, termed

Calculate the actual frequency of circuit, (a) The circuit of Figure 1 repr...

(a) The circuit of Figure 1 represents an amplifier-speaker connection. The filter is a low pass filter which is connected to the woofer. The filter is a -network. (i) Design a

Define power-supply rejection ratio, Q. Define Power-Supply Rejection Ratio...

Q. Define Power-Supply Rejection Ratio? An op amp's ability to disregard changes in power-supply voltage is measured by the power- supply rejection ratio (PSRR), which is speci

#title.superposition theorem, .coments on the limitation of the superpositi...

.coments on the limitation of the superposition theorem

What is synchronous data transfer, What is synchronous data transfer? I...

What is synchronous data transfer? It is a data method which is used when the I/O device and the microprocessor match in speed. To transfer a data to or from the device, the us

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