MIPS - Convert Day and Month (e.g 20 January) to Day of the year is 20

Posted 28 September 2012 - 11:43 PM

I have this assignment and i am stuck in between the codes. I am asked to collect user input day and month a year. E.g 30 May and display the equivalent as an "day of the year is 140.

This is just a part of the program that i don't understand or know how to go about it. I have been searching google for this answer but no luck. I heard i have to convert to ASCII but still don't know how to store or identify int + spring and validate January to December input and determine the equivalent in a 365 days, assuming February is 28.