Question: Using MIPS Assembly Language, write a function print_line that mimics system call 4. The only input parameter to this function should be the memory address
Using MIPS Assembly Language, write a function print_line that mimics system call 4. The only input parameter to this function should be the memory address of the start of a null terminated character array (appropriately stored on the stack). The function should utilize MMIO to print out the characters in the array one by one. Once the null terminator is reached, print out a newline character.
The purpose of this problem is two-fold: (1) to give you experience working with memory mapped I/O, in particular, the keyboard and output terminal controllers and (2) to give you more practice writing re-entrant functions.
*** Please do not copy and paste off google or here. I am looking for a unique solution to help me understand this. ***
*** Please include some comments or psuedocode (in C), otherwise it is just too hard to read assembly language ***
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
