Blargg's saw wave DPCM IRQ demo in NSF2

Discuss NSF files, FamiTracker, MML tools, or anything else related to NES music.

Moderator: Moderators

Post Reply
User avatar
rainwarrior
Posts: 7680
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Blargg's saw wave DPCM IRQ demo in NSF2

Post by rainwarrior » Sun Mar 10, 2019 2:45 pm

Since NSF2 is now implemented in NSFPlay 2.4 beta 12, I decided to port one of the often cited examples of things that NSF2 would be good for to it.

Blargg's saw wave DPCM IRQ demo used the DPCM IRQ to generate saw waves and play a tune.

Here it is in NSF(2) form:
https://github.com/bbbradsmith/nes-audi ... w_song.nsf

Source code at:
https://github.com/bbbradsmith/nes-audi ... saw_song.s

User avatar
za909
Posts: 193
Joined: Fri Jan 24, 2014 9:05 am
Location: Hungary

Re: Blargg's saw wave DPCM IRQ demo in NSF2

Post by za909 » Thu Mar 21, 2019 1:11 am

This is quite a significant development. The implementation of the things like SuperNSF and Deflemask drivers could become much better organized by using the cycle-IRQ feature.

Post Reply