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 coil resistance, Relays a) Sketch the schematic symbol for...

Relays a) Sketch the schematic symbol for a relay with a single pole changeover switch b) Determine the coil resistance and determine the current at 12Vdc c) Connect the r

Determine the expression for strain energy, A 3.2m long bar of 16mm in diam...

A 3.2m long bar of 16mm in diameter hangs vertically and has a collar attached at the lower end calculate the max. stress induced when a weight of 80 kg falls fromaheight of 32mm o

Inr increment instruction, INR (Increment )  Instruction This  instruct...

INR (Increment )  Instruction This  instruction is used to  increment  the contents  of any  register or memory  location by one. There  are two  format.

Determine the current and voltage for n-channel jfet, Q. An n-channel JFET ...

Q. An n-channel JFET with A = 300 V, P = 2 V, and I DSS = 10 mA is to be operated in the active mode. Determine i D when v DS = 10 V and v GS =-0.5V.

Explain factors affecting permeability and hysterisis loss, Explain the fac...

Explain the factors affecting permeability and hysterisis loss. Factors affecting permeability and hysterisis loss: When the initial permeability is high, the hysterisis los

Design a water supply scheme for a station, Q. Design a water supply scheme...

Q. Design a water supply scheme for a station, adopting the following data - a) Source of water - River flow at a distance of 1 km. b) Requirement of water - 1 lack gallons p

What is an oscillator and show the advantages of oscillators, Q. What is an...

Q. What is an oscillator? Discuss the advantages of Oscillators ? An oscillator is a system consisting of active and passive circuit elements to produce a sinusoidal or other r

Explain about communication systems, Q. Explain about Communication Systems...

Q. Explain about Communication Systems? Even though most modern communication systems have only been invented and developed during the eighteenth and nineteenth centuries, it i

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