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
Software Defined Radio (SDR) is an advanced radio technology in which flexibility is achieved in using radio functions such as modulation and demodulation of radio signals are carr

What is TPA (transient program area)? The memory system is divided in three major parts: transient program area, System is and XMS that is extended memory system.

A relay is essentially an electromechanical switch that opens and closes electrical contacts. A simplified relay is represented in Figure. It is required to keep the fenomagnetic p

Electric field strength: When two metal plates are charged and divided in a certain distance, a potential difference will exists among the plates. A force was also generated

Q. A 5-kVA, 480:120-V, two-winding, 60-Hz, single-phase transformer has an efficiency of 95% while delivering rated load at rated voltage and 0.8 power factor lagging. This transfo

: A farmer owns two barns; one north of a creek and the other south of the creek. The farmer has a Cabbage, a Goat, and a Wolf. The Farmer needs to put each item in a barn every ni

..Explain mixedd storage oscilloscope with neat diagram,

Your manager has requested you to review current techniques for reducing, or eliminating, the effects of external interference upon electronic circuits. He requires a short report

What is programmable interrupt controller? The Programmable interrupt controller is used when several I/O devices transfer datausing interrupt and they are connected to the sam

Q. Find the parameter values V T and I DSS for a p- channel MOSFET with i D = 0 when v GS ≤-3 V, and i D = 5 mA when v GS = v DS =-8V.You may neglect the effect of v DS on