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

Induced voltage and inductance, Experiments conducted by Faraday and others...

Experiments conducted by Faraday and others using current carrying coils resulted in 'The Laws of Electromagnetic Induction' which state: 1)  'If the magnetic flux threading throu

Explain working of phase shift oscillator, Explain working of Phase Shift O...

Explain working of Phase Shift Oscillator? Figure shows a phase shift oscillator. Here the combination of ReCe provides self bias for the amplifier. The phase of the signa

What is meant by wait state, What is meant by Wait State? This state is...

What is meant by Wait State? This state is used by slow peripheral devices. The peripheral devices can transmitted the data to or from the microprocessor by using READY input l

Illustrate in detail b-spline and cubic bezier surfaces, Define ruled surfa...

Define ruled surface and surface of revolution. Illustrate in detail B-spline and cubic Bezier surfaces with their important properties.

Express the storedmagnetic energy, A relay is essentially an electromechani...

A relay is essentially an electromechanical switch that opens and closes electrical contacts. A simplified relay is represented in Figure. It is required to keep the fenomagnetic p

Signals and spectral analysis, Q. Signals and spectral analysis? Figure...

Q. Signals and spectral analysis? Figure shows the functional block diagram of a signal-processing system. The information source may be a speech (voice), an image (picture), o

What is meant by doping, What is meant by doping? How does it affect a semi...

What is meant by doping? How does it affect a semiconductor? Doping: The process through which an impurity is added to semiconductor is termed as doping. A semiconductor to th

Dc power supplies, 1.   Design four (4) different 5 volt DC power supplies...

1.   Design four (4) different 5 volt DC power supplies to operate from 230 volts AC. The four power supplies are to have the same full wave rectifier with capacitive filte

Determine gold and silver are which type of materials, Gold and silver are ...

Gold and silver are (A) Dielectric materials (B) Low resistivity conducting materials. (C) Magnetic materials. (D) Insulating materials. Ans: Gold and si

Explain about transistor amplifiers, Q. Explain about Transistor Amplifiers...

Q. Explain about Transistor Amplifiers? Amplifiers are circuits that produce an output signal which is larger than, but proportional to, an input signal. The input and output s

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