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

Bronze is an alloy of which metal, Bronze is an alloy of  (A) Copper....

Bronze is an alloy of  (A) Copper.  (B)  Aluminium. (C)  Silver.  (D)  Carbon. Ans: Bronze is an alloy of copper.

Explain about the term embedded system, Explain about the term embedded sys...

Explain about the term embedded system. An embedded system is a system which has software embedded within computer-hardware that makes a system dedicated for an application(s)

Pre-processing requirements - cpld design project , The pre-processing unit...

The pre-processing unit is responsible for taking the conditioned output from the heart sensor and generating a binary count during time T1 of this waveform (datain). It will compr

Show effects of saliency and saturation, Q. Show Effects of Saliency and Sa...

Q. Show Effects of Saliency and Saturation? Because of saliency, the reactancemeasured at the terminals of a salient-pole synchronousmachine as opposed to a cylindrical-rotor m

Explain about amplifier noise, Q. Explain about Amplifier noise? Amplif...

Q. Explain about Amplifier noise? Amplifier noise arises from both thermal sources (resistances) and nonthermal sources (semiconductor devices). Although nonthermal noise is no

[email protected], a sensorless brushless DC motor control with back emf ...

a sensorless brushless DC motor control with back emf (zero crossing point ) technique, using Arduino Microcontroller board control and describe in C. program language.

Find the current flow through resistor using thevenin''s, Find the current ...

Find the current flow through resistor 12 Ω using Thevenin's Theorem.

Methods of testing, Methods of Testing Irrespective of reasons, testin...

Methods of Testing Irrespective of reasons, testing is commonly carried out 1. On site, or 2. In a Meter Testing Station (MTS) accredited as per IS/ISO/IEC 17025.

Draw the power flow diagram showing voltages, For the 3 bus system shown be...

For the 3 bus system shown below all values are given in pu on a 100MVA base (a) Use Matlab functions lf gauss and lf Newton to find power flow solution for the system, accurate

How can a jfet be used as a constant current source, Q. How can a JFET be u...

Q. How can a JFET be used as a constant current source? Explain from the drain characteristics. As the VDS voltage is increased from 0 to a few volts, the current will increase

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