Program analysis , Electrical Engineering

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.

Posted Date: 4/5/2013 1:21:33 AM | Location : United States







Related Discussions:- Program analysis , Assignment Help, Ask Question on Program analysis , Get Answer, Expert's Help, Program analysis Discussions

Write discussion on Program analysis
Your posts are moderated
Related Questions
how is it possible to operate Q3 with no dc drain? where is the dc operating point?

Q. What do you know about Input Impedance? Input Impedance  : Amplifiers will be quoted as having a specific input impedance. The sort of load it will place on preceding equipm

Q. How numbering plan is achieved in modern telephony? Ans: The purpose of numbering plan is to uniquely identify every subscriber connected to a telecommunication network.

Q. Show the procedure twos complement subtraction? Two's complement subtraction is the binary addition of the minuend to the 2's complement of the subtrahend (adding a negative

Q. The magnitude spectrum of a continuous  image is as given below.  a) Sketch the frequency response of the sampled spectrum if   ωs =1.5 ωm along x and 3ωm along  y directions

Design two converters - boost-buck (Cuk) and flyback meeting the following criteria: Vin = 15 V ... 35 V    Vout = 25 V Output voltage ripple 1% peak to peak Switching frequen


(a) Figure shows a circuit containing an amplifier block. Find the open-circuit voltage amplification of the circuit. (b) Let the output terminals be connected to a load resista

Critical Rate of  Rise of Current The maximum  rate of  increase of current  during  on state  which  the SCR  can tolerate is called  the critical rate of rise  of current  f

Suppose that a video signal, having W = 5 MHz, is transmitted via FM with f = 20 MHz. For 1/100 ≤ B/fc ≤ 1/10, determine the bounds on the carrier frequency. Use WFM ∼ = 2( ω + 2W