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

Stack operation, Stack Operation Stack is a group of memory  locations...

Stack Operation Stack is a group of memory  locations which  are part of the  same read write memory  used for  storing  data  temporarily  during the execution of the  progra

Strategic perspective of an organization, Strategic Perspective of An organ...

Strategic Perspective of An organization Strategic perspectives cover functions such as revenue, customer satisfaction, people, procedure and technology. Every organization re

Basic definition of electromagnetism, Q. Basic definition of electromagneti...

Q. Basic definition of electromagnetism? A basic understanding of electromagnetism is essential to the study of electrical engineering because it is the key to the operation of

Block schematic diagram of ss7, Q. Block schematic diagram of SS7? Leve...

Q. Block schematic diagram of SS7? Levels are as below: Level 1: The Physical Layer Level 2: The Data Link Level Level 3: The signaling network level Level 4: The User Pa

Compute the rated-load efficiency, The following data apply to a 100-kW, 25...

The following data apply to a 100-kW, 250-V, six-pole, 1000-r/min long-shunt compound generator: no-load rotational losses 4000 W, armature resistance at 75°C = 0.015 , series-fie

What do you mean by companding, Q. What do you mean by Companding? Comp...

Q. What do you mean by Companding? Companding is the process of compressing and expanding. It comprises compressing the signal at the transmitter and expanding it at the receiv

Can you draw robot configuration, a) Draw robot configuration. b) Explai...

a) Draw robot configuration. b) Explain the significance of end effectors. c) Define the terms (i) accuracy (ii) Repeatability (iii) Work volume (iv) Control Reso

Transformes, how to calculate the sending line voltage

how to calculate the sending line voltage

Projects, I want project ideas.

I want project ideas.

Explain how leds are arranged in a seven segment display, Q. Explain how LE...

Q. Explain how LEDs are arranged in a seven segment display ? The illustration given below shows the basic layout of the segments in a seven- segment display. The segments the

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