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

Describe properties of the conducting materials, Describe properties of ...

Describe properties of the conducting materials . Conducting materials are classified by low resistivity materials and high resistivity materials. Low resistivity mater

Find the voltage , 1. Find the current through each component, in pola...

1. Find the current through each component, in polar form, using mesh analysis. The source voltages are rms with an angle of 0 degrees. 2. Find the current t

Induction motor, principle and operation of 3phace induction motor

principle and operation of 3phace induction motor

500Mhz Collpitts Oscillator, How to design an Oscillator Circuit (500 MHz r...

How to design an Oscillator Circuit (500 MHz range) with no Op amps?

Low pressure gas hazards, Low Pressure Gas Hazards : Safety screens and wi...

Low Pressure Gas Hazards : Safety screens and wire-mesh guards should be placed round evacuated glassware and safety goggles or a face shield must be worn against the possibility

Electric Optic Device, Transmission Through a LiNb0 3 Plate Examine the tr...

Transmission Through a LiNb0 3 Plate Examine the transmission of an unpolarized He-Ne laser beam (?o= 633 nm) normally incident on a LiNb0 3 plate (ne = 2.29, no = 2.20) of thickn

What is the value of the lsb resistor, Q. For a 10-bit R-2R ladder-network ...

Q. For a 10-bit R-2R ladder-network D/A converter with an MSB resistor value of 10 k, what is the value of the LSB resistor?

Why we need digital systems, Q. Why we need digital systems? EASIER TO ...

Q. Why we need digital systems? EASIER TO PROCESS: For the reason that digitized information breaks all information into discrete units the information is easier to process and

Discuss how wavelet transform is suitable, Q. Discuss how Wavelet Transform...

Q. Discuss how Wavelet Transform is suitable for each application below. You can give examples  if you need to. a) multi-resolution analysis of signals and images b) space-fr

Vlsi, what is the difference between latch and flipflop

what is the difference between latch and flipflop

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