Search found 229 matches
- Fri Dec 01, 2017 1:46 pm
- Forum: NESdev
- Topic: Can you port NES music to SNES remakes of NES games?
- Replies: 21
- Views: 6276
Re: Can you port NES music to SNES remakes of NES games?
This is a good example of how low-pass it would get: https://www.youtube.com/watch?v=gyS5ymEURJw
- Mon Nov 20, 2017 9:45 am
- Forum: NESdev
- Topic: Weird PPU writes
- Replies: 8
- Views: 4078
Re: Weird PPU writes
Misinterpreted documentation would make sense, there are similar cases for the APU, like in Ikari Warriors II, which plays RAW via $4011 but still sets up and starts the DPCM unit like during normal 1-bit delta playback. Or take some Capcom games that write $30 to $400C and then also a $07 to $4015,...
- Sat Nov 18, 2017 4:43 am
- Forum: NESdev
- Topic: Procedural level generation on the NES?
- Replies: 24
- Views: 15991
Re: Procedural level generation on the NES?
If I end up having enough space at the end of development, I do plan on adding a randomized "Endless mode" (á la Megaman 9 and 10) to my game, and it pretty much requires no RAM at all. But that's because the entire thing runs on a timer that spawns sets of enemies from data in ROM, all I ...
- Fri Nov 10, 2017 10:01 am
- Forum: Other Retro Dev
- Topic: Five extra PCM channels on the Genesis (YM2612)
- Replies: 17
- Views: 14668
Five extra PCM channels on the Genesis (YM2612)
I've always wanted to know if it was possible to use the 5 FM-only channels of the YM2612 chip to output PCM. For most chips this works by setting the channel in question to the highest possible frequency, and then the attenuation/volume register can serve as the output for the data. I wonder if thi...
- Sat Nov 04, 2017 4:42 pm
- Forum: NESdev
- Topic: What's the fastest rate of repeated IRQ possible?
- Replies: 26
- Views: 7293
Re: What's the fastest rate of repeated IRQ possible?
I've tested the effect of the OAM DMA distortion with my FME-7 test ROM before. This exemplifies the worst possible distortion though where the output is delayed, since the sample is fetched from ROM inside the IRQ handler. But this could be solved as well by manually adjusting the vector after each...
- Wed Nov 01, 2017 12:14 pm
- Forum: NESdev
- Topic: What's the fastest rate of repeated IRQ possible?
- Replies: 26
- Views: 7293
Re: What's the fastest rate of repeated IRQ possible?
My method probably has the highest sample rate possible without mapper IRQs. Depending on what you're going for, it can even do music fairly decently, but your best bet is to play something more orchestral: (This is without OAM DMAs) https://www.youtube.com/watch?v=mddZUUcu_fU I would be happy to he...
- Sun Oct 22, 2017 10:50 pm
- Forum: NESdev
- Topic: Best way to pass arguments
- Replies: 7
- Views: 2557
Best way to pass arguments
I've recently found that passing arguments can prove to be somewhat troublesome depending on what you have in mind. Obviously, one might go for a route where each CPU register holds one of the arguments assuming there are up to 3 arguments. Some situations might call for a method that only uses 'A' ...
- Tue Oct 17, 2017 1:42 pm
- Forum: General Stuff
- Topic: Those "This is totally stupid but it works" moments?
- Replies: 10
- Views: 2988
Those "This is totally stupid but it works" moments?
Sometimes I wonder if anyone else feels like that when finding a solution to a certain problem during development (be it NES or otherwise). Like this instance where I had a bunch of things to comment out, but no "block comments" in ASM6: .if 1 = 0 .db 0,3,6,9,12,16,19,22 .db 25,28,31,34,37...
- Sat Oct 07, 2017 6:17 am
- Forum: NESdev
- Topic: Noise length counter polling
- Replies: 5
- Views: 2439
Re: Noise length counter polling
14 914 CPU cycles 14 914 APU cycles. I did mean CPU cycles. Since the write immediately decrements the length counter of the channel in question, only 2 frame counter steps out of the 5 have to occur before the length counter gets clocked again, which amounts to 7456.5 APU cycles. I'm not exactly s...
- Fri Oct 06, 2017 8:35 am
- Forum: NESdev
- Topic: Noise length counter polling
- Replies: 5
- Views: 2439
Noise length counter polling
Here's an idea that may or may not be useful, but I thought it would be worth sharing here. So the frame counter allows for clocking the length counters at a ~96Hz rate with the 5-step mode selected, and writing to $4017 clocks all the hardware timer units. By writing $18 to $400F and then $C0 to $4...
- Thu Aug 24, 2017 12:09 pm
- Forum: NESdev
- Topic: How common is it to use V flag after adc, sbc, cmp, vs. bit?
- Replies: 33
- Views: 9751
Re: How common is it to use V flag after adc, sbc, cmp, vs.
The effect of BIT is probably why I use it the most. The way I handle the math doesn't really need the V flag because most of the time I add signed 16-bit values to unsigned 16-bit values... so I still only ever need the carry for that (though I have to interpret the carry differently based on the s...
- Thu Jul 13, 2017 2:25 am
- Forum: NES Music
- Topic: Mindboggingly simple way to control legato (ftm inside)
- Replies: 19
- Views: 11188
Re: Mindboggingly simple way to control legato (ftm inside)
I've always tried to address this from both directions: My engines can either have a length counter-like timer in software to stop the sound, or a "stop the sound when less than X frames of duration are left for this note". It makes things as opened up as I need them to be.
- Wed Jul 12, 2017 6:54 am
- Forum: NES Music
- Topic: Namco 163 techniques (ftm inside)
- Replies: 4
- Views: 4409
Re: Namco 163 techniques (ftm inside)
In a game (provided that the sampling rate is not too high), any N163 channel could be easily used to play 4-bit PCM data with volume control by having the channel set to a 4-step wavetable, with all steps of that wavetable always being equal. To avoid potential noise coming from the little time del...
- Sun Jul 02, 2017 9:39 am
- Forum: NESdev
- Topic: NES program running without cartridge
- Replies: 14
- Views: 5243
NES program running without cartridge
I've had this crazy idea of "could an NES game cartridge be removable without the game crashing?". I realize the space issue would be huge, since there would only be a bit above 1.5k of code that could be housed by the RAM, while still leaving some zero page and stack space for variables. ...
- Fri Jun 23, 2017 5:45 pm
- Forum: NES Music
- Topic: More NSF Requests
- Replies: 3133
- Views: 1411205
Re: More NSF Requests
Great job, especially because now we can listen to the samples without any NMI or OAM DMA cutting into the sound like in-game.