Some of the most useful code you will develop this quarter is integer input/output (I/O) routines. This lab will require you to write loops to input ASCII characters and translate them into a number, and then translate a number into a sequence of characters for printing. You will also use bit operations to print the contents of registers as ones and zeroes.
Submit: malio.mal, README
Files:
Problem: Write a program that does two things:
######+#####Notes/Requirements:
Your integer input/output routines should be general - they should work for values up to 2^31 - 1. You will want to implement this as a loop. You may use any algorithms you wish to do this, but I suggest using the algorithms posted on the web page.
Collaboration with other students is allowed on this lab assignment! Make SURE you give other students and tutors credit for any help you receive and any code you develop together. Even if you develop some code with someone else and give credit, it still must be your own! This means if you can't write it, you can't use it! Give credit to any help you receive. Rewrite all your code "in your own words" to guarantee that it really is yours. And give credit. Give credit.
Evaluation: your lab tutor will assign one of following grades: check +, check, check -, 0
puti or geti in this
assignment will drop your grade one check-point (X+ to X, X to
X-) down to a minimum of 0.
Happy Coding!
-cliff.
Graders: Here's a grading template!