Question
Problem: The purpose of this lab is to introduce more complex data manipulation using assembly language. You will be exploring concepts relating to data storage
Problem:
The purpose of this lab is to introduce more complex data manipulation using assembly language. You will be exploring concepts relating to data storage and looping structures while analyzing a random set of grade values. Your program will calculate the minimum and maximum grades along with the average and median grades of the set.
Assignment
Make a project that will allow you to enter a random set of grades and provide storage for the results in RAM. Use meaningful names for your RAM storage locations to help make your code more readable. You should provide locations for your grade data, minimum grade, maximum grade, average grade, and median grade. Allowed grades are between 0-100. You will indicate the end of the grade set with a value of -1.
Test Vectors
V1: 5,4,3,2,1,-1
V2: 0,0,0,-1
V3: 0,-1
V4: 100,100,100,100,-1
V5: 50,60,70,80,90,100,-1
V6: 0,86,37,47,14,94,69,25,54,10,1,24,91,82,5,41,5,50,48,60,39,51,58,58,72,-1
V1 V2 V3 V4 V5 V6
min: 1 0 0 100 50 0
max: 5 0 0 100 100 94
avg: 3 0 0 100 75 44
med: 3 0 0 100 75 48
By using this template in assembly language:
syntax unified .cpu cortex-m4 .fpu softvfp .thumb .section .data .balign array: .word .section .text .balign .global main main: /* WRITE YOUR CODE HERE */ forever: b forever
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started