- According to KH's NSF doc, a write to $4010 with value 10h must be done on APU reset. Well, bit 4 is unused (10h)... unless the only purpose is to clear the interrupt flag..? Why 10h?
- Next, regarding register $4010, low 4 bits (Rate index), what is the initial value? I usually do the following:
- Is this correct?
- Next, regarding register $4010, low 4 bits (Rate index), what is the initial value? I usually do the following:
Code:
int freq_table[] = { 428, 380, 340, 320, 286, 254, 226, 214, 190, 160, 142, 128, 106, 84, 72, 54 };
dmc->freq = freq_table[ reg4010 & 15 ];
//on reset
dmc->freq = 1;
dmc->freq = freq_table[ reg4010 & 15 ];
//on reset
dmc->freq = 1;
- Is this correct?