	.data
a:	.space 200
b:	.word -1
m:	.asciiz "hola mundo"

	.text
	
	li $s0, 7
	li $t0, 18

	move $a0, $t0
	jal imprime
	
	# exit
	li $v0, 10
	syscall
	
imprime:
	# push $s0
	sw $s0, 0($sp)
	addi $sp, $sp, 4
	
	move $s0, $ra
	
	jal saludos
	
	move $ra, $s0

	li $v0, 1
	syscall
	
	# pop $s0
	addi $sp, $sp, -4
	lw $s0, 0($sp)

	jr $ra

saludos:
	# push $a0
	sw $a0, 0($sp)
	addi $sp, $sp, 4

	li $v0, 4
	la $a0, m
	syscall

	# pop $a0
	addi $sp, $sp, -4
	lw $a0, 0($sp)

	jr $ra
