How the Commodore 64 demo “A Mind is Born” generates an excellent music video, using only 256 bytes of code?

385 views

# [Link to Video of Demo](https://youtu.be/sWblpsLZ-O8)

No, I don’t mean megabytes. The entire program is 256 **bytes**. That’s significantly less than 0.0000003 gigabytes, to generate both the video and the audio. Call of Duty: Warzone, before they optimized the install size, was about **1 billion times** the install size of A Mind is Born. This seems completely impossible to me.

There’s an explanation of the code in the video description, but it’s the *opposite* of ELI5. I was hoping someone here could write up something a bit more accessible.

In: Technology

5 Answers

Anonymous 0 Comments

Based on the desctiption, it uses a lot of Commodore’s hardware abilities.

The sound is generated with a sound chip that only requires a couple of bytes to produce a note.

The sequence for a melody is randomly generated with a hardware register, basically, you only need to send one command to get a next note, the melody isn’t stored anywhere.

And the video pattern is mostly a cellular automation where the note of the melody defines a few initial values and then everything else is computed from it row by row with a very simple algorithm.

Overall, it’s a really technical thing that manages to first generate as much random data as it’s possible to get from the hardware with only a few commands and then use a simple algorithm to “grow” everything else on it.

You are viewing 1 out of 5 answers, click here to view all answers.