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
Metering Techniques The techniques of metering could be categorized depending upon the voltage at which consumers are fed as: 1. LT (Low Tension) Metering, and 2. HT (Hi

Explain about the term embedded system. An embedded system is a system which has software embedded within computer-hardware that makes a system dedicated for an application(s)

Q.  Define coil pitch, Back pitch, front pitch, pole pitch, commutator pitch, resultant pitch, Multiplex winding and degree of Re-entrant of a winding, with respect to a D.C. mach

Field effect transistor: Primarily difference between bit and jet is that bit transistor is a current controlled device while jet is a voltage controlled device.  Is a direct

Question: a) Give the instruction cycle state diagram for a typical Von Neumann machine. b) Give two diagrams to differentiate between a Memory and CPU connections. c) Co

Q. Illustrate BCD-to-decimal decoding with a 4-to- 16 decoder, and draw the corresponding truth table.


Q. Write notes on clamping ? When a signal drives an open-ended capacitor the average voltage level on the output terminal of the capacitor is determined by the initial charge

The dielectric constant of air is practically taken as (A) more than unity.                         (B) Unity.  (C) less than unity.                           (D) Zero.

Insulators have (A) A full valence band. (B) An empty conduction band. (C) A large energy gap. (D)All the above. Ans: Insulators have a large energy gap.