Assigned 22 February, 2001
Write a function "num2str" that converts a 32 bit integer into a null-terminated ascii string of characters.
void num2str(int num, char str[]);
Then write the main program, which calls the num2str function and displays the generated string in the console window. You may use syscall 4 to display the string, as described in the textbook pages A-48 to A-49.
Your program must run in SPIM without error.
This assignment is the second part of a three-assignment series.
Submit your answers via EMAIL to chunfa@email.unc.edu by the beginning of class on the due date. Put HW6 in the subject line of your mail. Please make sure your email is in plain text format.
February 22, 2001 13:40