Advertisement
jbshelton

Eat my dust, SmoothPlayer

Feb 19th, 2021
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. header:
  2. ld e, $80
  3.  
  4. playsample:
  5. ld a, e
  6. ldh [rNR14], a
  7. ldh [rNR24], a
  8. ld a, [hli]
  9. ldh [rNR51], a
  10. ld a, [hli]
  11. ldh [rNR50], a
  12. bit 7, h ;76 cycles up to this point
  13. jr z, endsample ;8u/12t
  14. ld h, $40
  15. inc bc
  16. ld a, c
  17. ld [$2000], a
  18. ld a, b
  19. ld [$3000], a ;56 extra cycles
  20. endsample: ;88 cycles w/o bank changing/140 cycles w/bank changing
  21. reti
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement