Question: You are given a string (null-terminated array of characters) that may contain numbers, upper and lower case letters, punctuations symbols, etc. Implement a function to

You are given a string (null-terminated array of characters) that may contain numbers, upper and lower case letters, punctuations symbols, etc. Implement a function to convert all uppercase letters to lowercase and vice versa. For example "ThisIsTheFinalLabOf51" should be converted to "tHISiStHEfINALlABoF51". The string should be modifed in place. There is no explicit output for this function.

Tips:

- Note that each element of the arrays is a char (1 byte). You can NOT use a 32-bit register to read/write from/to a memory location. Instead you should use the 8-bit version of the x86 general-purpose registers.

- The link to the ASCII codes is here: http://www.asciitable.com/

The code should not change any special characters or numbers in the string; strictlyi just upper case to lower case or lower case to upper case, leaving all special characters and numbers as is. Must be written in Assembly for the x86 architecture.

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!