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

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: DMC Saw and Square without hogging CPU  
Posted byMemblers
Posted on11/24/03 9:46 PM
From IP68.58.99.218  



Great trick! I knew the DMC is good at playing an angled waveform (like a triangle), but it just didn't occur to me that setting $4011 back to the top could make a sawtooth wave. It sounds really good.

One thing you'll need to do to make it work on an NES is write $C0 to $4017 to select the DMC channel as the IRQ source.

That 'JSR vbl' might be unsafe since 'vbl' returns with an RTI. And you'd better push/pull the X register there too, since it's in use. But that's minor stuff anyways, the interesting part of the program looks like it works. :-)

I only wish it could play lower notes. Why isn't a value of 0 used in the period table? But hey, I'll take whatever I can get, heheh.



-
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