ThomasSpeedrunner

ring sound thing

Jul 31st, 2014
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. ;loc_6A9
  2. zPlaySound_CheckRing:
  3. sub SndID__First ; Make it a 0-based index
  4. cp a, SndID_Ring ; Is it the ring sound?
  5. jp nz, zPlaySound_Bankswitch ; Branch if not
  6. ld a, (zRingSpeaker) ; Get speaker on which ring sound is played
  7. xor 1 ; Toggle bit 0
  8. ld (zRingSpeaker), a ; Save it
  9.  
  10. ;loc_6B7
  11. zPlaySound_Bankswitch:
Advertisement
Add Comment
Please, Sign In to add comment