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

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!