Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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