Advertisement
Telinc1

Fireball Shatter HP Block (WIP)

Jan 13th, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. db $42
  2. JMP Invalid : JMP Invaild : JMP Invalid : JMP Ivalid : JMP Invalid : JMP ValidC : JMP ValidFB : JMP Invalid : JMP Invalid : JMP Invalid
  3.  
  4. !FreeRAM = $0079  ;Set this to a free/unused RAM address. Don't touch it if you don't know what that means.
  5.  
  6. ValidC:
  7. LDA !FreeRAM
  8. CMP #$04
  9. BCS Shatter
  10. INC !FreeRAM
  11. INC !FreeRAM
  12. RTL
  13.  
  14. ValidFB:
  15. LDA !FreeRAM
  16. CMP #$04
  17. BCS Shatter
  18. INC !FreeRAM
  19. RTL
  20.  
  21. Shatter:
  22. LDA #$02          ;\
  23. STA $9C           ; \
  24. JSL $00BEB0       ;  \
  25. PHB               ;   \
  26. LDA #$02          ;    \
  27. PHA               ;     |Shatter the block. Set "LDA #$00" to "LDA #$01" for rainbow explosion.
  28. PLB               ;   /
  29. LDA #$00          ;  /
  30. JSR $028663       ; /
  31. PLB               ;/
  32. RTL
  33.  
  34. Invalid:
  35. RTL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement