subject

# Your Name - DATE # To_lowercase. asm-- A program that convert uppercase to lowercase # Registers used: # That's your turn!!! Put used registers here. .data string: .asciiz "HeLlo WoRld" # We want to lower this string newline: .asciiz "\n" .text main: la $t0, string # Load here the string toLowerCase:18 lb $t2, 0($t0) # We do as always, get the first byte pointed by the address beqz $t2, end # if is equal to zero, the string is terminated #if (character >= 'A' || |Put your code here | || upperCaseTest2: # && character <= 'Z') || |Put your code here | || continue: # Continue the iteration addi $t0, $t0, 1 # Increment the address j toLowerCase isUpperCase: # add 32, so it goes lower case || |Put your code here | || sb $t2, 0($t0) # store it in the string j continue # continue iteration as always end: li $v0, 4 # Print the string la $a0, string syscall li $v0, 4 # A nice newline la $a0, newline syscall # We have done, exit the program li $v0, 10

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:30
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
The qwerty keyboard is the most common layout of keys on a keyboard
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
What percentage of teens plays video games? a.97% b.100% c.74% d.50%
Answers: 1
You know the right answer?
# Your Name - DATE # To_lowercase. asm-- A program that convert uppercase to lowercase # Registers u...
Questions