CS470 Spring 2008
HW Assignment 2
Due March 24, 2009
Write a MIPS program that will do the following:
Read an ASCII character from the keyboard. Use prompt "Input a character:".
Print out the corresponding 7-bit binary string in the next line. (For example 1010100 for "T")
You must use a subroutine that does the following:
It takes in a ASCII character and a one-digit number (0-7).
It returns a 1 if the corresponding bit is in the character is 1, and a 0 other wise.
Name it LastNamePrintBin.asm and submit it using RAMCT.
You must test it thoroughly. It must work for all printable characters.
You should document it appropriately. At the end of the program, add comments mentioning the test cases used and the positions of the breakpoints used for debugging