This page is a mirror of Tepples' nesdev forum mirror (URL TBD).
Last updated on Oct-18-2019 Download

DMC question (mainly directed to blargg)

DMC question (mainly directed to blargg)
by on (#40139)
When using non-looped mode, writing 1 to $4013 and enabling the DMC will play a 17 bytes sample. But when using looping sample, will it loop 17 or 16 bytes?

by on (#40152)
First is a non-looped 17-byte sample, second is looped. First byte is a short "hill", the next bytes make larger "hills". All 17 bytes are looped. Recording and code:
Image
Code:
lda #1      ; length = 17 bytes
sta $4013

; Play unlooped
lda #$0C
sta $4010
lda #$10
sta $4015
delay_msec 15

; Play looped
lda #$4C
sta $4010
lda #$10
sta $4015
delay_msec 30

sample:
.byte $0F
.byte $FF,$00,$FF,$00,$FF,$00,$FF,$00
.byte $FF,$00,$FF,$00,$FF,$00,$FF,$00

by on (#40158)
Woaahaa! Thanks blargg! :D