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

Pulsed OFDM odulation for ultrawideband communication, i have selected this...

i have selected this paper as my semester project according to teacher we have to fully implement it. i need its full written matlab code simulink model and results. can you help m

Loss reduction and efficiency of electrical energy, Loss Reduction and Effi...

Loss Reduction and Efficiency Improvement of Electrical Energy 1. There are inherent losses in Transmission and Distribution of electrical energy from Generating station

Rrc rotate accumulator right instruction , RRC Rotate  Accumulator  Right...

RRC Rotate  Accumulator  Right Instruction This instruction also  rotates the contents of the  accumulator  toward right  by one bit. The  D 7   bit moves  to D 5   position a

Induction heating levitation, Using a levitation coil, you levitate a condu...

Using a levitation coil, you levitate a conductive object in the magnetic field and heat within that field. I have 2 sample report and I would like you to write some thing similar

Matlab codes for transportation problem, i need matlab codes for the minimu...

i need matlab codes for the minimum cell cost method to start the initial feasible solution and the stepping stone method to find the optimum value

Determine the equivalent winding resistance, Determine the equivalent windi...

Determine the equivalent winding resistance: A 50 kVA, 2200/110 V, 50 HZ' transformer contain an HV winding resistance of 0.15 Ω and a leakage reactance of 0.45 Ω. The LV wind

wind turbine, pls how can i stat up building wind turbin

pls how can i stat up building wind turbine

Discuss merits and demerits of macro over procedures, Discuss merits and de...

Discuss merits and demerits of Macro over procedures.  The MACRO directive informs assembler the starting of a macro which is used with ENDM directive to enclose a macro. The

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