This Assignment will cover programming
on floating point numbers, random numbers and syscall.
Your
program should create an array which has 15 floating numbers, 3 rows and 5
columns (these are all single precision floating point numbers).
Write and
test a MIPS assembly language program to implement the following tasks
·
The starting address of floating point numbers is arrayf, you
produce random floating numbers to fill in the arrayf. You need to refer to
syscall to produce random float.
·
Print out the floating numbers located in the arrayf. (loop, also
refer to the syscall and print the float numbers)
·
Calculate the sum of every column, print out the sum of each
column(five columns), note: index every element.
·
Calculate the total sum of 15 elements in this arrayf.
·
Print out the maximum floating point number in this array.
Here given
you some sample codes for the beginning part of your program
.data
arrayf: .word
.space 60
whitespace:
.asciiz " "
newline:
.asciiz "\n"
.text
Required
Submission
1. You are required to submit your Assn6.asm
program on blackboard
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |