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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:30, ahmedislife
Select the correct answer. larry finds it easy to run legacy programs and applications in a virtualized environment. how does the virtualization provider make this possible? a. combines workloads of several underutilized servers to fewer machines b. installs and runs different versions of an operating system on the same computing device c. moves virtual machines from one server to another server at a different location d. streamlines and automates management tasks
Answers: 1
image
Computers and Technology, 22.06.2019 22:20, kaiyerecampbell95
Pp 4.1 design and implement a class called sphere that contains instance data that represents the sphere’s diameter. define the sphere constructor to accept and initialize the diameter and include getter and setter methods for the diameter. include methods that calculate and return the volume and surface area of the sphere (see pp 3.5 for the formulas). include a tostring method that returns a one-line description of the sphere. create a driver class called multisphere, whose main method instantiates and updates several sphere objects.
Answers: 1
image
Computers and Technology, 23.06.2019 10:20, chonawilson4
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
image
Computers and Technology, 23.06.2019 20:50, terryhgivens5349
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
You know the right answer?
# Your Name - DATE # To_lowercase. asm-- A program that convert uppercase to lowercase # Registers u...

Questions in other subjects: