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. Show NPN Common Emitter Amplifier? The common emitter configuration lends itself to voltage amplification and is the most common configuration for transistor amplifiers.

Give the properties and application of brass. Brass - It is an alloy of copper and zinc with 60 percent copper and 40 percent zinc. Its electrical resistivity of Brass is 7.0

a. Determine the circuit of three transistors dynamic RAM cell and define briefly read and write functions. b. Write short note on factors influencing choice of layer for wiring

Q. Give a general account of common drain amplifier? The output is taken over the source terminal and when the dc supply is replaced by its short circuit equivalent, the drain

Explain Mobility . Average drift velocity of electrons (e - ) in an applied field is proportional to the field, the absolute magnitude of the proportionality factor eq/m, termed

Q. A two-winding system has its inductances given by where k 1 and k 2 are constants. Neglecting the winding resistances, derive an expression for the electric force when

Q. The quantum levels of a quantizer are separated by the step size δv = 0.2 V, with the lowest and highest levels of-3.3 V and +3.3 V, respectively. A sequence ofmessage sample

Encoder The encoder is a logic  circuit  which  provides  the binary code is  output  for each input each input signal. In  other words  we can  say that it performs  just  op

Configured dual processor architecture  In centralized SPC, dual processor architecture can be configured to operate in following one of three modes: 1.  Standby mode: In

i want to plot a system current transfer matrix element vs frequency curve.how can i draw it?any suggestion.