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
Prepaid Meters Prepaid metering is a system whereby consumers purchase electricity by a smart card. The amount paid together along with other information is encoded in the sma


The resistance of 1.5 km of wire of cross-sectional area 0.17 mm 2 is 150Ω. Determine the resistivity of the wire.

shockely equation?

We are given an M=32 pulse sequence of slow time data, collected with PRF = 10 kHz.  We want to use a Cooley-Tukey radix 2 FFT algorithms to compute the Doppler spectrum of the dat

Q. A 100-turn coil in the configuration of is rotated at a constant speed of 1200 r/min in a magnetic field. The rms induced voltage across the coil is 1 kV, and each turn has a le

Q. In the circuit shown in Figure, use the ideal op-amp technique to find: (a) v o as a function of v i . (b) The voltage at A.

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

1. Introduction : Theory:   The voltage measured across a load follows the Ohm's law which says that the current passing through a conductor between two points is direct

Static or Electronic Energy Meters Electronic energy meters are replacing traditional electromechanical meters in several residential, commercial and industrial applications s