	.text
main:
	
	# prueba de overflow
	addi $t1, $zero, 0x7FFFFFFF # no ensambla en PCSpim, se cambia por las sig. 3 lineas
#	lui $s0, 32767
#	ori $s0, $s0, 65535
#	add $t1, $zero, $s0

#	add $t2, $t1, $t1    # genera overflow
	addu $t2, $t1, $t1   # no genera overflow

	li $t1, 0x80000000
	li $t0, 2
#	sub $t2, $t1, $t0    # genera overflow
	subu $t2, $t1, $t0   # no genera overflow

# The program is finished. Exit.
	li $v0, 10          	# system call for exit
	syscall               	# Exit!
	