Question: Write a NASM program that: 1. Prompts the user to enter a string of up to 50 chars. 2. Echoes the original string back to

Write a NASM program that:
1. Prompts the user to enter a string of up to 50 chars.
2. Echoes the original string back to the user
3. Capitalizes all letters and echo it back
4. Lower case all letters and echo it back
Be sure your program outputs appropriate messages, spaces, and newline chars as the output is produced.
You may want to check out the ASCII table for upper and lower case character values.
Commands to assemble and execute your program:
nasm -f elf asg5-userName.asm
(assembles asg5-userName.asm into asg5-userName.o)
ld -m elf_i386 asg5-userName.o -o asg5-userName
(links asg5-userName.o into an executable file named a.out which then is redirected to asg5-userName )
./asg5-userName
(executes the program asg5-userName created by the linker)
// userName is zabualsa

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!