I have to have an assignment in by thursday which asks to change lowercase to uppercase but I can only get it to change from uppercase to lowercase. I have tried everything I know and nothing will work. Here's what I have:
.data
str: .asciiz "HeLlO"
ans: .asciiz "Uppercase String ="
end1: .asciiz "\n"
#
.text
.globl __start
main:
la $t1, strnextCh:
lb $t2, ($t1)
beqz $t2, strEnd
addi $t4, $zero, 0x61
sub $t3, $t2, $t4
bgez $t3, l1
add $t2, $t2, 32
sb $t2, ($t1)
l1: add $t1, $t1, 1
j nextCh
strEnd:
la $a0, ans
li $v0, 4
syscall
la $a0, str
li $v0,4
syscall
la $a0, endl
li $v0, 4
syscall
li $v0, 10
syscall