AIThis post was created with the assistance of artificial intelligence (AI).

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.

x64 Assembly Language Step-by-Step: Programming with Linux (Tech Today)

x64 Assembly Language Step-by-Step: Programming with Linux (Tech Today)

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 Hardware Design: ARM Cortex, DSP, ES9038Q2M, Texas Instruments amplifiers
  • High-Resolution Audio Support: Supports 768kHz/32Bit, DSD256, >2.1vrms output
  • Audio Spectrum Display: OLED screen with spectrum visualizations

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.

Stemedu 8MB Sound Recordable Module Button Control Programmable Voice Chip, MP3 Music Player Kit, USB Downloadable Musical Board for DIY Audio Stuffed Animal Toys Greeting Card Music Box

Stemedu 8MB Sound Recordable Module Button Control Programmable Voice Chip, MP3 Music Player Kit, USB Downloadable Musical Board for DIY Audio Stuffed Animal Toys Greeting Card Music Box

  • Compact 8MB Sound Module: Small size with MP3 playback capability
  • Easy to Use: USB download without welding skills
  • Versatile Power Options: Powered by 4.5-5V or 3.7V battery

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.

Jetson Orin Nano 8GB RAM Super Board(Official) 67Tops Development Board Kit for Embedded and Edge Systems

Jetson Orin Nano 8GB RAM Super Board(Official) 67Tops Development Board Kit for Embedded and Edge Systems

  • AI Performance: 67 TOPS AI performance
  • GPU: 1024-core NVIDIA Ampere GPU
  • CPU: 6-core Arm Cortex-A78AE CPU

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

Cricut’s $99 craft cutting machine helped me feel creative again

A detailed review of the Cricut Joy 2, a $99 craft cutter that helped a user rediscover creativity, highlighting its features, challenges, and potential.

One Video In, a Whole Publishing Kit Out — Without the Cloud

Discover how local AI tools turn a single video into a full content package—images, scripts, clips—without relying on the cloud. Keep control and privacy intact.

Spotify’s launches a Wrapped-style recap of your entire listening history

Spotify introduces a new limited-time feature offering users a detailed recap of their listening history, including top songs and artists, amid its 20th anniversary.

Podcast: The Chinese Deepfake Software Powering Scams

Investigations reveal Haotian AI, a Chinese deepfake software, is being exploited in scams worldwide, raising security concerns and regulatory questions.