A2VERA · Apple //e · pure 6502

Two disks.
One VERA card.

A 7-in-1 test suite on a 140 KiB floppy and a 32 MiB slideshow with 375 fullscreen Mode 7 images, PSG chiptune and YM2151 FM — written in pure 6502 and streaming straight from ProDOS. Both boot here, in your browser.

Opens Apple2TS in a new tab with the disk streamed from this repository — no download, VERA already in slot 2, and the “VERA Monitor” tab showing the 640×480 output. On a machine without an FM chip the sound falls back to PSG automatically.

VERA rainbow arc demo: a 256-colour Mode 7 rainbow with eight sprite aliens bouncing along it
veratest.po — demo 3Mode 7 · 320×240 · 256 colours

The two images

One floppy, one hard disk

Both are bootable ProDOS 2.4.3 volumes with Slot 2 and Slot 4 binaries, a BASIC launcher that probes the card, and no fixed block numbers — they run from the image, or from a directory on your own ProDOS disk.

veratest.po

140 KiB · floppy
The seven-demo VERA test disk preview: rainbow arc with sprite aliens

Seven demos behind one menu: sprites, a PSG + FM chiptune, the Mode 7 rainbow, a Mode 4 tilemap, dual-layer parallax, the Matrix rain and Sonic’s Green Hill Zone.

  • 6502
  • VERA PSG
  • YM2151 FM
  • Slot 2 / 4

slideshow.hdv

32 MiB · HDV
Slideshow preview: a fullscreen 256-colour Mode 7 photo of a tiger

375 Mode 7 images with 375 custom palettes, read block by block through ProDOS and pushed into VERA VRAM. Three X16 soundtracks play as PSG + FM while the images stream.

  • 375 images
  • MLI READ_BLOCK
  • VZM stream
  • OSD

veratest.po · menu 1–7

Seven demos in 140 KiB

Every demo is its own 6502 binary, launched from the menu with the VERA base that matches the slot the probe found.

01

16-Sprite Bouncing Alien

4bpp crystal aliens on 16 hardware sprites, 2× scaling, bouncing off the screen border.

02

Sprites + PSG/FM Chiptune

Four PSG voices — pulse lead, saw harmony, triangle bass, noise drums — with YM2151 kick and snare when the FM chip answers.

03

Real Rainbow Arc · Mode 7

A fullscreen 256-colour 320×240 bitmap decompressed from an RLE stream in under a millisecond.

04

Mode 4 RPG Tilemap

8×8 8bpp tiles, a centred castle landscape and a slowly wandering horizontal camera.

05

Dual-Layer Parallax

Layer 0 starfield under Layer 1 plasma waves, scrolling at different depths like a 3D scene.

06

The Matrix Code Rain

256-colour text mode with multi-speed palette cycling and live katakana glitch mutations.

07

Sonic · Green Hill Zone

Dual-layer port with 4-frame sprites, water palette cycling, sunflower tile swaps and the original arrangement as PSG + FM.


slideshow.hdv · 375 images

A slideshow that streams, not loads

There is no 76,800-byte bitmap in Apple II RAM. The engine resolves each image’s ProDOS allocation, then reads those blocks straight into VERA while the music keeps running from the VSYNC interrupt.

  • Next image→↓Space
  • Previous image←↑P
  • Auto-play every 3 sA
  • Random mode + auto-playR
  • Next soundtrackN
  • Status overlay on/offO
  • Mute / resumeM
  • Master volume 0–15+−
  • Back to BASICEscQ

Under the hood

Everything is 6502 and ProDOS MLI

No patched emulator features, no host acceleration: the same binaries run on a real Apple IIe with a VERA card.

ProDOS

File-level streaming

The slideshow finds each IMGnnn.BIN and VPALnnn.BIN through its catalog entry, reads the seedling/sapling index, and issues MLI READ_BLOCK on the allocated blocks directly into VERA. Cadius allocates them dynamically, so nothing assumes contiguous data.

Audio

ZSM → VZM at build time

The X16 soundtracks are converted into VZM records: PSG writes, batched YM2151 register pairs and delays. Every tick was replayed against the raw ZSM — 31,147 ticks, zero mismatches.

PSG + FM

One volume knob for both

A bounded BUSY probe detects the OPM at $C0A0/$C0A1 or $C0C0/$C0C1. One master volume scales the 16 PSG levels from a shadow table and rewrites all 32 FM total levels, matched to the same amplitude law.

Timing

60 Hz music while images load

Two 512-byte tick buffers are prefetched from the IRQ midpoint, so block boundaries switch buffers and keep decoding the same tick. A short read past EOF ends the track normally instead of muting.


Build it

Two commands, zero dependencies

The 6502 assembler, the Applesoft compiler and the disk packagers are all in this repository.

REM needs Node.js; Cadius is bundled in tools/
git clone https://github.com/anomixer/veratest
cd veratest

build.bat all                    REM veratest.po + slideshow.hdv + previews
node src/verify_music_streams.mjs   REM replay all 31,147 music ticks
  • build.bat veratest or build.bat slideshow builds a single target.
  • Set CADIUS to use a different Cadius executable.
  • The floppy keeps one free block; both Slot 2 and Slot 4 binaries are on every image.
  • Images also run in AppleWin with the VERA + YM2151 card, or on real hardware with the card in slot 2 or 4.