Program analysis , Electrical Engineering

Assignment Help:

Program Analysis

We have to find the greater of two given  number. We  can store the given  numbers  in two  different  registers ( suppose register A and B). Then we will compare the  contents  of  register B with  the contents of accumulator A. If the contents A are greater than B  Both  CY and Z  flag is reset.  If  the contents of A are equal  to B, Z  flag is  set and CY  flag is  reset. Here we assume for simplicity  of the  program that the  given  numbers are not  equal   then only carry flag can decide that which  number is greater. F carry flag  is set  the content of accumulator  A are less  than the contents  of B otherwise  the contents  of B  are greater  than the contents  of accumulator A.

Flow chart   : it is better  to draw  the flow  chart before  writing the program.


Related Discussions:- Program analysis

Show the bode plot, Question: (a) Show the Bode Plot, showing the relev...

Question: (a) Show the Bode Plot, showing the relevant corner frequencies and slopes, for the unity feedback system whose open loop transfer function is given by: (b) T

Effect of frequency - stepper motor , Effect of Frequency a.From equa...

Effect of Frequency a.From equation for given  H p and μ P v α √f b.From  equation the depth of penetration for a given  material δ α 1/ √f c.From  equation hyst

What is microprocessor, What is Microprocessor? Give the power supply & clo...

What is Microprocessor? Give the power supply & clock frequency of 8085. A microprocessor is a multipurpose, programmable logic device that reads binary instructions from a sto

Ac waveform, which ckt. Or components using for irregular ac sine wave ...

which ckt. Or components using for irregular ac sine wave change into pure sine wave.......

Clipper, how to write kvl equation in series clipper circuit without any ba...

how to write kvl equation in series clipper circuit without any battery

Comparison of analog-modulation systems, Comparison of Analog-Modulation Sy...

Comparison of Analog-Modulation Systems The comparison of analog modulation systems (conventional AM, DSB SC, SSB SC, VSB, FM, and PM) can be based on three practical criteria:

Name the materials used in case of fuses, Name the materials used in case...

Name the materials used in case of Fuses . Also give reasons. Fuses : For rewirable fuses, copper-tin and lead-tin alloy is used. For HRC and cartridge fuses silve

Explain the suitability of copper, Explain  the  suitability  of  coppe...

Explain  the  suitability  of  copper that  is  used  as  electrical  conducting materials. Copper : Pure annealed is utilized for the winding of electrical machines. High pur

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