3 ms·
Making 8-bit Music From Scratch at the Commodore 64 BASIC Prompt [video]
- zahlman 2y agoThis came up for me in my YouTube feed recently and I wanted to share. I see it's been linked once before (much closer to publication) but didn't get an awful lot of attention. What I find really remarkable is the combination of techniques and clever hacks used, all presented fluidly as if the presenter has simply memorized all the necessary information: * Machine code (as well as configuration data for the built-in hardware synth) is written not only as raw bytes, but with the byte values in decimal as expected by BASIC syntax * The editor is exploited to repeat lines of code - by editing the line number, going to the end of line and hitting Enter again (when I was a child using a C64 I had no idea the editor had any features like this; of course I didn't even really conceive of there being an "editor" in the first place) * Screen buffer memory is used both for input and output; the program runs on interrupts while the editor is active, so that inputting new "code" (not actually added to the BASIC listing) provides note data * The musical sense of the presenter, on top of the actual programming knowledge.