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

14. What is a vector impedance meter? State its application., What is a vec...

What is a vector impedance meter? State its application.

Explain cwd instructions in 8086 family, Explain CWD instructions in 8086...

Explain CWD instructions in 8086 family with example and their effect on flag. Convert signed word to signed double word: CWD instruction enlarges the sign bit of a word int

Explain the properties of low resistivity materials, Explain the properties...

Explain the properties of low resistivity materials. Low resistivity materials: The conducting materials containing resistivity from 10 -8 to 10 -6 ohm-m come under this cl

TRANSFORMER, what are the characteristics of transformer?

what are the characteristics of transformer?

Explain fet amplifiers, Explain FET amplifiers? Just like the BJT ampli...

Explain FET amplifiers? Just like the BJT amplifiers, FET amplifiers are constructed in common-source (CS, analogous to CE), common-drain (CD, analogous to CC), and common-gate

Explain working of digital process control, Q. Explain working of Digital P...

Q. Explain working of Digital Process Control? Figure shows a block diagram for microcomputer-based control of a physical process, such as a chemical plant. A slight variation

For the nor and inverter realizations, Q. For the NOR and inverter realizat...

Q. For the NOR and inverter realizations shown in Figure, find the truth table, the type of gate realized, and the expression for the logic output, in each case.

Components of gis - methods, Methods: A successful GIS operates accordi...

Methods: A successful GIS operates according to a well-designed plan and business rules that are the models and operating practices unique to every organization. GIS gives i

What are the various tones used in stronger telephony, Q. What are the vari...

Q. What are the various tones used in stronger telephony? When called party line is obtained, exchange control equipment transmits out the ringing current to telephone set of t

Zener diode, I need to know about the zener diode

I need to know about the zener diode

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