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

Characteristics of transformer, Q. Characteristics of Transformer? The ...

Q. Characteristics of Transformer? The characteristics of most interest to power engineers are voltage regulation and ef?ciency. The voltage regulation of a transformer is a me

#titleElectromagnetic Induction, Hello, I have some questions pertaining t...

Hello, I have some questions pertaining to electromagnetic induction. Could you please give me a hand? Thanks. If we increase the speed of the bar magnet slowly from 0 to 8, and

What is programmable interrupt controller, What is programmable interrupt c...

What is programmable interrupt controller? The Programmable interrupt controller is used when several I/O devices transfer datausing interrupt and they are connected to the sam

What is open-loop voltage gain, Q. What is Open-loop voltage gain? The ...

Q. What is Open-loop voltage gain? The op amp amplifies the difference vd between the voltage on the noninverting (+) terminal and the inverting (-) terminal; see Figure. The t

Multiplexers, how to design a 32:1 multiplexer using two 16:1 multiplexers ...

how to design a 32:1 multiplexer using two 16:1 multiplexers and a 2:1 multiplexer?

Superhet receiver, Write a short summary of the AM superhet receiver, in ex...

Write a short summary of the AM superhet receiver, in exacting consider how the demodulation stage works, and remark on the choice of component values used.

Find the modulated signal in each case, Let the message signal m(t) = α cos...

Let the message signal m(t) = α cos (2πf m t) be used to either frequency-modulate or phase- modulate the carrier Ac cos(2πf c t). Find the modulated signal in each case.

Apparatus for BCD to excess 3, Apparatus for BCD to excess 3 convertor usin...

Apparatus for BCD to excess 3 convertor using nand and nor gates

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