Question: Please write a ASSEMBLY MIPS code ONLY: In the project, you are only required to Convert FIRST and LAST characters of a string to opposite

Please write a ASSEMBLY MIPS code ONLY:

In the project, you are only required to Convert FIRST and LAST characters of a string to opposite case, and store back to same location.

Ask user for input less than 10 chars, load into register. after covert character, print it.

6. Swap the data values of the first and second word of the string. 7. Print InputString again as a string on its own line after all 8 characters have been swapped. 8. Use a loop to print out the remaining letters in the alphabet starting with Charl on a line. Remember the character at Charl could be upper or lowercase. You will need to check for 2 and or Z as the stopping condition. Also, think about the relationship between the value of each ASCII character Enter a ASCII string (max 8 characters):

START CODE:

.globl main

.data str_prompt: .asciiz "Enter a ASCII string (max 8 characters): " int_prompt: .asciiz "Enter an integer in range +/- 2^16: " int_badinput: .asciiz "Bad Input! " .align 2 inputString: # additional label refering to the same address as 1stChar Char1: .space 1 Char2: .space 1 Char3: .space 1 Char4: .space 1 Char5: .space 1 Char6: .space 1 Char7: .space 1 Char8: .space 1 forNewline: .space 1 forNull: .space 1

.text

main: # Your code goes here li $v0, 4 la $a0, str_prompt syscall

la $a0, str_prompt li $v0, 8

Please write a ASSEMBLY MIPS code ONLY: In the project, you are

Enter a ASCII string (max 8 characters): Computer Computer computer pmoc ex706d6f63 01110000011011010110111101100011 Retu Ox52657475 01010010011001010111010001110101 uteRcomp Uvwxyz program is finished running

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!