Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in ARM assembly for Raspberry Pi . Please provide explanation and output Write an assembly language program to sum up a list of 5 0

in ARM assembly for Raspberry Pi. Please provide explanation and output
Write an assembly language program to sum up a list of 50 numbers that are read in and stored in memory. Here is the algorithm you are to translate .
* Read in 50 numbers A1, A2,..., A50Set Sum to 0Set i to 1While the value of i is less than or equal to 50Sum = Sum + A i = i +1End of the loopWrite out the value of Sum
Please Use this set up.
.text.global main
main:
#Save return to Os on stack
SUB sp,sp #4
STR lr,[sp,#0]
#Enter program here
#return to the OS
LDR lr,[sp,#0]
ADD sp,sp, #4
MOV pc, lr
.data

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago

Question

3. Would you say that effective teamwork saved their lives?

Answered: 1 week ago