Advertisement
Guest User

SMWJailbreak Mod: Ground-Pound

a guest
Jun 25th, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. A5 75 LDA $75 ; If player is underwater...
  2. 0D F3 13 ORA.W $13F3 ; ...or flying with a P-Balloon...
  3. D0 22 BEQ EndPound ; ...make sure player isn't pounding
  4. A5 F0 LDA $F0 ; If player is already ground-pounding...
  5. D0 0D BNE GroundPound ; ...skip to ground-pounding code
  6. A5 72 LDA $72 ; Load "player in air" flag
  7. 1A INC A ; Increment (to make this comparison shorter)
  8. 25 16 AND $16 ; AND with controller data
  9. 29 04 AND #$04 ; If player is not pressing down and not in air...
  10. F0 15 BEQ EndPound ; ...make sure player isn't pounding
  11. 64 7D STZ $7D ; Stop any current movement upwards
  12. 85 F0 STA $F0 ; Store something non-zero into "ground-pounding" flag
  13. :GroundPound
  14. 64 7B STZ $7B ; Make the player not move horizontally
  15. C6 80 DEC $80 ; Make the player move down
  16. A9 1C LDA.B #$1C ; Store the "butt-slide" pose...
  17. 8D E0 13 STA.W $13E0 ; ...into player's current pose
  18. A5 72 LDA $72 ; If player is still in the air...
  19. D0 06 BNE EndOfMod ; ...skip to end of mod
  20. 22 BF 86 02 JSR.L $0286BF ; Cause a Yellow-Yoshi stomp earthquake
  21. :EndPound
  22. 64 F0 STZ $F0 ; Player is not ground-pounding anymore
  23. 6B RTL ; End of mod code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement