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
Each year the University computer society holds a „virtual fair? in Second Life in order to raise money for charity. The main attraction at the event is a lucky dip, where attendee


TRANSISTOR CONFIGURATIONS: Transistor circuits may be categorized into three configurations based on which terminal is common to both of the input and output of circuit. Th

Q. Describe about digital communication systems fl A digital signal can be deflned as having any one of a finite number of discrete amplitudes at any given time. The signal coul

Q. Split-phase or resistance-split-phasemotor? Split-phase or resistance-split-phasemotors: Split-phasemotors have two statorwindings (amainwinding and an auxiliarywinding)with

Q. Consider a pair of coupled coils as shown in Figure of the text, with currents, voltages, and polarity dots as indicated. Show that the mutual inductance is L 12 = L 21 = M by

a. Explain the meaning of amplitude modulation? Show that the AM output having two sidebands and the carrier frequency. b. Illustrate that the equivalent parallel impedance of a

Unconditional Jump JMP ( Unconditional Jump ) Instruction: This  instruction is used to transfer  the execution to the  specified  memory  address unconditionally ( does not c

Q. A 25-kVA, 2200:220-V, 60-Hz, single-phase transformer has an equivalent series impedance of 3.5 + j4.0  referred to the primary high- voltage side. (a) Determine the highest

Question: (a) Consider the following RC admittance function: (i) If the function is to be realised using the Cauer II Form, find the values of the different components