Question: Write an assembly language program to read in a string, store the string as a null terminated string, and write the string back out to

Write an assembly language program to read in a string, store the string as a null terminated string, and write the string back out to the output device using the MARS Keyboard and Display MMIO Simulator. Use polling I/O.

The code should be structured into three separate files.

test driver file to call read string and then write string,

read string file, and

write string file.

The input string procedure should recognize the end of line ascii character and arrange to terminate the string with the standard (for MIPS) .asciiz null character "00". The output file should output all of the characters up to the null character "00"

The end of line character in MARS is the LF character (line feed). It can be declared as 0x0a

You may use the demonstration program posted in this module as a starting point.

Be sure to save these modules for use in your final project.

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!