Sub subtract instruction, Electrical Engineering

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.

Posted Date: 4/4/2013 7:06:46 AM | Location : United States







Related Discussions:- Sub subtract instruction, Assignment Help, Ask Question on Sub subtract instruction, Get Answer, Expert's Help, Sub subtract instruction Discussions

Write discussion on Sub subtract instruction
Your posts are moderated
Related Questions
Particles of mass M and m separated in space by a distance R exert a mutually attractive gravitational force F on one another given by where G is the universal gravitationa

Demodulation of SSB signals also requires the use of a phase-coherent reference. Figure shows the general configuration to demodulate the SSBsignal.Asmall carrier component, which

Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots and two coil sides per slot. Give values of front-pitch, brack–pitch and commutator pitch. Draw t

Compare dispersion effects in single mode and multimode fibres? The optical fibres were categorized within two according to the number of modes it passes as: • Single mode fibre

Binary  to Hexadecimal  Conversion To convert a binary  number  into  hexadecimal  divide the number into group  of four  bits  each starting from the least significant bit. Th

I would like to know if you can help me with the attached microprocessor assignments my email address is . also let me how much in cost in $US

does wein bridge can be used for frequency measurement? how it is possible?

Suppose that the length of a 10Base-5 cable is 2500 metres. If the speed of propagation in a thick co-axial cable is 60% of the speed of light, how long does it take for a bit to

what is the difference between statically and dynamically induced emf''s

Q. (a) What is the difference between a TEM mode and a TE mode? (b) Explain the terms "cutoff wavelength" and "dominant mode" as applied to waveguides. Find the cutoff wavelengt