Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Converting a Null - Terminated String to Lowercase in MIPS Assembly For the homework, you will be using the load byte ( lb ) and

Converting a Null-Terminated String to Lowercase in MIPS Assembly
For the homework, you will be using the load byte(lb) and store byte(sb) instructions. It works similiarly to the load word instruction but instead loading and storing all 32 bit to and from registers/memory it only stores and loads the first 8 bits. Other than that it works the exact same way as load/store word.
You are given a null terminated string, denoted by ascii value 0. The base address of this string variable is stored in register $s0.
Convert valid character in the string, A-Z to lowercase letters. Punctuations, lowercase letters, numbers, spaces and other non alphanumeric should not be affected.
For those who need a refresher, string are simply an array of chars, and chars are 1 byte.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions