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
Planned and coordinated development: The CEA would prepare the global Electricity Plan after carefully carrying out the demand forecast in consultation along with stakeholders

Connection of Shunt Capacitors - Vantage Points An unloaded distribution line is capacitive in character and a fully loaded line has inherent inductive and resistive features

what are the grond clearance for 220KV overhead transmission lines?

Define the Signals in Time Domain? The time domain is the type of visualization that most people are familiar with. This method shows variations of a signal with time. The most

An induction motor takes 350 kW at 0.8 power factor lagging while driving a load. When an overexcited synchronous motor taking 150 kW is connected in parallel with the induction mo

HOW TO WRITE INTRODUCTION OF ASSIGNMENT

Faraday's Law Faraday's laws of electromagnetic induction state: i)  An induced e.m.f is setup when the magnetic field linking that circuit changes ii)  The magnitude of

derive transfer function of S= 2.25+j4.5

What are the industrial applications of the project bcd to excess 3 code converter?

Task a)    Investigate and describe the significance of the following: i.    Slenderness ratio and buckling in columns ii.    Effective length of columns b) Explain Eu