avolzila
Project showcase / Core technology

avolzila_runtime / Enabling technology

Classic code.
New contexts.

A generalized runtime approach for bringing a native program into modern devices. VP64 is the working reference integration, demonstrated on Raspberry Pi and Apple devices.

Avolzila project / Runtime architecture
Runtime model01 / 04
Reference integrationNative VP64 program
Enabling layeravolzila_runtime
Embedded hostavolzila_platform
Product hostApple devices
Conceptual architecture / VP64 is the reference case
RoleGeneralized runtime
ReferenceVP64 integration
ContextsPi platform + Apple

01 / Overview

A runtime pattern drawn from a working integration.

avolzila_runtime names the generalized host approach developed from the VP64 implementation. Its job is to bridge a native program and the environment that presents it: machine execution, input, picture and sound, then a device-specific frontend.

VP64 is the concrete reference case behind this page. The Raspberry Pi image, avolzila_platform, provides an embedded host environment; Apple versions package the experience as products for end users. The runtime sits between the program and those hosts.

01 / Program

Native integration

VP64 supplies the original C64 game and the first working example of the pattern.

02 / Runtime

Enabling core

The generalized layer is about execution, frame output, sound and input across host contexts.

03 / Host

Device context

An embedded Pi image or an Apple product provides the surrounding user experience.

02 / System view

One integration. Different hosts.

The VP64 example shows the boundary between the native program, its runtime, and the environment that delivers it. These are distinct parts of the system.

Embedded context / 01Raspberry Pi
Example programNative C64 VP64
Runtime approachavolzila_runtime
Image and devicesavolzila_platform

Embedded appliance

The Buildroot-based Pi image supplies boot, device access, display and audio around a selected application integration.

Product context / 02Apple devices
Example programNative C64 VP64
Runtime approachavolzila_runtime
End-user experienceApple product

Packaged product

The Apple versions put a product interface around the runtime for end users.

Conceptual relationship diagram. VP64 is the working reference; the generalized naming describes the intended reusable layer.

03 / Under the hood

Inside the VP64 reference implementation.

The current VP64 code demonstrates the runtime pattern in concrete terms: embed the game, advance the PAL machine one frame at a time, then hand picture, sound and controls to a host frontend.

01 / BuildEmbedded VP64U ROM64 KiB game + embedded character ROM
02 / EmulatePAL C64 machineCPU · VIC-II · SID · CIAs
03 / AdaptMachine APIFrame · display · audio · input
04 / PresentSDL cabinetScreen · sound · controls · lamps
01

Cartridge at startup

The raw 64 KiB Magic Desk image is embedded at build time. During execution, a write to $DE00 selects one of eight 8 KiB banks at $8000–$9FFF. A small compatibility KERNAL provides the startup, keyboard, and interrupt entry points the game uses.

02

PAL timing

The C11 chips model supplies the C64 components; a C++23 Machine wrapper drives them. Each frame advances 63 × 312 CPU ticks, approximately 50.1 PAL frames per second.

03

Host-facing output

The wrapper converts the indexed C64 display to RGBA pixels and passes 44.1 kHz mono SID samples to an audio callback. SDL places the 320 × 200 game picture inside the cabinet and maps keyboard, pointer, and touch input to game controls.

04

Cabinet feedback

VP64 writes its game state to $DE01–$DE09. The final write commits a complete snapshot, which the frontend uses for button lamps and selected holds. The core makes one checked allocation at construction and no heap allocations while advancing or resetting the machine.

04 / The wider picture

One ecosystem. Distinct roles.

Embedded image

avolzila_platform

The Buildroot-based Raspberry Pi appliance image: boot, hardware, display and audio.

Runtime layer

avolzila_runtime

The generalized approach to hosting native program integrations in new contexts.

Reference integration

VP64

The C64 game and current runtime implementation that demonstrate the pattern.

End-user products

Apple versions

Device-specific products built around the VP64 experience.