Silver_Smoulder

[ASM][Proto]Pythagorean Theorem Project 5

May 22nd, 2019
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. List of functions:
  2. allwork
  3. input
  4. pow (power)
  5. check
  6. print
  7. main should look like:
  8.  
  9. main:
  10. jal allwork
  11. li $v0,10
  12. syscall
  13.  
  14. function allwork will call function input which will ask the user for a number,
  15. input will call function pow which will square the number (it must work with any exponent >=0)
  16. allwork will also call function check, which will check if it's a right triangle,
  17. and function print, which will output if it is a right triangle or not.
  18. some of these functions will be called more than once
  19. you will need the stack to manage the nested functions, and their return address'.
Advertisement
Add Comment
Please, Sign In to add comment