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

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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