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

Give example for non-maskable interrupts, Trap is called as Non-Maskable in...

Trap is called as Non-Maskable interrupts, which is used in emergency condition.

Explain the advantage of synchronous counters, Explain the Advantage of Syn...

Explain the Advantage of Synchronous Counters? The most significant advantage of synchronous counters is that there is no cumulative time delay because all flip-flops are trigg

Issues for installation of meters, Issues for Installation of Meters T...

Issues for Installation of Meters The subsequent should also be ensured: a) Appropriate crimping device should be used for crimping the lugs. Thimbles should be of appro

Draw and explain the circuit of wein bridge oscillator, Q. Draw and explain...

Q. Draw and explain the circuit of Wein bridge oscillator. Obtain the expressions for the (i) frequency of oscillation and (ii) condition for oscillation. Will oscillat

Three phase steam turbine generator, A 3 phase 400 volt(line to line) wye c...

A 3 phase 400 volt(line to line) wye connected synchronous motor has Xs= 1 ohm per phase and a negligible armature resistance. The field current is so adjusted that the internal(in

Engineer, explain the alphanumeric codes

explain the alphanumeric codes

Determine lower and upper cut-off frequency, Q. In an amplifier, the maximu...

Q. In an amplifier, the maximum voltage gain is 1500 and occurs at 1kHz. It falls to 1060.5 at 20kHz and at 20Hz. Determine (i) lower cut-off frequency (ii) upper cut-o

Explain the working of electronic multimeter, Q.  Give suitable block diag...

Q.  Give suitable block diagram to explain the working of electronic multimeter. Sol. An electronic multimeter is a laboratory instrument which is capable of measurement of

Frequency response of amplifiers, Q. Frequency response of amplifiers? ...

Q. Frequency response of amplifiers? All amplifiers exhibit variations of performance as the signal frequency is changed. The frequency response of an amplifier may be defined

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