Advertisement
Guest User

Untitled

a guest
Nov 8th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. ; replaces the P-Switch music with a ticking sound effect while keeping the normal music playing
  2. ; by Kil
  3.  
  4. header
  5. lorom
  6.  
  7. !SFX_NUMBER = $2B
  8.  
  9. !FREESPACE = $138000
  10.  
  11. org $8DDB
  12. JSL POW_CODE
  13.  
  14. org $01AB07
  15. LDA #!SFX_NUMBER
  16. STA $1DF9
  17.  
  18. org $C54C
  19. NOP #3
  20.  
  21. org !FREESPACE
  22. db "STAR"
  23. dw END_CODE-POW_CODE
  24. dw END_CODE-POW_CODE^$FFFF
  25.  
  26. POW_CODE:
  27. STA $4310,x
  28. DEX
  29. PHP
  30. PHB
  31. PHY
  32. PHX
  33. PHA
  34. LDA $14AD
  35. AND #$0F
  36. CMP #$0F
  37. BNE CHECKSILVER
  38. LDA #!SFX_NUMBER
  39. STA $1DF9
  40. CHECKSILVER:
  41. LDA $14AE
  42. AND #$0F
  43. CMP #$0F
  44. BNE RETURN
  45. LDA #!SFX_NUMBER
  46. STA $1DF9
  47. RETURN:
  48. PLA
  49. PLX
  50. PLY
  51. PLB
  52. PLP
  53. RTL
  54. END_CODE:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement