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

Cpu based exchange, CPU Based Exchange:   In centralized control, all contr...

CPU Based Exchange:   In centralized control, all control equipment is replaced by a single processor which should be quite powerful. It should be capable of processing 10 to 100 c

Power machines., name two types of axial flow turbines

name two types of axial flow turbines

Calculate the thermal velocity of an electron, Question: a) Describe t...

Question: a) Describe two mechanisms by which electrons can be excited from the valence band to the conduction band? b) Given that the direct-band gap energy for Gallium N

The time constant of the field winding, The field winding of a 200 V d.c. m...

The field winding of a 200 V d.c. machine has a resistance of 20? and an inductance of 500mH. Calculate: (a)  The time constant of the field winding (b)  The value of curr

compute the cavity , Consider the optical cavity shown below. (...

Consider the optical cavity shown below. (a) Compute the photon lifetime. (b) Compute the cavity Q (assume that the wavelength region of interest is 500nm). (c) Su

Vlsi, what is the difference between latch and flipflop

what is the difference between latch and flipflop

Schematic symbols, Schematic Symbols The junction gate field-effect t...

Schematic Symbols The junction gate field-effect transistor or JFET gate is sometimes drawn in the middle of the channel (in place of at the drain or source electrode as in t

Demand side management, Demand Side Management Demand side management ...

Demand Side Management Demand side management refers to programmes implemented through utilities to modify consumer load profile. Energy efficiency programmes decrease energy

Instruction size , Instruction size As we  have seen already  that eac...

Instruction size As we  have seen already  that each instruction has two parts Opcode ( Operation  Code) Which  tells  the types  of operation  to be  performed .

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