Sub subtract instruction, Electrical Engineering

Assignment Help:

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.


Related Discussions:- Sub subtract instruction

Explain the suitability of aluminium, Explain the suitability of aluminium ...

Explain the suitability of aluminium  that is used as electrical conducting materials. Aluminium : Conductors are appropriate for ambient and very high temperature. Use of alu

Find whether the load impedance is capacitive or inductive, Q. When the two...

Q. When the two-wattmeter method for measuring three-phase power is used on a certain balanced load, readings of 1200W and 400W are obtained (without any reversals). Determine the

Solid-state control of synchronous motors, Solid-State Control of Synchrono...

Solid-State Control of Synchronous Motors  The speed of a synchronous motor can be controlled by changing its supply frequency. With variable-frequency control, two modes of op

Automatic meter reading and remote meter reading, Automatic Meter Reading a...

Automatic Meter Reading and Remote Meter Reading Automatic Meter Reading (AMR) and Remote Meter Reading (RMR) elaborate several systems which permit meters to be checked with

#title.Electrical Machine., ) Design a suitable double –layer lap winding f...

) Design a suitable double –layer lap winding for a 6-pole dc armature with 18 slots

Coherent psk system, To have the same value of P e , show that E b /N 0 in...

To have the same value of P e , show that E b /N 0 in a coherent-ASK system has to be twice that in a coherent PSK system.

Evaluate the voltage source, Q. For the capacitor shown in Figure connected...

Q. For the capacitor shown in Figure connected to a voltage source, sketch i(t) and w(t).

Electric machines, a shunt motor supplied at 230V rms runs at 900rev/min wh...

a shunt motor supplied at 230V rms runs at 900rev/min when the armature current is 30A.the resistance of the armature circuit is 0.4 ohms.find the armature input

Current through each resistor for the networking, Find the current through ...

Find the current through each resistor for the networking below using Mesh Analysis and Nodal Analysis.

Block diagram and the truth table of a demultiplexer, Q. Given the block di...

Q. Given the block diagram and the truth table of a demultiplexer, as shown in Figure, obtain its implementation.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd