SHARE
TWEET

Untitled

a guest Jan 24th, 2020 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Main: ;main function here
  2. ADDIU sp, sp, -0x40
  3. SW s0, 0x0020 (sp)
  4. SW v0, 0x0024 (sp)
  5. SW ra, 0x0028 (sp)
  6. ;
  7. JAL RNGPercentChance
  8. NOP
  9. ;
  10. JAL EventOneCheck
  11. NOP
  12. ;
  13. JAL EventTwoCheck
  14. NOP
  15. ;
  16. LW s0, 0x0020 (sp)
  17. LW v0, 0x0024 (sp)
  18. LW ra, 0x0028 (sp)
  19. JR RA
  20. ADDIU sp, sp, 0x40
  21. ;end of main
  22.  
  23.  
  24. EventOneCheck:
  25. SLTI S0 V0 10
  26. BNE S0 R0 EventOneAction
  27. NOP
  28. JR RA
  29. NOP
  30. EventOneAction:
  31. ;code here
  32. JR RA
  33. NOP
  34.  
  35. EventTwoCheck:
  36. SLTI S0 V0 75
  37. BNE S0 R0 EventTwoAction
  38. NOP
  39. JR RA
  40. NOP
  41. EventTwoAction:
  42. ;code here
  43. JR RA
  44. NOP
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top