Analysis model: gpt-5.5 xhigh

Four Years by Origo Dreamline - Technical Dissection

Scope

Four Years is Origo Dreamline's winning C64 demo from Assembly 1993. It is a proper one-file demo, not a cracktro or a short logo effect. BX and CLF are credited with code and character sets, Napalm with graphics, and Zardax with music. The contemporary production and all four makers are Finnish; Zardax's profile records his later move from Finland to Spain in 2014.

Sources:

The production was released on 10 August 1993. CSDb lists it as a C64 one-file demo and records first place in the Assembly 1993 C64 demo competition.

Preserved File

The examined CSDb download is a gzip-compressed T64:

ccafb5821ea33bbab38982f266537058ec3e7a7d01bb40794d2b1513e24faa54  four-years.t64.gz
2e6c2e723d2a3151ff69190e5f4a3a246b5a28408474f182a41cf0d92b0f96ff  four-years.t64

Its single directory entry is FOUR YEARS/ORIGO, loaded at $0801 and ending at $5e72. Extracting that logical PRG gives:

8d8e8946981c1acbbe627c3f868bde49abed4b2bd717f8aadb6c677fa2eada8f  four-years.prg

The BASIC line is only a launcher:

10 SYS 2066

The bytes after it carry a V5.0 cruncher marker. Static disassembly of the file therefore describes the depacker, not the running demo. The useful code map comes from memory after that depacker has finished.

Complete Direct Silent Run

The original T64 was autostarted in VICE 3.9 using the cycle-accurate x64sc core and the PAL C64 model. SID emulation remained present for normal program operation, but the host audio path was disabled. Nothing was played or recorded.

Machine:       PAL C64, x64sc
Input:         original CSDb T64
Display rate:  50.1 frames per second
Host audio:    disabled
Observation:   opening plus more than three minutes of the main loop
Capture:       lossless FFV1 source on a private X display

The opening title runs once. The main screen then deliberately continues: Napalm's large horror face stays in place, the bottom text scrolls without stopping, and coloured objects repeatedly enter, rotate, change scale, and leave. More than three minutes of direct observation covered the recurring large and small object families and confirmed that this is the demo's complete repeating system, not a frozen screen or an early exit.

The three GIFs below are continuous 12-second excerpts from that direct run. They are uniformly cropped and scaled, with no audio, H.264 video, contact sheet, or reconstructed footage.

Striped sprite object crossing the face in Four Years

The strongest trick is the collision of two kinds of image. The face is a carefully drawn fixed bitmap, while the striped body crossing its mouth is assembled and moved by the live sprite system. It can cover the bitmap without redrawing the portrait underneath.

Small rotating object in Four Years

Object size is not faked by scaling the whole screen. Different prepared sprite data and positions are fed into the same display machinery, so a small body can turn in open space while the face and scroller continue unchanged.

Large cube-like object in Four Years

The larger forms expose the same construction more clearly. Their stepped edges and changing internal colours belong to the sprite layer; the portrait remains the stable visual anchor rather than becoming a conventional full-screen 3D scene.

What The Running Code Shows

Once unpacked, the setup at $0ac4 establishes the visible mode and interrupt environment:

lda #$ff
sta $d01c       ; sprite multicolour enabled
lda #$02
sta $dd00       ; VIC-II bank selection
lda #$09
sta $d018       ; screen/bitmap pointers
lda #$c8
sta $d016       ; multicolour display setup
...
lda #$f1
cmp $d012       ; wait for a known PAL raster position
bne *-3
...
cli

$d018 = $09 with CIA2 bank value $02 selects the bitmap arrangement used for the face. The startup also programs a CIA timer and installs its own vectors. This is not a BASIC animation wrapped around a picture: the launcher quickly gives the machine to a custom raster program.

The live interrupt code from $1297 onward forms a chain. Each stage writes the next address to $fffe/$ffff, chooses another $d012 raster line, updates four sprite Y registers, and returns with RTI. The first two repeated blocks look like this:

lda $18
sta $d001
sta $d003
sta $d005
sta $d007       ; Y for sprites 0-3
adc $34
...
sbc #$07
sta $d012       ; next raster split
...
sta $fffe
sta $ffff       ; next IRQ stage
rti

lda $18
sta $d009
sta $d00b
sta $d00d
sta $d00f       ; Y for sprites 4-7

Later stages repeat the alternation. Before each reuse, code writes consecutive values into $43f8-$43ff, the eight sprite-pointer bytes at the end of the active screen. That is the core of the effect: all eight hardware sprites are repositioned and assigned new data several times down one PAL frame. The demo gets more visible object slices than the C64's nominal eight-sprite limit.

The interrupt also changes $d011 between $3b, $bb, and $9b around raster boundaries. Those writes control bitmap display state and vertical position while the sprite reuse is taking place. Acknowledging $d019 and installing the following vector explicitly keeps the chain synchronized instead of relying on a long polling loop.

The Visual Division Of Labour

The screen is economical:

element                    implementation
-------------------------  ----------------------------------------------
horror portrait            multicolour bitmap and colour data
moving coloured bodies     eight hardware sprites reused by raster IRQs
vertical object placement  successive writes to $d001-$d00f
object data selection      sprite pointers at $43f8-$43ff
bottom text                separate continuously updated character line
music                      Zardax SID routine, credited as Anglia Spirit

The portrait consumes visual attention but little frame-to-frame work. Most CPU time can go into selecting sprite shapes, positions and colours, servicing the raster chain, advancing the scroller, and calling the music routine. That division explains why the screen can look busy without replacing a full bitmap at 50 Hz.

The apparent rotation is consequently not a general polygon renderer. It is a sequence of prepared sprite slices, arranged by code and swapped at precisely timed raster positions. This is the important distinction: the forms move like solid objects, but the machine is compositing a controlled animation over a fixed bitmap.

Why It Works

Four Years is built around one image strong enough to survive repetition. The technical effect does not fight that image. Raster-split sprite reuse lets the coloured forms invade it, retreat from it, and return in different sizes, while the scroller supplies continuous horizontal movement below.

The result is unmistakably a 1993 C64 demo: a packed one-file release, an aggressive bitmap, prepared animation data, and a tightly scheduled PAL raster chain. Its first-place result makes sense. The code spends the machine's limited resources on the one contrast the viewer actually notices—stable, detailed artwork against restless hardware-sprite motion.