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
Determine a normalized frequency at 820nm for a step index fibre having 25µm core radius. Given n 1 =1.48 and n 2 =1.46.Also calculate how several modes propagate within this fibre

Q. Advanced Mobile Phone System? Cellular systems employed cells with a radius in the range of 5-18 km. The base station usually transmitted at a power level of 35 W or less, a

Saturation or active mode While V GS   > V th  and  V DS   > (V GS   - V th ) The switch is turned on, and a channel has been made that allows current to flow

Figure shows an isolated three-phase load supplied from a 33 kV/11 kV substation via a 30 km long three-phase 11 kV overhead line. The overhead line has the following series parame

State Kirchoff's Current Law Kirchoff's Current Law (KCL) describes at any junction in an electric circuit the total current flowing towards that junction is equivalent to th

For a vehicle suspension, a basic two-degree-of-freedom "quarter-car" model would be slightly more complicated than the spring-mass-damper system I chose to study in Figure 1. The

The goal of this project is to model a system and to design a controller for the system so that the closed-loop system performs satisfactorily.

The armature of a 6 pole, 600 r.p.m. lap wound generator has 90 slots. if each coil has 4 turns, how do you calculate the number of conductors to calculate the flux per pole to gen

Q. What do you mean by Negative Clamper? During the positive half cycle the diode conducts and acts like a short circuit. The capacitor charges to peak value of input voltage V

Q. Consider an infinitely long, straight wire (in free space) situated along the z-axis and carrying current of I A in the positive z-direction. Obtain an expression for ¯B everywh