Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The difference between the uppercase letters and the lowercase letters is that bit 5 (20h) is on for the lowercase letters and off for the

image text in transcribed

The difference between the uppercase letters and the lowercase letters is that bit 5 (20h) is on for the lowercase letters and off for the uppercase letters. Create two procedures, ToUpperCase and TolowerCase. ToUpperCase must turn the 5th bit off (use an AND operation) and the TolowerCase must turn the 5th bit on (use an OR operation). Both of these functions will accept the offset of the string to be converted in the EDX register and the length of the string in the ECX register. Create a test program that askes the user to enter a message (can be up to 50 characters long-not counting the null terminator). Print the word "ORIGINAL:" followed by the string that was entered. Then convert the string to uppercase using your procedure and then print the word "UPPERCASE: "followed by the converted string. Finally convert the string to lower case and print the word "LOWERCASE:" followed by the converted string. Assembly program The difference between the uppercase letters and the lowercase letters is that bit 5 (20h) is on for the lowercase letters and off for the uppercase letters. Create two procedures, ToUpperCase and TolowerCase. ToUpperCase must turn the 5th bit off (use an AND operation) and the TolowerCase must turn the 5th bit on (use an OR operation). Both of these functions will accept the offset of the string to be converted in the EDX register and the length of the string in the ECX register. Create a test program that askes the user to enter a message (can be up to 50 characters long-not counting the null terminator). Print the word "ORIGINAL:" followed by the string that was entered. Then convert the string to uppercase using your procedure and then print the word "UPPERCASE: "followed by the converted string. Finally convert the string to lower case and print the word "LOWERCASE:" followed by the converted string. Assembly program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions