Find the sum of the elements of an array called list1

Assignment Help Basic Computer Science
Reference no: EM13208361

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.

Reference no: EM13208361

Questions Cloud

Observing classrooms for improving education : Which of the following researchers, during the late 1880’s, argued for the importance of observing classrooms for improving education?
How and why would ejecta affect short term climate : Many things can happen when a large NEO strikes earth. Consider only ejecta for a moment. How and why would ejecta affect short term climate?
Create two constructors : Create two constructors (default and initialization), accessor (get/set) methods, a printInfo method, a toString method, a method deposit that will increase the balance by a specified amount returning nothing.
Script of dialogue between two medical professionals : Respond to other students by adding anything they may have missed, correcting any errors, complimenting them on proper usage, or expanding their discussion.
Find the sum of the elements of an array called list1 : 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.
Write an algorithm to compute a student average grade : Weight is 20, maximum score is 75 iii. Final exam - Weight is 30, maximum score is 100 As an example, if a student scores 100 on the Homework Assignments, 55 on the Midterm exam and 85 on the Final exam, then their average grade is rounded to 82.
Create an equally weighted portfolio : Create an equally weighted portfolio of five computer software stocks. Is such a portfolio a diversified portfolio? What is the beta of the portfolio? What is the expected return of the portfolio?
Natural environment of a bird in an artistic composition : If an artist wanted to emphasize the natural environment of a bird in an artistic composition, the use of which medium might be most appropriate?
Calculate the total of the scores by using while loop : Write a program to calculate the average of the class by following steps: 1. Ask user input how students in the class 2. Use random function to generate the score (between 0 and 100) for each student and calculate the total of the scores by using ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Allows the user to choose insurance options

Write an application that allows the user to choose insurance options in JcheckBoxes. Use a ButtonGroup to allow the user to select only one of two insurance types

  Modify solution and categorize it using big-theta notation

Sometimes a slight change in the problem can significantly modify form of its solution. For instance, determine simple algorithm for solving following problem and categorize it using big-theta notation.

  Creating modular program to enter monthly costs

Create a modular program which asks the user to enter monthly costs for expenses given incurred from operating his or her automobile.

  Create system for payment to contributors using smil and svg

Using SMIL and SVG, how would you execute a system for making sure payment to contributors based on usage of their contribution?

  Determine integer to divide maximum number of partial sums

Now, given sequence, can you determine the integer M (L ≤ M ≤ U) which divides maximum number of partial sums of the sequence?

  Asks a user to enter the radius of a circle

Write a program that asks a user to enter the radius of a circle, and calcualtes the area and the circumference. The program should be written using the following methods.

  Explain the difference between a fluorescence emission spect

Explain the difference between a fluorescence emission spectrum and a fluorescence excitation spectrum. Which more closely resembles an absorption spectrum?Why do some absorbing compounds fluoresce but others do not?

  Identify all substrings to create one of five given words

Given a string of letters, identify all substrings that create one of five given words. For example, if the words (arguments) are: structure; such; system; blue.

  Reverse a sixteen-bit binary number by lc program

How to reverse a 16-bit binary number by LC-3 program? Program should assume that the word to be reversed is stored in memory location x3100.

  Why chain of custody must be followed in investigation

You are a computer forensics investigator for a law firm. The firm acquired a new client, a young woman who was fired. What is chain of custody and why must it be followed in investigations?

  Decimal digit in bcd

Design a combinational circuit with four input lines that represent a decimal digit in BCD and four output lines that generate the 9's complement of the input digit.

  Explaining health insurance portability-accountability act

Based on your knowledge of IT security management, argue for or against assertions that Epworth system is in compliance with Health Insurance Portability and Accountability Act (HIPAA).

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