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

Illustrate bandstop filter, Q. The dual situations is shown in Figure , in ...

Q. The dual situations is shown in Figure , in which a high-pass and a low-pass filter are connected in parallel to produce a bandstop filter. With ω CLP = 10 CHP = 50, ω 0

Permanent magnets are made of which type of material, Permanent magnets are...

Permanent magnets are made of (A)  Soft magnetic materials.            (B) Hard magnetic materials. (C) Semi conductors.                        (D)  Super conductors.

Explain working of liquid-crystal display, Q. Explain Working of Liquid-cry...

Q. Explain Working of Liquid-crystal display? This display needs only microwatts of power (over a thousand times less than a LED) and is used in such devices as electronic wris

Standby mode, Standby mode:In this mode, one processor is active and other ...

Standby mode:In this mode, one processor is active and other is on standby, both software and hardware wise. Standby processor brought online when active processor fails. A vital r

Determine and sketch il for inductance, Q. For the circuit of Figure, deter...

Q. For the circuit of Figure, determine and sketch i L (t) and vC(t) for inductance values of (a)3/4 H, (b) 2/3 H, and (c) 3/17 H. Note that the inductance values are chosen her

Find the voltage drop and current through each component, A 15 volts source...

A 15 volts source is applied to a series 150 μH inductor and 169 pF capacitor. The resistance of the inductor plus the connecting wires is 1,6 Ω. Determine the voltage drop and

Lift interface circuitry, Draw the circuit diagram for  the  connections to...

Draw the circuit diagram for  the  connections to the EPROM and  just one RAM device  as defined  in  the memory map in question  3. You must show all the connections required to o

Depletion zone in p-n junction, Depletion Zone in P-N Junction The pow...

Depletion Zone in P-N Junction The power of the depletion zone electric field gets increases as the reverse-bias voltage increases. One time the electric field intensity incre

Customer indexing, Customer Indexing: Customer indexing (CI) is a meth...

Customer Indexing: Customer indexing (CI) is a method for enumerating the total number of consumers in a utility and tagging them to their respective poles, transformers and f

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