Program analysis , Electrical Engineering

Assignment Help:

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.


Related Discussions:- Program analysis

Different types of dc generation, Q.   What are the different types of dc g...

Q.   What are the different types of dc generation according to the ways in which fields are excited. Show the connection diagram of each type. Ans. Types of D.C.

Logic Gates, A former employs a servant to look after his form house. He in...

A former employs a servant to look after his form house. He instructs the servant to keep a watch on his goat. So that he does not harm the kitchen garden, when the entrance-door

Centrifugal compressor, hi I need information of Compressor Shaft Impelle...

hi I need information of Compressor Shaft Impellers Coupling Hub Thrust Collars Balance Drum for centrifugal compressor with pecture

Transistor, can you differentiate the alpha,beta and gamma

can you differentiate the alpha,beta and gamma

Explain what happen as the frequency increases, Question: (a) A typica...

Question: (a) A typical RF filter is made up of sections using circuit components. One example of a section is the Inductor-Capacitor (L-C) section. State two other types of

Fet parameters, FET Parameters A basic, low-frequency hybrid-pi model ...

FET Parameters A basic, low-frequency hybrid-pi model for the MOSFET is displayed in figure. The several parameters are as follows. is the transconductance in siemens

Draw a block diagram of a 4-bit pipo register, Q. Draw a block diagram of a...

Q. Draw a block diagram of a 4-bit PIPO register and briefly describe its operation. Q. Taking parallel data from a computer to be fed out over a single transmission line needs

Wheaton bridge with differential amplifier, when strain gauge design give a...

when strain gauge design give accurate measurement on zero and maximum 999kg but not 500kg

R-C phase shift oscillator , Sketch the circuit diagram of a 4- ladder netw...

Sketch the circuit diagram of a 4- ladder network R-C phase shift oscillator and explain its principle of operation. Also determine the gain of the basic amplifier necessary for th

Transformer question, When I read the details of how a transformer works an...

When I read the details of how a transformer works and apply those rules to a transformer where the primary core cross-sectional area is twice that of the secondary, I come up with

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd