NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: verifying DMC IRQ timing  
Posted byXodnizel
Posted on11/25/03 11:01 PM
From IP68.86.57.74  



"Should I write an asm file for a hardware test, that maximizes the value of the test?"

Are you referring to data "value" or usefulness "value"? :)

I've posted the formula I use in FCEU before, but here it is again:

IRQ Clock Cycles=(DMA Clock Cycles) - (0x10-($4010 & 0x0F)) * 16 * (Length of sample in bytes)

"DMA Clock Cycles" refers to the number of CPU cycles between DMA(or expected from the outputted playback rate, at least).

Where "IRQ Clock cycles" is the number of CPU cycles at which time an IRQ is to be generated, after the 0x00->0x10 write to $4015. It is not 100% accurate, though. The playback frequency does seem to affect when the IRQ occurs(the games expect it this way, at least), so this should be factored into any tests that are run.



-
Entire Thread
Subject  Posted byPosted On
*DMC Saw and Square without hogging CPU  blargg11/24/03 12:33 PM
.*Re: DMC Saw and Square without hogging CPU  Anonymous11/27/03 11:09 PM
..*Re: DMC Saw and Square without hogging CPU  blargg11/28/03 06:52 AM
...*Re: DMC Saw and Square without hogging CPU  Anonymous11/28/03 11:34 AM
....*Re: DMC Saw and Square without hogging CPU  Memblers11/28/03 7:41 PM
.....*Re: DMC Saw and Square without hogging CPU  blargg11/28/03 11:30 PM
......*Re: DMC Saw and Square without hogging CPU  Memblers12/3/03 10:37 PM
.......*Re: DMC Saw and Square without hogging CPU  blargg12/4/03 00:21 AM
........*Finally works on NES hardware!  blargg12/4/03 09:35 AM
.........*Re: Finally works on NES hardware!  tepples12/4/03 4:21 PM
..........*Re: Finally works on NES hardware!  blargg12/5/03 00:21 AM
...........*Re: Finally works on NES hardware!  tepples12/5/03 01:30 AM
............*Re: Finally works on NES hardware!  Memblers12/6/03 01:32 AM
.............*Re: Finally works on NES hardware!  blargg12/6/03 10:46 PM
..............*Re: Finally works on NES hardware!  blargg12/7/03 09:27 AM
...............*Re: Finally works on NES hardware!  Memblers12/7/03 10:33 PM
........*Re: DMC Saw and Square without hogging CPU  Memblers12/4/03 06:00 AM
.........*Re: DMC Saw and Square without hogging CPU  Disch12/4/03 08:19 AM
........*Re: DMC Saw and Square without hogging CPU  tepples12/4/03 04:32 AM
.*Re: DMC Saw and Square without hogging CPU  Memblers11/24/03 9:46 PM
..*Re: DMC Saw and Square without hogging CPU  blargg11/25/03 06:31 AM
...*Re: DMC Saw and Square without hogging CPU  Memblers11/25/03 10:40 AM
....*Re: DMC Saw and Square without hogging CPU  blargg11/25/03 2:59 PM
.....*Re: DMC Saw and Square without hogging CPU  Anonymous11/25/03 4:15 PM
......*Re: verifying DMC IRQ timing  blargg11/25/03 10:41 PM
........Re: verifying DMC IRQ timing  Xodnizel11/25/03 11:01 PM
........*Re: verifying DMC IRQ timing  Memblers11/26/03 11:07 AM
.........*Re: verifying DMC IRQ timing  Memblers11/27/03 07:25 AM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo