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
Modern complex systems are normally constructed by interconnecting sub-units. Therefore the systems engineer is often not too concerned about the details of what is inside these

I want simulink model for carrier based pwm method

You have been requested by your Senior Engineer to design an Engine Control Unit (ECU) and prepare a report detailing your proposed solution. The client requires a design for a mic

Working of Hartley oscillator : When the collector supply voltage Vcc is switched on, the capictor gets charged. The capacitor discharges through the inductor, setting up oscil


why Direct current flow through semiconductors but alternating current cannot flow?

Types of bias circuit for Class A amplifiers: There are five common types of biasing circuits used with Class A bipolar transistor amplifiers: A. Fixed bias B. Collector

Give some applications of Hall Effect. Applications of Hall Effect: 1. This is used for finding whether a semi-conductor is N-type or P-type. 2. This is used in finding

Q. Basic principles of electromechanical energy conversion? Energy available in many forms is often converted to and from electrical form because electric energy can be transmi

Compact Disc - Read Only Memory. A CD-ROM is any compact disc which having computer data. These discs can store enormous amounts of data (up to 640 megabytes). If there is a large