Question
Kjell, Chapter 24, Exercise 1 String Length. For any additional info click on textbooklink.(http://chortle.ccsu.edu/assemblytutorial/Chapter-24/ass24programs.html) Write a program that repeatedly asks the user for a string
Kjell, Chapter 24, Exercise 1 String Length. For any additional info click on textbooklink.(http://chortle.ccsu.edu/assemblytutorial/Chapter-24/ass24programs.html)
Write a program that repeatedly asks the user for a string and then calculates and prints out the string length. Stop the program when the string is empty (when the user hits "enter" without anything else on the line.) Be sure to reserve enough memory in the .data for the string. Use indexed addressing to scan through the string. Strings read in with the trap handler service include a ' ' character at the end, followed by the null termination. Don't count the ' ' or the null as part of the string length.
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