Write a program to find the sum of the elements of an array

Assignment Help Electrical Engineering
Reference no: EM13255292

Write a program to find the sum of the elements of an array called list1. The size of list1 is four bytes. The values of list1 are $FF, $1, $FE, and $02. To check your work, the sum should become $0200. The requirements for writing this program are as follows.

-You must use a loop and count variable (i.e. count must be defined in the data section) as a loop counter.

- Clear both Registers A and B using CLRA and CLRB instructions.

-Use indexed addressing mode to access the elements of the array using Register X as the index register. The instruction LDX #list1 places the array list1 address into Register X.

-Add each element to Register B.

-Use the branch instruction BCC to check if there is a carry after the addition of each element. BCC means the Branch if Carry flag is

clear.

-If there is a carry, add 1 to Register A.

-The final result should be in Register A and B. A. Copy and paste the source code. B. Copy and paste the register window at the second iteration where the carry becomes set. Highlight the carry flag to show that it is set.

Reference no: EM13255292

Questions Cloud

What is the probability of observing a positive test result : A drug test for college athletes will result in three possible test results: Positive, Negative or Inconclusive. For a drug user the probability of these outcomes is 0.65, 0.06 and 0.29 respectively.
What is the phase angle between voltage and current : What is the rms current in an RL circuit when a 60.0Hz 240V rms ac voltage is applied, What is the phase angle between voltage and current
What is the maximum current in the circuit : A sinusoidal voltage ?v = (100 V) sin (200t) is applied to a series RLC circuit with L = 40 mH, C = 120 ?F, and R = 32 ?.  What is the maximum current in the circuit
Find one article on computer or information technology : Find one article on computer or information technology
Write a program to find the sum of the elements of an array : Write a program to find the sum of the elements of an array called list1. The size of list1 is four bytes. The values of list1 are $FF, $1, $FE, and $02. To check your work, the sum should become $0200. The requirements for writing this program ar..
Find the effective coefficient of kinetic friction : A potter's wheel having a radius 0.49 m and a moment of inertia 10.9 kg·m2 is rotating freely at 52 rev/min. Find the effective coefficient of kinetic friction between the wheel and the wet rag
What is the index of refraction of the material of the table : Light is reflected from a transparent coffee table. When the angle of incidence is 63.3°, What is the index of refraction of the material of the table
Receive the measurement for the diam-eter of a circle : Design an algorithm that will prompt for and receive the measurement for the diam-eter of a circle, and calculate and display the area and circumference of that circle. Your program is to continue processing until a sentinel of 999 is entered.
Discuss the interrelationships between healthcare costs : Discuss the interrelationships between healthcare costs, quality, and access from the Roemer model of health services systems. Make suggestions on how one would maximize access and quality while keeping costs low. Now, analyze why these suggestions h..

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Calculate the frequency response of the system at 25 hz

The transfer function of a discrete time system is given by H H(z) = z/(z-0.5) The system has a sampling rate of 100 Hz. Calculate the frequency response of the system at 25 Hz input frequency as a complex number in both rectangular and polar f..

  Find the real power absorbed by each of the impedances

he real power delivered by a source to two impedances, Z1=3+j4 ohm and Z2=10 ohm, connected in parallel, is 1100 W. Determine (a) the real power absorbed by each of the impedances and (b) the source current.

  Determine what is the bit transmission rate

In a PCM system, the number of quantization levels is 16 and the maximum lsignal frequency is 4 kHz.;what is the bit transmission rate.

  Determine what is the maximum zener current allowed

For an ideal Zener, is the Zener voltage is 15v and the power rating is 750mW, what is the maximum zener current allowed What is the relationship between base current and collector current called

  Presume the information portion of a packet contains

Suppose the information portion of a packet contains 10 bytes consisting of the 8- bit unsigned binary ASCII representation of string "Link Layer".

  Find what is the rated input power of the motor

The Y-Connected synchronous motor whos nameplate is shown in Figure 1 has a per-unit synchronous reactance of 0.9 and a per-unit resistance of 0.02. a.) What is the rated input power of this motor

  Calculate the phase voltage and line voltage

A three 120 - V power line is Y-connected. The three phase outputs are marked as a,b,c. The neutral is marked as n. The phase sequence is abc. It is connected to a balanced Y- connected load, with the impedance is 12 + j 9 omega.

  Calculate the minimum pwm frequency for a dc motor

Calculate the minimum PWM frequency for a small permanent magnet DC motor with a time constant of 15 milliseconds.

  Design logic program that will track activity for turnstile

design a logic program that will track the activity for one turnstile. there will be three inputs PHASEA, B and RESET. there will be no output. the program should be able to track 999 total guests.

  Calculate the amout of mmf generated by a coil

calculate the amout of mmf generated by a coil of wire having 1300 turns and carrying milliamperes of current?

  Find a value d such that x is in the range

Let the random variable X denote the annual snow fall amount at a well known Utah ski resort. X has a normal distribution with mean 500 inches and standard deviation 50 inches. (a) What is the probability that in a given year the snow fall will be ..

  Determine the motor speed at the given load

A 230V shunt motor having an armature resistance of 0.05  and a field resistance of 75 draws a line current of 7 A while running light at 1120 rev/min. The line current at a given load is 46 A.

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