TL;DR

A 16-byte x86 assembly routine showcased at the 2026 Demoparty generates fractal visuals and sound by manipulating video memory and speaker port. This demonstrates advanced algorithmic density and creative use of minimal code. The project highlights the intersection of demoscene coding and digital art, with implications for compact computing and creative coding.

At the 2026 Outline Demoparty, a 16-byte x86 assembly program was demonstrated that creates both visual fractal patterns and audio signals from matrix rain effects, showcasing extreme code density and creative technical achievement.

The code, presented as a technical exercise in algorithmic density, manipulates the computer’s video memory to render a Sierpinski fractal while simultaneously toggling the PC speaker port to generate sound. It begins with a BIOS interrupt to set video mode 0, which initializes a text-based display buffer. The routine then performs a loop that traverses the video memory backwards by 56 bytes each iteration, updating memory with XOR operations that encode the fractal pattern. These updates are immediately sent to the speaker port, producing sound waves that reflect the fractal’s structure.

The assembly code’s design leverages the properties of cellular automata, specifically Rule 60, to generate the fractal’s binary pattern. The toggling of Bit 1 in the speaker port yields a square wave whose frequency and rhythm correspond to the visual pattern, creating an audio representation of the matrix rain effect. The routine’s brevity—just 16 bytes—demonstrates an extreme level of optimization and creativity in the demoscene community.

Why It Matters

This development highlights how minimal code can produce complex, multimedia outputs, illustrating the potential of algorithmic art within tight constraints. It also underscores the ongoing exploration of code density as both a technical challenge and an artistic medium, with implications for embedded systems, demoscene culture, and creative coding communities. The ability to generate synchronized visual and audio effects with such a small code footprint exemplifies innovative use of low-level programming and hardware interfaces.

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.

Background

The demonstration builds on longstanding demoscene traditions of pushing technical limits, especially in code size and efficiency. Previous projects have used elaborate tricks to produce multimedia effects within tiny code footprints. This 16-byte routine is notable for its extreme brevity, relying on fundamental x86 instructions and hardware ports to generate both visuals and sound. The event at the Demoparty marks a milestone in algorithmic art, emphasizing the creative potential of minimal assembly code.

“This is a remarkable example of how minimal code can produce both visual and audio art, pushing the boundaries of what’s possible with extreme constraints.”

— Demoparty organizer

“Using just 16 bytes, we can create a fractal visual and generate sound that reflects its structure—it’s a proof of concept for extreme coding density.”

— Assembly coder behind the project

innomaker HiFi USB DAC/Headphone Amplifier 3.5mm/XRL Outputs ES9038Q2M PCM 32Bit/768kHz or DSD256 Audio Spectrum FFT Display Audio Car for PC/Laptops/SBC Not Supported on Mac Os

innomaker HiFi USB DAC/Headphone Amplifier 3.5mm/XRL Outputs ES9038Q2M PCM 32Bit/768kHz or DSD256 Audio Spectrum FFT Display Audio Car for PC/Laptops/SBC Not Supported on Mac Os

【Advanced-Design】Featuring the cutting-edge ARM Cortex + DSP + ES9038Q2M hardware design, combined with three Texas Instruments SoundPlus HiFi…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What Remains Unclear

While the core mechanics and code have been publicly demonstrated, the full details of the implementation, including precise timing and potential variations, remain under analysis. It is not yet clear how this approach could be adapted for other hardware or extended into more complex multimedia projects.

Voice Module,MP3 Music Sound Chips, 16MB Sound Module for Crafts, Christmas, New Year Greeting Cards, Box with Speaker Lithium Battery Powered and USB Cable. (JR-JX7004-Button Sound Module)

Voice Module,MP3 Music Sound Chips, 16MB Sound Module for Crafts, Christmas, New Year Greeting Cards, Box with Speaker Lithium Battery Powered and USB Cable. (JR-JX7004-Button Sound Module)

Support Download and Delete Music : The voice chips support download your own mp3 music, also record through…

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

What’s Next

Further exploration is expected to analyze the code’s potential for more intricate patterns, real-time interaction, or integration with other hardware. The community may also attempt to replicate or extend the routine, testing its limits and applications in embedded or artistic contexts. Additional presentations or publications could emerge at future demoparties or coding conferences.

Waveshare Jetson Orin NX AI Dual ETH Development Kit for Embedded and Edge Systems, Bundle with 8GB Memory Jetson Orin NX Module

Waveshare Jetson Orin NX AI Dual ETH Development Kit for Embedded and Edge Systems, Bundle with 8GB Memory Jetson Orin NX Module

High – Resolution 2MP Imaging: This USB camera offers a 2MP resolution, with a static image resolution of…

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 sound and visuals simultaneously?

The code manipulates video memory to produce fractal visuals and toggles the PC speaker port to generate corresponding audio signals, all within a 16-byte routine.

Can this approach be used with modern hardware?

While designed for classic x86 architecture, the principles of minimal code multimedia generation could inspire similar techniques on modern hardware, though direct port access like in the demo is generally restricted.

What is the significance of the fractal pattern in this project?

The fractal, based on Rule 60 cellular automata, provides a mathematically elegant structure that can be visually represented and sonified, demonstrating the intersection of mathematics, art, and programming.

Is this routine practical for real-world applications?

No, it is primarily a technical demonstration and artistic experiment, not designed for practical use but to showcase the potential of minimal code in multimedia generation.

You May Also Like

A True-to-Life Biennale

Artists and cultural workers staged the first-ever strike at the Venice Biennale, disrupting the opening and issuing a collective protest over inclusion and governance.

When a Content Network Starts Publishing to Itself

Discover what happens when a content network begins publishing to itself. Learn the risks, benefits, and how to manage this surprising shift effectively.

Spotify is celebrating its 20th birthday with a Wrapped-like feature that covers your entire time on the app

Spotify marks its 20th anniversary with a new personalized recap feature, offering users insights into their listening history, similar to Wrapped.

Marathon’s future includes duo queues, more PvE modes and better onboarding

Bungie reveals plans to improve Marathon with duo queues, new PvE modes, and streamlined onboarding, aiming to enhance player experience and retention.