Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header:
- ld e, $80
- playsample:
- ld a, e
- ldh [rNR14], a
- ldh [rNR24], a
- ld a, [hli]
- ldh [rNR51], a
- ld a, [hli]
- ldh [rNR50], a
- bit 7, h ;76 cycles up to this point
- jr z, endsample ;8u/12t
- ld h, $40
- inc bc
- ld a, c
- ld [$2000], a
- ld a, b
- ld [$3000], a ;56 extra cycles
- endsample: ;88 cycles w/o bank changing/140 cycles w/bank changing
- reti
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement