
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These HOMEWOR NOTES are very easy to understand and very helpful to built a concept about the foundation of computers ORGANIZATION and Database Design.The key points in these slide are:Assembly Language Program, Set of Numbers, Positive Numbers, Zero Value, Sentinel Value, High-Level Language Algorithm, Window Capture, Simulator State, Array Values, Word Processor, Window's Clipboard
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Write a ARM assembly language program to solve the following problem.
For a set of numbers stored in an array, calculate the sum of the positive numbers and the sum of the negative numbers. The program should calculate both sums and store them to memory. Numbers in the array with have a zero value (0) being used to signal the end of data (the zero value is acting as a " sentinel " value).
For examle, your .data section for the array values: 10 10 -5 10 -30 10 1510 2010 -1 10 010 will be: AREA SUM_POS_NEG, CODE, READONLY ENTRY
; add your code here
Before you start writing ARM assembly language, write a high-level language algorithm, THEN translate it to ARM assembly language.
See the course web-page for links to download the ARM simulator for Windows at:
For non-Window’s users, you will need to use the Wright Hall 112 and 339 labs.
You should turn in : a print-out of the ARM assembly language program file from inside the Keil uVision 4 IDE a window capture of the simulator state after running your assembly language program with array values: 1010 -5 10 -30 10 1510 2010 -1 10 010 and the POS_SUM result showing 45 10 and NEG_SUM result showing -36 10. You can capture this window by (1) right-clicking anywhere in the window to make it the "currently active" window, (2) while holding down the
Name:____________________