This Assignment will cover programming on floating point numbers, random numbers and syscall.

computer science

Description

 

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

 

 


Related Questions in computer science category