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 virtual memory, Explain virtual memory. The term virtual memor...

Explain virtual memory. The term virtual memory considers as to something that appears to be present but in fact it is not. The virtual memory technique permits users to use m

Explain factors affecting permeability and hysterisis loss, Explain the fac...

Explain the factors affecting permeability and hysterisis loss. Factors affecting permeability and hysterisis loss: When the initial permeability is high, the hysterisis los

Inverting integrator circuit, Q. Consider the inverting integrator circuit ...

Q. Consider the inverting integrator circuit shown in Figure. Let C = 0.4µF and R = 0.1M. Sketch v o for a period of 0.5 s after the application of a constant input of 2 V at the

What is discrete signals, Q. What is Discrete signals? Discrete signals...

Q. What is Discrete signals? Discrete signals, on the other hand, exist only at specific instances of time, and as such, their functional description is valid only for discrete

Conditional call instruction, Conditional Call Instruction Similar  to ...

Conditional Call Instruction Similar  to conditional  jump  instructions there are conditional call  instructions  also based on various  flags.

Define the signals in time domain, Define the Signals in Time Domain? T...

Define the Signals in Time Domain? The time domain is the type of visualization that most people are familiar with. This method shows variations of a signal with time. The most

Compare dispersion effects single mode and multimode fibre, Compare dispers...

Compare dispersion effects in single mode and multimode fibres? The optical fibres were categorized within two according to the number of modes it passes as: • Single mode fibre

Induced emf, applications of dynamically induced emf

applications of dynamically induced emf

Estimate conversion time of counter-controlled a/d converter, Q. An 8-bit A...

Q. An 8-bit A/D converter is driven by a 1-MHz clock. Estimate the maximum conversion time if: (a) It is a counter-controlled A/D converter. (b) It is a successive-approximat

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