Question: Write a program in ARM assembly machine language (using raspberry pi) that reads in a string from the user using a READ syscall Process this

Write a program in ARM assembly machine language (using raspberry pi) that reads in a string from the user using a READ syscall

Process this string by writing a subroutine that turns the possible newline character (from the enter key) into a null character

Then run the input string through a version of strlwr() that you will create

Finally print out the string using a WRITE syscall with the help of the array counting code to ensure that you print the correct number of characters.

Your code will include at a minimum the following subroutines:

  1. A subroutine to replace the terminating newline character from the keyboard buffer with a null character
  2. A subroutine to make our string lower case
  3. A subroutine that counts the number of values in an array of bytes. Your code must be assembled and linked using the dynamic linker and not GCC.

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!