Better HN
topnewbestaskshowjobs
Log inSign up

100th_Coin

56 karma · joined Sep 30, 2025 (1y ago) · 2 submissions

Nintendo Entertainment System enthusiast. Creator of the AccuracyCoin test ROM for NES emulation, the Bad Apple TAS of SMB1, and the 5 microsecond TAS of SMB3.
Submissions

comment 1y ago · link · parent

The conversion from 16 bits to 7 bits was using rounding.

My method of downsampling was complicated. Since the creation of the TAS was being automated, and since I also needed to stream in graphics data occasionally, I ran into the issue of needing to know exactly what byte to read from the .wav file at any given moment. I used a custom NES emulator to emulate the generated inputs, and I had it count CPU cycles so I can convert that into seconds, then parse the .wav file with that info.

To be completely honest, this project was my first time directly reading the contents of a .wav file like this, and I had no prior experience writing code for audio conversion or playback. If I were to do this project again, I'd look into noise dithering + noise shaping, as well as filtering methods. I know at the very end of the TAS, there's certainly some weird audio artifacts that I couldn't figure out how to fix at the time.

comment 1y ago · link · parent

Hey, I'm the TASer who put this run together. This was 5.8 million inputs.

I share the full assembly code in the tasvideos writeup: https://tasvideos.org/8991S#HereSTheAsmCode

To summarize what I put in the writeup, the 7-bit PCM audio was streamed in at approximately 25 Khz, (reading from the controller and writing to address $4011 every 71 CPU cycles.) while occasionally dipping to 9 Khz while streaming in the graphics data.