Advertisement
Telinc1

Anyone? Help?

Jul 5th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. db $42
  2. JMP Main : JMP Main : JMP Main : JMP Return : JMP Return : JMP Return : JMP Return
  3. JMP Main : JMP Main : JMP Main
  4.  
  5. MakeSolid:
  6. LDY #$01
  7. LDA #$30
  8. STA $1693
  9. RTL
  10.  
  11. Main:
  12. LDA $14AD
  13. BNE MakeSolid
  14. LDA #$1C
  15. STA $1DF9 ;Play the SFX of a Yoshi Coin
  16.  
  17. ;this is so that a glitter effect is played when collecting
  18. ;the coin
  19.  
  20. LDA $7F
  21. ORA $81
  22. BNE Return
  23. LDY #$03
  24. LoopStart:
  25. LDA $17C0,Y
  26. BEQ CreateGlitter
  27. DEY
  28. BPL LoopStart
  29.  
  30. CreateGlitter:
  31. LDA #$05
  32. STA $17C0,Y
  33. LDA $9A
  34. AND #$F0
  35. STA $17C8,Y
  36. LDA $98
  37. AND #$F0
  38. STA $17C4,Y
  39. LDA $1933
  40. BEQ ADDR_00FD97
  41. LDA $9A
  42. SEC
  43. SBC $26
  44. AND #$F0
  45. STA $17C8,Y
  46. LDA $98
  47. SEC
  48. SBC $28
  49. AND #$F0
  50. STA $17C4,Y
  51. ADDR_00FD97:
  52. LDA #$10
  53. STA $17CC,Y
  54. LDY #$00
  55.  
  56. INC $1422
  57. JSL $00F377
  58.  
  59. LDA $0DBF
  60. CMP #$63
  61. BEQ Live
  62. INC $0DBF
  63.  
  64. PHY ;preserve map16 high
  65. LDA #$02 ;erase self
  66. STA $9C
  67. JSL $00BEB0 ;generate blank block
  68. PLY ;restore map16 high
  69. INC $0DBF
  70.  
  71. Return:
  72. RTL
  73.  
  74. Live:
  75. STZ $0DBF
  76. LDA #$01
  77. STA $18E4
  78. DEC $0DBF
  79. RTL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement