Program analysis , Electrical Engineering

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.

Posted Date: 4/5/2013 1:21:33 AM | Location : United States







Related Discussions:- Program analysis , Assignment Help, Ask Question on Program analysis , Get Answer, Expert's Help, Program analysis Discussions

Write discussion on Program analysis
Your posts are moderated
Related Questions
Assuming that the receiver sends a XOFF signal when the receive buffer is P% full in order to avoid any data or packet loss.

Find the transmission bandwidth required of a data telemetry system that is to handle three different signals with bandwidths W 1 = 1 kHz, W 2 = 2 kHz, and W 3 = 3 kHz, by emplo

Q. At the two terminals (A, B) of a one-port network, the voltage and the current are given to be v(t) =200 √2 cos (377t + 60°) V and i(t) = 10√2 cos(377t + 30°) A. (a) Determin

Q. The magnetization curve taken at 1000 r/min on a 200-V dc series motor has the following data: Field current, A: 5 10 15 20 25 30 Voltage, A: 80 160 202 222 236 244 Th

Low Investments in Transmission and Distribution System The investment on T&D system in our country has commonly been lower than that on generation. It is hugely believed in

I have a closed loop or feedback system and i want to convert it into electrical circuit. please give me example about this

Q. What are frequency response curves? How are they made? Every amplifier has a frequency-response curve associated with it. They provide a "picture" of the performance of an a

Q. What is the need of MODEM in data communication? Need of Modem: Modems are used to interface computers, computer networks in addition to other terminal equipment to teleco

Financing the power sector projects:   Massive investment is required for the targeted expansion of the sector. It has been estimated at Rs. 9 lakh crores in the further 10 yea

Actual Loading Method This method is employed commonly for testing of single phase meters within laboratory. On a meter testing bench that is equipped along with several taps