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
Q. The input to the differentiator circuit is a sinusoidal voltage of peak value 5mv and frequency 1kHZ. find out the output if R=100K and C=10^-6F Solution. The equation

Q. For the NOR and inverter realizations shown in Figure, find the truth table, the type of gate realized, and the expression for the logic output, in each case.

Q. Give an account on the operation of the R-C coupled amplifie r. When a.c. signal is applied to the base of the first transistor, it appears in the amplified form across its c

Consider the circuit shown in Figure (a) in which the switch S has been in position 1 for a long time. Let the switch be changed instantaneously to position 2 at t = 0. Obtain v(t)

Q.  Write short note on storage oscilloscopes. Sol. Storage Oscilloscope: The bistable storage tube is between two to ten times slower than a comparable variable persistence

A 100-kW, 230-V shunt generator has R a = 0.05  and R f = 57.5 . If the generator operates at rated voltage, calculate the induced voltage at (a) full load, and (b) one-half fu


Importance: The transistor is the main active component in practically all current electronics, and is considered through many to be one of the greatest inventions of the 20 t

Check Sheets - Quality Tools for Improvement This might be an easy listing of items that could represent information in an efficient, graphical format. If the system under ana

Can you do a survey paper on Wavelet and Subband Coding? I need 10 pages and I will provide the references.