Native integration
VP64 supplies the original C64 game and the first working example of the pattern.
avolzila_runtime / Enabling technology
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.
01 / Overview
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.
VP64 supplies the original C64 game and the first working example of the pattern.
The generalized layer is about execution, frame output, sound and input across host contexts.
An embedded Pi image or an Apple product provides the surrounding user experience.
02 / System view
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.
The Buildroot-based Pi image supplies boot, device access, display and audio around a selected application integration.
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
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.
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.
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.
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.
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
The Buildroot-based Raspberry Pi appliance image: boot, hardware, display and audio.
The generalized approach to hosting native program integrations in new contexts.
The C64 game and current runtime implementation that demonstrate the pattern.
Device-specific products built around the VP64 experience.