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

  Finding instruction format for indirect addressing

Determine the instruction format, considering that there is no bit for indirect addressing.

  What is the value of x given the specified value for y

What is the value of X given the specified value for Y (both X are 8-bit unsigned values): /* which is 10100101 in Binary; a) Y=0xA5; X=Y & 0x0F; b) Y=ox88; X=Y | ox83; C) Y=0x25; X=Y && ~Y;

  Examine about direct cash-payment method

Examine about Direct Cash-Payment method

  Takes a string as input and returns a string

Write a method that takes a String as input and returns a String containing the middle character of the String if the length of that String is odd.

  Explaining drain corporate budgets and ultimately profits

First of all it eliminates requirement of hardware, downloads and implementations which drain corporate budgets and ultimately profits. It takes companies only a third of the expenses that they will incurred to have their companies running.

  Create a driver class to instantiates-updates several object

Create a driver class called FlightTest whose main method instantiates and updates several Flight objects. Two classes are required for this project: Flight and FlightTest.

  Related to web services

A review paper usually should include multiple (about 5) references. I would like to see references from referred conference proceedings or journals.

  . write down each interaction with smartphone

Consider your smartphone as a system and use its calendar to set a calendar event with a reminder for your birthday. Write down each interaction between you and your smartphone as a scenario. Record all the interactions, including any feedback the sm..

  Study impact of global environmental policy

Consider how neighboring countries are affected, also emergent issues like new arctic shipping routes, or the international interest in Africa's natural resources. Study impact of global environmental policy associated with these issues.

  Explain how has science enhanced quality of life

Explain typical day in your life from time you wake up, until time you go to bed. Explain how science influences you and your routine throughout the day.

  Itsec measurably show practical effectiveness of security

To what extent does ITSEC quantitatively and measurably illustrate practical effectiveness of the security measures it mandates?

  Relationship between certifications and performance

Describe the relationship between certifications and performance? What does "performance" mean and how do you measure it?

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