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

Shld store hl pair direct instruction , SHLD Store HL pair Direct Instructi...

SHLD Store HL pair Direct Instruction This  instruction is used to store the contents of HL  register  pair to  memory  address specified  in the  instruction and the  next ad

Microprocessor, highest priority interrupt in 8085 microprocessor

highest priority interrupt in 8085 microprocessor

What is meaning of parallel in - serial out shift register, What is the Mea...

What is the Meaning of Parallel In - Serial Out Shift Registers? A four-bit parallel in - serial out shift register is shown below D0, D1, D2 and D3 are parallel inputs

Determine the resonant frequency and bandwidth, Q. A gyrator is sometimes u...

Q. A gyrator is sometimes used in integrated circuits to simulate inductances. Consider the circuit of Figure consisting of a gyrator. (a) Show that the impedance as seen to the

Frequency-controlled induction-motor drives, Q. Frequency-controlled induct...

Q. Frequency-controlled induction-motor drives ? The converters employed for variable-frequency drives can be classified as: • Voltage-source inverter (which is the only one

Explain the suitability of aluminium, Explain the suitability of aluminium ...

Explain the suitability of aluminium  that is used as electrical conducting materials. Aluminium : Conductors are appropriate for ambient and very high temperature. Use of alu

Develop a block diagram for a bcd encoder, Q. Based on the 8421 BCD code fo...

Q. Based on the 8421 BCD code for decimal digits 0 through 9, develop a block diagram for a BCD encoder and its implementation scheme.

Static electricity with electrical equipment, Static Electricity : This is...

Static Electricity : This is produced when two substances are rubbed together; the substances may be solids, liquids, or gases. Typical sources of static electricity are: i) dr

Current trasnsformer, A 13.8 kV feed er circui t breaker has a 600:5 multir...

A 13.8 kV feed er circui t breaker has a 600:5 multira tio curr ent transform er with charact eristics as show n in Figure 5.11. Th e max - imum load on the feed er is 80 A pri mar

Electrocardiogram, i av designed my circuit in proteus and written the java...

i av designed my circuit in proteus and written the java graphical code for analysis of the results....i need help on how i can run this circuit in proteus and get the results in 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