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

Bjt, what is compensation of bjt

what is compensation of bjt

Explain ferroelectricity, Explain ferroelectricity. Ferroelectricity: ...

Explain ferroelectricity. Ferroelectricity: - Materials of ferroelectric have a high dielectric constant that is non-linear that is, this depends to a considerable extent on t

Determine excitation voltage and power angle, A 500KVA, 6 pole, 500v, 3 pha...

A 500KVA, 6 pole, 500v, 3 phase, wye-connected synchronous generator has a synchronous impedance of 0.1 + j1.5 ohms per phase. If the generator is driven at 1000 r.p.m., what is th

What is extended memory system, What is XMS? XMS: The memory system is ...

What is XMS? XMS: The memory system is splits in three major parts as: system area, XMS (extended memory system) and TPA (transient program area). The kind of microprocessor in

Sketch voltage and the energy stored in the capacitor, Q. Considering the c...

Q. Considering the circuit shown in Figure, sketch v(t) and the energy stored in the capacitor as a function of time.

Give the properties and application of pvc, Give the properties and applica...

Give the properties and application of PVC. Polyvinylchloride (PVC):  It is replacing rubber to a great extent in veracious applications. There is PVC insulated (non-sheathed)

Ohmic region operation, Q. In a depletion MOSFET for which V P = 3 V and I...

Q. In a depletion MOSFET for which V P = 3 V and I DSS = 11mA, the drain current is 3mA when v DS is set at the largest value that will maintain ohmic region operation. Find v G

The cross-sectional area of a wire of the same length, Some wire of cross-s...

Some wire of cross-sectional area 1mm 2 has a resistance of 20Ω. Determine: a)  The resistance of a wire of the same length and material if the cross-sectional area is 4 mm 2 .

Network analysis software, Network analysis software: GIS with a socke...

Network analysis software: GIS with a socket for network analysis software (Sec. 11.4) and availability of load related data from AMR based meter data acquisition system will

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