Silver_Smoulder

Project 3 Outline

Nov 16th, 2019
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. SlobodovFunctions.asm
  2.  
  3. Write a program that checks if a year is a leap year
  4.  
  5. In the Gregorian calendar three criteria must be taken into account to identify leap years:
  6.  
  7. The year can be evenly divided by 4;
  8. If the year can be evenly divided by 100, it is NOT a leap year, unless;
  9. The year is also evenly divisible by 400. Then it is a leap year.
  10.  
  11. Your program is to be fully commented to be graded
  12.  
  13. It is to have at least 3 functions
  14.  
  15. no function is to call another function (we haven't done that yet)
  16.  
  17. at least 1 function must return at least 1 value
  18.  
  19. at least 1 function must have at least 1 argument
  20.  
  21. at least 1 function must be used more than once
  22.  
  23. (these criteria are not mutually exclusive)
  24.  
  25. arguments must be passed in "a" registers, returned values must be returned in "v" registers. "t" and "s" registers are to be save appropriately
  26.  
  27. 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.
  28.  
  29. you are to upload your file with the name LastNameFunctions.asm so that my file name would be LichtenthalFunctions.asm
  30.  
  31. for this project it is not necessary to save and restore the registers, while in the functions
Advertisement
Add Comment
Please, Sign In to add comment