Question: Use the MIPS assembly language to define the function swap that swaps two strings of the same length and defined by the assembler directive .ascii
Use the MIPS assembly language to define the function swap that swaps two strings of the same length and defined by the assembler directive .ascii . You may assume that the number of characters is a multiple of 4.The function swap receives the addresses of the two strings and the number of characters in each string from the registers $a0-$a2. Write a main function that defines two strings and calls the function swap.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
