Logo Studenta

average

Esta es una vista previa del archivo. Inicie sesión para ver el archivo original

.data
	vector:	.word 4 5 6 7 8 2 1
	size: 	.word 7
.text
.globl main
	main: 
		#########################
		# INSERT YOUR CODE HERE #
		#########################
		li $v0, 10
		syscall
# METHOD AVERAGE 
# Receives as first parameter the direction of the first element of the vector.
# Receives as second parameter the size of the vector. 
# Returns the calculated average
	average:
	#########################
	# INSERT YOUR CODE HERE #
	#########################
	jr $ra

Otros materiales