WriteUp: 16 Bytes of x86 that turn Matrix rain into sound

TL;DR

A demo at the 2026 Outline Demoparty showcased a 16-byte x86 assembly code that visualizes a Sierpinski fractal on screen and produces corresponding audio through the PC speaker. This achievement highlights extreme coding density and algorithmic creativity, merging visual art with sound in minimal code.

At the 2026 Outline Demoparty, a 16-byte x86 assembly program was demonstrated that simultaneously renders a fractal visual pattern and converts it into sound through the PC speaker, showcasing extraordinary code density and technical ingenuity. This development highlights the intersection of demoscene artistry and low-level programming, drawing attention to how minimal code can produce complex multimedia effects.

The code, presented as a technical exercise in extreme compression, uses a sequence of 16 bytes of real-mode DOS assembly to manipulate the VGA text buffer and generate audio signals. It begins by initializing video mode 0 via BIOS interrupt 10h, setting a uniform text pattern on the screen. The routine then employs a loop that traverses video memory backwards by 56 bytes per iteration, updating memory with a pattern derived from a binomial coefficient sequence. This pattern, when XORed instead of added, produces a cellular automaton similar to Rule 60, which is well-known for generating fractal structures like the Sierpinski triangle.

The audio output is achieved by toggling bit 1 of port 61h, which directly controls the PC speaker cone. As the fractal pattern evolves, it modulates the speaker, producing a complex soundscape that mirrors the visual fractal structure. The entire routine demonstrates how extreme code compression can produce both visual and audio representations of mathematical patterns within the constraints of 16 bytes of x86 assembly.

Why It Matters

This achievement underscores the artistic and technical potential of minimalism in programming, especially within the demoscene community, which values pushing hardware and code to their limits. It illustrates how complex multimedia effects can be generated from extremely compact code, inspiring future explorations in code art, algorithmic music, and low-level hardware manipulation. For developers and enthusiasts, it offers a concrete example of how fundamental machine instructions can create synchronized visual and auditory experiences, emphasizing the creative possibilities of low-level programming.

Amazon

PC speaker sound generator kit

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background

The demoscene has long celebrated code density and the ability to produce elaborate effects within strict size constraints. This particular routine builds on prior demonstrations of fractal visualization and sound synthesis using minimal code, but its 16-byte size sets a new benchmark. The routine leverages fundamental x86 instructions and hardware features—such as the VGA text buffer and the PC speaker—to produce a synchronized audiovisual output. The technique relates to earlier experiments with cellular automata and algorithmic art, but its extreme compression distinguishes it as a notable milestone in code artistry.

“This 16-byte routine exemplifies how minimal code can generate complex, synchronized visual and audio effects, pushing the boundaries of low-level programming.”

— Demoscene programmer

“The demonstration showcases the incredible creativity in the demoscene, where programmers can produce multimedia art with astonishingly small code footprints.”

— Event organizer at the 2026 Demoparty

Amazon

x86 assembly programming book

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What Remains Unclear

It is not yet clear whether this routine has been implemented on hardware other than the original x86 DOS environment or if it can be adapted for modern systems. The precise auditory experience and visual fidelity depend on hardware specifics, and the routine’s behavior in different configurations remains to be tested.

Amazon

VGA text buffer display module

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What’s Next

Further exploration is expected into how such minimal routines can be adapted or extended for modern hardware and software environments. Developers and artists may attempt to replicate or build upon this technique, potentially leading to new forms of low-level multimedia art. Additionally, the demoscene community may showcase similar routines in upcoming events, pushing the boundaries of code density and multimedia synthesis.

Amazon

low-level hardware hacking tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

How does the 16-byte code generate both visuals and sound?

The code manipulates the VGA text buffer to produce fractal visuals and toggles the PC speaker control port to generate sound, using minimal instructions to produce synchronized audiovisual output.

Can this routine run on modern hardware or operating systems?

It is designed for DOS environments with direct hardware access. Running it on modern systems would require emulators or compatibility layers that emulate DOS hardware behavior.

What is the significance of this demonstration?

It showcases how extreme code compression can produce complex multimedia effects, highlighting artistic creativity and technical mastery in low-level programming.

Is the technique applicable outside the demoscene?

While primarily a demonstration of coding art, the principles of minimalism and hardware manipulation could inform embedded systems, hardware hacking, or experimental digital art projects.

You May Also Like

Liberals can’t eliminate Trump-style politics — but they might be able to beat it

Center-left leaders acknowledge they can’t eradicate Trump-like populism but focus on strategies to defeat it politically, amid rising far-right influence worldwide.

Thailand’s Thaksin Shinawatra released from prison after 8 months

Former Thai Prime Minister Thaksin Shinawatra was released on parole after serving 8 months, to serve the remainder of his sentence at home. The development impacts Thailand’s political landscape.

Trump’s brazen plan for a $1.7 billion slush fund

Trump reportedly plans to settle a lawsuit with the IRS in exchange for a $1.7 billion fund to benefit his allies, raising questions about misuse of taxpayer money.

Project Gutenberg – keeps getting better

Project Gutenberg, the free eBook library, has announced ongoing updates and enhancements to its digital collection, making it easier to access classic literature.