in mips if i have this code below how tould i take that string that was inputed and toggle the case. For example "My nAmE is JhON" would output "mY NaMe IS jHon" in other words uppercase toggles to lower case and lowercase toggles to upper case

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 7RA
icon
Related questions
Question

in mips if

i have this code below how tould i take that string that was inputed and toggle the case.

For example "My nAmE is JhON" would output "mY NaMe IS jHon"

in other words uppercase toggles to lower case and lowercase toggles to upper case

6.
.data
7
8
userInput: .space 80
9.
.text
10
-globl main
11
12
main:
# gettin text from the user
li $ve, 8
13
14
15
la $a®, userInput
li $a1, 80
16
17
syscall
18
# displays the name
li $ve, 4
la $a®, userInput
syscall
19
20
21
22
23
# toggles the case
bltu $ve
24
25
26
# end of ile
li $v®, 10
syscall
27
28
29
30
31
Transcribed Image Text:6. .data 7 8 userInput: .space 80 9. .text 10 -globl main 11 12 main: # gettin text from the user li $ve, 8 13 14 15 la $a®, userInput li $a1, 80 16 17 syscall 18 # displays the name li $ve, 4 la $a®, userInput syscall 19 20 21 22 23 # toggles the case bltu $ve 24 25 26 # end of ile li $v®, 10 syscall 27 28 29 30 31
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning