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

Determine the flux densities, In the magnetic circuit shown in Figure (a) t...

In the magnetic circuit shown in Figure (a) the coil of 500 turns carries a current of 4 A. The air-gap lengths are g 1 = g 2 = 0.25 cm and g 3 = 0.4 cm. The cross-sectional are

Current ratio, Current ratio The ratio is mainly used to give an idea ...

Current ratio The ratio is mainly used to give an idea of the company's ability to pay back its short-term liabilities with its short-term assets. The higher the current ratio

Short circuit, what is the time of short circuit ?

what is the time of short circuit ?

Show voltage wave form of rlc series circuit, Q. The voltage wave form of F...

Q. The voltage wave form of Figure is applied to an RLC series circuit with R = 2, L = 2H, and C = 1 F. Obtain i(t) in the series circuit. (Note that the capacitor and inductor va

Determine rms and average value, Determine RMS and average value: Dete...

Determine RMS and average value: Determine RMS and average value of the output of half wave rectifier. Solution The waveform of current, output of the half wave rectif

Simulate the circuit using digital simulation techniques, You are the new c...

You are the new chief PCB designer for a small company who are about to become heavily involved in the design and realisation of digital timing products. Your management wants to p

Add instruction , ADD Instruction Op code  format  of ADD instruction...

ADD Instruction Op code  format  of ADD instruction is Replace  the three bit code  of the register R from   to obtain the op code of the  required ADD instruction . op co

What is the voltage controlled resistance region, Q. What is the Voltage co...

Q. What is the Voltage controlled resistance region?  In this region the JFET can actually be employed as a variable resistor whose resistance is controlled by the applied gate

Calculate the power transferred across the air gap, A three-phase, 5-hp, 22...

A three-phase, 5-hp, 220-V, six-pole, 60-Hz in- duction motor runs at a slip of 0.025 at full load. Rotational and stray-load losses at full load are 5% of the output power. Calcul

Show the characteristics of general - purpose capacitors, Q. Show the Chara...

Q. Show the Characteristics of General - Purpose Capacitors? The working voltage for a capacitor is generally specified by themanufacturer, thereby giving the maximum voltage t

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