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

Can you show binary number formats, Q. Can you show Binary Number Formats? ...

Q. Can you show Binary Number Formats? We in general write binary numbers as a sequence of bits (bits is short for binary digits) and we have defined boundaries for these bits.

Illustrate function of ccitt, Level 1 is means of sending bit streams over ...

Level 1 is means of sending bit streams over a physical path. It uses times lot 16 of a 2 M bit/s PCM system or times slot 24 of a1.5 M bit/s system. Level 2 performs functions

Hall effect, Describe hall effect?also describe it''s mathematical analysis...

Describe hall effect?also describe it''s mathematical analysis and it''s properties

Can you explain octal to binary conversion, Q. Can you explain Octal to Bin...

Q. Can you explain Octal to Binary Conversion? It is also simple to convert from an integer octal number to binary. This is completed by: Convert the decimal number

Determine the transfer functions, The Ward-Leonard system, which is used in...

The Ward-Leonard system, which is used in the control of large dc motors employed in rolling mills, is a highly flexible arrangement for effecting position and speed control of a s

Output characteristics , Output Characteristics The output  or drain  ...

Output Characteristics The output  or drain  characteristic of N - Channel  power MOSFET. When gate  is made positive with respect to the source an N type  channel  is formed

Determine phase - voltage and power, Determine phase - voltage and power: ...

Determine phase - voltage and power: A balanced star connected load is supplied from a symmetrical 3-phase 440 Volt system. The current in each of the phase is 40 Amp and lags

Can you explain working principle of tl - ac alternator, Can you explain wo...

Can you explain working principle of TL/AC alternator? Ans . The core of the stator which is completely induced by the field coils, will get a residual magnetism if excited b

Explain register direct and indirect data addressing mode, Explain Register...

Explain Register Direct and Indirect data addressing mode (with examples) available in microprocessors. Register Direct Modes and Register Indirect Modes: Does not giv

Determine the response of a series r-c circuit, Determine the response of a...

Determine the response of a series R-C circuit to a SQUARE wave. Explain how the time constant affects the waveform observed across the components. Illustrate your answer by means

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