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
Q. Derive the equations of the self bias circuit? A circuit which is used to establish a stable operating point is the self biasing configuration. The circuit is shown in Fig


Determine the magnitude of the current: For the circuit of Figure below determine the magnitude of the voltage "drops" across each resistor R1 - R7. Determine the magnitude

Q. What is the significance of giving a negative voltage to the gate higher than that of the source?  This is done to reach the saturation at a lower of level of V DS .  The re

What are the modes used in display modes? 1. Left Entry mode In the left entry mode, the data is going into from the left side of the display unit. 2. Right Entry Mode

A 500KVA, 6 pole, 500v, 3 phase, wye-connected synchronous generator has a synchronous impedance of 0.1 + j1.5 ohms per phase. If the generator is driven at 1000 r.p.m., what is th

It has been known for a thousand years or more (originating in China) that certain (magnetic) materials would always orientate    themselves in a  particular direction if suspended

Q. Three loads in parallel are supplied by a single phase 400-V, 60-Hz supply: Load A: 10 kVA at 0.8 leading power factor Load B: 15 kW at 0.6 lagging power factor Load C:

Q. What is Balanced Budget? Balanced Budget: An annual budget (like for a government) in that revenues perfectly offset expenditures, so that there is neither a deficit nor a s

Please can you explain the operation of a transistor in a Common Emitter Class A audio Amplifier?