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

Circuit with inductive load, Circuit with inductive load  Electromagnet...

Circuit with inductive load  Electromagnetic induction When a conductor is moved across a magnetic field so as to cut by the lines of force (or flux, an electromotive force

What do you mean by superposition and linearity, Q. What do you mean by Sup...

Q. What do you mean by Superposition and linearity? Mathematically a function is said to be linear if it satisfies two properties: homogeneity (proportionality or scaling) and

Bjt, what is compensation of bjt

what is compensation of bjt

What do you mean by bezier curve, What do you mean by Bezier curve? Shown B...

What do you mean by Bezier curve? Shown B0 (1,1), B1 (2,3), B2 (4,3), B3 (3,1) the vertices of Bezier polygon, calculate seven points on Bezier curve. Write in brief the differe

How many machine cycles does 8085 have, How many machine cycles does 8085 h...

How many machine cycles does 8085 have, mention them The 8085 have seven machine cycles. They are Opcode fetch Memory read Memory write I/O read I/O

Extrinsic material, Extrinsic Material: THE CHARACTERISTICS OF SEMI C...

Extrinsic Material: THE CHARACTERISTICS OF SEMI CONDUCTOR material can be alter significant bin addition of certain impurity atoms into the relatively pure se conductor mater

Construct a suitable piecewise linear equivalent circuit, Problem: The ...

Problem: The current voltage characteristic [ ID versus VD] of a semiconductor diode for VD > 0 [forward bias] is given in Figure Under reverse bias conditions [VD Fi

Representation of negative number, Representation of Negative Number: ...

Representation of Negative Number: As  mentioned  in chapter 1 in 8085  negative  numbers are represented in 2 complement  form  and subtraction is  performed  using 2  comple

Explain various functions of telephone switching systems, Q. Explain variou...

Q. Explain various functions of telephone switching systems. Ans: Functions of telephone switching systems are: (i)  Attending: The system should be continually monito

Microwaves, derive the s parameters of a network by smith chart

derive the s parameters of a network by smith chart

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