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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started