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

Determine ripple factor of half wave rectifier, Illustrate VI Characteristi...

Illustrate VI Characteristics of PN junction diode (10) Illustrate Half Wave Rectifier. Disadvantage of Half Wave Rectifier. Determine ripple factor of Half Wave Rectifier.

Explain the operation as a buffer, Q. An interesting application of the SRF...

Q. An interesting application of the SRFF is as a buffer in overcoming contact bounce in mechanical switches. These switches, of the toggle type, may be used to change the logic st

Frequency response of your amplifier, a) What is meant by frequency respons...

a) What is meant by frequency response and how would you check the performance of your amplifier? b) Calculate the Voltage Gain of your amplifier at a range of frequencies suffic

Evaluate the four parameters of the hybrid model, Q. Show that any amplifie...

Q. Show that any amplifier represented by the model of Figure of the text can also be represented by themore general hybridmodel of Figure. Evaluate the four parameters of the hybr

Determine power gain, Q. An antenna has an aperture area of 10 m 2 ,an ape...

Q. An antenna has an aperture area of 10 m 2 ,an aperture ef?ciency of 0.6, and negligible losses. If it is used at 5 GHz, determine: (a) Its power gain. (b) The maximum pow

Dc machine, why very high resistance wire is used is field windind and low ...

why very high resistance wire is used is field windind and low resistance wire is used in armature winding in DC shunt machine?

For configurations of the coupled coils obtain the voltage, Q. For the conf...

Q. For the configurations of the coupled coils shown in Figure, obtain the voltage equations for v 1 and v 2 .

Design a circuit using real components, The circuit shown below is a protot...

The circuit shown below is a prototype 4 th - order low-pass filter which is required to meet the specification given. However the specification is not met due to inadequate atten

Determine whether the diode in circuit, Determine whether the diode (consid...

Determine whether the diode (considered to be ideal) in the circuit of Figure (a) is conducting.

Find the directive gain, Q. Aconical horn has a side viewas shown in Figure...

Q. Aconical horn has a side viewas shown in Figure  The maximum value ofthe directive gain is given by GD ∼ = 5.13(D/λ) 2 , where D =√3.33λL1 and L1 = L/(1-d/D),in which d is the i

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