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®,...


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.<br>.data<br>7<br>8<br>userInput: .space 80<br>9.<br>.text<br>10<br>-globl main<br>11<br>12<br>main:<br># gettin text from the user<br>li $ve, 8<br>13<br>14<br>15<br>la $a®, userInput<br>li $a1, 80<br>16<br>17<br>syscall<br>18<br># displays the name<br>li $ve, 4<br>la $a®, userInput<br>syscall<br>19<br>20<br>21<br>22<br>23<br># toggles the case<br>bltu $ve<br>24<br>25<br>26<br># end of ile<br>li $v®, 10<br>syscall<br>27<br>28<br>29<br>30<br>31<br>

Extracted 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

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here