Over half the class is electrical engineers (as opposed to computer engineers), so the minute we left RAM/cache design and started assembly, they all started to freak out. Poor guys, they're all so lost and confused. The class got harder for them and easier for me.CPE321 wrote:Here's your first SRC programming assignment, due October 9, 2008. Submit
your assignment by email not later than midnight on the due date.
Write a SRC subroutine and the main program to call it that counts the
number of upper case, lower case, and non-alphabetic characters in a string.
Your subroutine should accept one argument, a pointer to the string in
register r0, and should return three values...
1) the number of upper case characters in r4,
2) the number of lower case characters in r5,
3) the number of non-alphabetic characters on the stack.
When the subroutine returns, your main program should pop the third return
result from the stack into register r6.
I will not be answering student email Wednesday, October 8, 2008.
Start early! Procrastination will be your doom!
This'll seriously just take a few minutes to do. I enjoy my low level programming classes.