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.

SoundOriginal PC Motherboard Internal Speaker (3-Pack), BIOS Alarm Buzzer for PC Troubleshooting & Post Beep Code Diagnostics, Essential Mini Hardware Tool for DIY Computer Building & IT Repair

SoundOriginal PC Motherboard Internal Speaker (3-Pack), BIOS Alarm Buzzer for PC Troubleshooting & Post Beep Code Diagnostics, Essential Mini Hardware Tool for DIY Computer Building & IT Repair

[Quick PC Diagnostic Tool] Is your new PC build showing a black screen? This motherboard speaker translates silent…

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

Modern X86 Assembly Language Programming: Covers X86 64-bit, AVX, AVX2, and AVX-512

Modern X86 Assembly Language Programming: Covers X86 64-bit, AVX, AVX2, and AVX-512

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.

Hosyond 3pcs I2C IIC 1602 LCD Display Module 16x02 LCD Screen Module for Arduino Raspberry Pi

Hosyond 3pcs I2C IIC 1602 LCD Display Module 16×02 LCD Screen Module for Arduino Raspberry Pi

1602 LCD screen can display 2 lines x 16 characters, with i2c serial interface, blue display.

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.

The Hardware Hacker: Adventures in Making and Breaking Hardware

The Hardware Hacker: Adventures in Making and Breaking Hardware

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

AMÁLIA and the future of European Portuguese LLMs

Portugal launches AMÁLIA, a fully open-source LLM for European Portuguese, with significant government investment, aiming to boost NLP for the language.

Japan’s hopes for a Trump stop in Tokyo before Beijing fall through

Japan’s plans to host Trump before his Beijing trip have collapsed due to diplomatic complications, highlighting shifting regional priorities.

Behind the Blog: New Music and a Crash Out

A new music release by an independent artist was abruptly interrupted by a technical crash, raising questions about digital infrastructure stability and artist safety.

Xbox Game Pass: All Games Coming Soon In July 2026

Microsoft has revealed the list of games coming to Xbox Game Pass in July 2026, including new releases and updates. Details confirmed and upcoming titles outlined.