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

Principal of bipolar junction transistor, Principal of Bipolar junction tra...

Principal of Bipolar junction transistor: A bipolar junction transistor (BJT) is a three-terminal electronic device that constructed of doped semiconductor material and might

Draw the implementation of time invariant system, Draw the implementation o...

Draw the implementation of time-invariant system A linear time-invariant system is described by the difference equation: y[n] = 2x[n] - 3x[n - 1] + 2x[n - 2]   Draw the i

Capacitor filter, Capacitor Filter: A capacitor filter is connect...

Capacitor Filter: A capacitor filter is connected directly across the load is displayed in figure. The property of a capacitor is that it permits ac component and blocks

Digital control system, block diagram of digital control system and explain...

block diagram of digital control system and explain each block

Explain hexadecimal number system, Q. Explain Hexadecimal Number System? ...

Q. Explain Hexadecimal Number System? A Hexadecimal Number System: uses base 16 includes only the digits 0 through 9 and the letters A, B, C, D, E, and F In the Hexade

Digital electronics, an 8 bit successive approximation adc has a resolution...

an 8 bit successive approximation adc has a resolution of 20mv. what will be its ouput analogue input of 2.17v

Air gaps, What is the main thing to look for in calculations of air gaps?

What is the main thing to look for in calculations of air gaps?

Theoretical circuit, Theoretical Circuit The theoretical circuit is ava...

Theoretical Circuit The theoretical circuit is available in form 1.Passive materials with mediocre dimension is used by the manufacturer. In order to make a theoretical circuit

Microelectronic technologies and applications, The assignment comprises two...

The assignment comprises two parts, a CPLD Design Exercise and a CPLD Design Project. The CPLD Design Exercise will enable you to acquire competance in programmable logic design

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