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 current in the circuit and the voltage, Q. Two identical junc...

Q. Two identical junction diodes whose volt-ampere relation is given by Equation in which I S = 0.1 µA, V T = 25 mV, and η = 2, are connected as shown in Figure. Determine the cu

Low voltage at transformers, Low Voltage at Transformers While the vo...

Low Voltage at Transformers While the voltage applied to induction motor varies from the rated voltage, its performance is affected. Against permissible voltage variation of

Sources of power dissipation in cmos logic, Describe the three main sources...

Describe the three main sources of power dissipation in CMOS logic. Hence calculate the power dissipated in a CMOS ASIC of 40,000 gates operating at a frequency of 133MHz with a s

Single direction pump, Modify the design of the circuit shown in FIGURE and...

Modify the design of the circuit shown in FIGURE and draw a circuit diagram to provide rotary actuation in both directions using a single direction pump (to replace the bi-directio

Why fet is a voltage sensitive device, Q. Why FET is a voltage sensitive de...

Q. Why FET is a voltage sensitive device explain from the drain characteristics? The JFET consists of a thin layer of n-type material with two ohmic contacts,the source S and t

C programming., #queComputers are frequently used in check-writing systems,...

#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by

Determine the transfer function in notch network, Q. The twin-tee or notch ...

Q. The twin-tee or notch network shown in Figure is often used to obtain band-reject characteristics. (a) Determine the transfer function V 2 /I 1 . (b) Find the angular freq

What is microprocessor, Write short notes of the following. a)    Microproc...

Write short notes of the following. a)    Microprocessor b)    Modes of data transfer. c)    I/O processor d)    Associative memory e)    Software and Hardware interrupt

Packet switching over circuit switching, Q. Justify disadvantages and advan...

Q. Justify disadvantages and advantages of packet switching over circuit switching? Ans: Comparison of circuit switching and packet switching showing disadvantages and advan

Define the objectives of load flow analysis, Define the Objectives of Load ...

Define the Objectives of Load Flow Analysis The objectives of load flow analysis are: (i) To analyse an existing power system, future expansion or a new power system plan.

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