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

Customer indexing scheme, Customer Indexing Scheme: Customer indexing ...

Customer Indexing Scheme: Customer indexing and asset codification system provides a platform to enable the utilities to generate verifiable and validated data of consumers an

Define time-shifting precedes time-reversing and vice versa, Define Time-Sh...

Define Time-Shifting Precedes Time-Reversing and Vice Versa Signal x[n] is time-shifted by m samples (delay in time) giving x[n - m]. This signal is then reversed at n = 0 givi

Thermodynamics, what is the application of thermodynamics in electrical eng...

what is the application of thermodynamics in electrical engineering?

External frequency compensation of operational amplifier, Q. External Frequ...

Q. External Frequency Compensation of operational amplifier? For applications requiring a more extended high-frequency response, there are op amps with no internal compensation

P type material - semiconductor material, p type material: p type ma...

p type material: p type material is formed by doping aerial  crystal with impurity atoms having three valance electrons. The diffused impurities with three valence electrons

Transmission - salient features of nep, Transmission: The policy empha...

Transmission: The policy emphasizes in which adequate and timely investment along within efficient and coordinated operation is essential for developing a robust and integrate

What is the use of latch signal on the ad0-ad15 bus, What is the  use of l...

What is the  use of latch signal on the AD0-AD15 bus in an 8086 system? Latch signal is used to load the data those are fetched from memory to bus.

Define diffusion length, Define diffusion length: Sol. Diffusion len...

Define diffusion length: Sol. Diffusion length is defined as the distance, travelled by free carriers before recombining. It may also be defined as the average distance cove

Opimization, I want to know latest optimization technique and algorithm for...

I want to know latest optimization technique and algorithm for modal reduction and pid controller design

Explain the working of asynchronous (ripple) counters, Explain the Working ...

Explain the Working of Asynchronous (Ripple) Counters? An external clock is connected to the clock input of the first flip-flop (FF0) only. Thus FF0 changes state at the falli

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