Silver_Smoulder icon

Project 3 Outline

Silver_Smoulder | PRO | 11/16/19 11:44:45 PM UTC | 0 ⭐ | 443 👁️ | Never ⏰ | []
text |

1.25 KB

|

None

|

0 👍

/

0 👎

SlobodovFunctions.asm
 Write a program that checks if a year is a leap year
 In the Gregorian calendar three criteria must be taken into account to identify leap years:
     The year can be evenly divided by 4;
    If the year can be evenly divided by 100, it is NOT a leap year, unless;
    The year is also evenly divisible by 400. Then it is a leap year.
 Your program is to be fully commented to be graded
 It is to have at least 3 functions
 no function is to call another function (we haven't done that yet)
 at least 1 function must return at least 1 value
 at least 1 function must have at least 1 argument
 at least 1 function must be used more than once
 (these criteria are not mutually exclusive)
 arguments must be passed in "a" registers, returned values must be returned in "v" registers. "t" and "s" registers are to be save appropriately
 The program is to keep running, asking for additional years until a year of 0 is entered.  Any year entered that is a negative number should be flagged as an error.
 you are to upload your file with the name    LastNameFunctions.asm     so that my file name would be LichtenthalFunctions.asm
 for this project it is not necessary to save and restore the registers, while in the functions

Comments