Amazing Things One Can Do With JS and the NES
summary
JavaScript compiles to NES assembler and produces real NES programs that run on actual cartridges; the tool exposes a JS API (published on npm) that targets the NES sound chip’s five channels (two squares, triangle, noise, sample omitted) and demos square/triangle/noise with duty, envelopes and basic drums. Output works but is limited: channels are monophonic channels so chords need arpeggios or power‑cord hacks. Backend assembler is C++ today but can be moved to JS to enable full in‑browser build and UI.
AI-written summary · about
chapters (8)
- 0:00Introduction to NES music
- 1:47Why use JavaScript
- 3:37Developing the sound engine
- 6:10Understanding sound channels
- 9:30Advanced sound techniques
- 12:21Composing music for NES
- 17:54Future of the project
- 20:02Conclusion and inspiration
related talks
26mSuper MarioScript: Tools and Tips for NES development
30mHacking your Nintendo with JavaScript.
30mControlling the NES with Javascript
25mAfter After Dark: Building Strange Screensavers with Javascript
29mEmulating With JavaScript
46mEmulating the NES/Famicom/Dendy with Web Technologies
32mJS in Strange Places
12mWriting NES Games! with Assembly!!
