Analysis model: gpt-5.5 xhigh

The Final Option by Phantom Dezign - Technical Dissection

The Final Option is an unusually dense 1994 PC trackmo hidden behind one misleadingly simple file. FINAL.EXE is not a monolithic 2.4 MB program. It is a small compressed 386 loader, a private 60-file archive, an extra compressed palette and three consecutive 8-channel modules. The recovered program is a collection of independent renderers sharing an EMS asset store and a tracker clock.

That distinction matters more than the demo's eleventh place at Assembly. The inner loops include a custom LZ decoder, an EMS paging layer, a 2x interpolation kernel, planar VGA page scrolling, a six-oscillator additive-pixel field and several different vector and polygon paths. This analysis follows those paths. The pictures merely make the binary data legible.

Release year: 1994

Artifact Identity, Including The Archive Mismatch

Item Recovered fact
Production The Final Option by Phantom Dezign / Phantom Design
Results 11th at Assembly 1994 PC Demo; 1st at Várparty 1994 PC Demo
Preserved program FINAL.EXE, 2,406,450 bytes, SHA-256 0b1c6d5f3419c40871022f5e89592cce14cd8922474b20d5a3ebf310a539e8c9
Assembly-directory ZIP 2,042,901 bytes, SHA-256 16100fce4c4f109b9da9f161d48ec5a2eb174562571eb95d8460eab2da38fed9
Várparty-directory ZIP 2,048,792 bytes, SHA-256 6728a81d731340c752c5e0abfc7bf6b576ec9983c2cfd694d1d54cd31562f866
Program requirement 386, VGA, 512 KiB GUS, 2,800 KiB EMS; 486DX-40 recommended
Build stamp 08/26/94 (19:43:09), Turbo Assembler 4.0, printed by the executable's -c option
Runtime boundary Static analysis and exact shipped-asset decoding; normal execution stalled in the tested DOSBox builds
Audio boundary No soundtrack was auditioned, captured or published

The two surviving ZIPs contain byte-identical copies of FINAL.EXE and PHANTOM.NFO; the Várparty copy only adds DISTFORM.NFO. The small FILE_ID calls this “much better than the ASM94 version”, while the full NFO says the trackmo was not released at Assembly and identifies Várparty-2 as its actual debut. The safest conclusion is therefore narrow: today's Assembly-directory archive holds the later final/Várparty executable, not proof of the exact Assembly compo binary. This article analyses that preserved final build.

Public identity and result evidence: Demozoo production, Assembly 1994 competition, Pouet party entry, Pouet final entry, and the Scene.org Assembly-directory archive.

A 28 KB Loader Expands Into 61 KB Of Code

The MZ file image ends exactly at file offset 6EC8h. Its load module contains only 28,061 bytes of packed data. The entry stub expands that stream to 62,702 bytes, applies 148 relocations from a compact relocation program, then enters the recovered main program at offset 0081h.

The depacker is a bit-level LZ machine rather than a library signature. It refills a 16-bit, least-significant-bit-first reservoir, emits literal bytes on one branch and signed backward copies on the other. Three distance encodings share four length tiers: 2 bytes, 3..8, 9..16, or an extension byte plus 17. A short-form signed distance of FFFFh terminates the stream.

while true:
    if bit() == 1:
        *dst++ = *src++                         ; literal
        continue

    distance = decode_signed_8_or_16_bit_offset()
    if short_form(distance) == FFFFh:
        break
    length = decode_2__3_to_8__9_to_16__or_17_plus_byte()
    copy_from(dst + distance, dst, length)      ; overlap is intentional

The same routine is called again for archive members. A Python implementation of this grammar consumed every stored member exactly, apart from two members with two explicit padding bytes. All 60 named resources decompressed cleanly; that is a stronger boundary check than finding plausible strings in the outer file.

The Overlay Is A File System, Not A Data Blob

The overlay begins with the literal table1.tbl. After a 16-byte header it uses fixed 32-byte records:

+00  8 bytes   short/truncated name
+08  dword     member offset relative to overlay start
+0C  dword     packed byte count
+10  16 bytes  long filename

The terminator is at table-relative 0790h; payloads begin immediately after the 07A0h table and remain contiguous. The recovered inventory explains the demo's architecture better than the outer filename does:

00..08  intro/title LBM pictures and main palette/picture data
09..32  320-wide texture and credit strips, fractal/tube/glenz/dance data
33..38  greeting assets, character data and two sine tables
39..46  DANCE0.VCT .. DANCE7.VCT
47      MANDEL.GEN
48..51  ANIM1.DAT .. ANIM4.DAT
52..58  1.GEN .. 6.GEN and DROID.CYB
59      DROID.PAL, actually a 64,000-byte indexed 320x200 picture

An unnamed 216-byte packed stream follows the table members and expands to the 768-byte VGA palette paired with DROID.PAL. After it come exactly three FastTracker-style 8CHN modules:

Introduction   5 orders,  5 patterns, 268,890 bytes
Main part     69 orders, 46 patterns, 471,370 bytes
End/Credits   15 orders, 14 patterns,  70,410 bytes
                                      -----------
                                       810,670 bytes exactly

The misleading extensions are worth keeping straight. The .BMP and .DUM members are raw 320-pixel graphic strips, not Windows bitmaps and not dumped code. The names GREGCODE.DUM, CODEASH.DUM and CODECIE.DUM are rendered credit captions. The executable contains the effect code.

One Loader Call Connects Disk, LZ And EMS

The resource routine at recovered offset 1BCCh turns a zero-based member number into a file seek. It selects record 18h + index*20h, reads the stored offset and size, seeks to overlay_base + member_offset, reads the packed bytes and invokes the same LZ decoder at 1A99h.

; recovered resource path, simplified
shl  ax,5                   ; 32-byte record
add  ax,0018h
add  eax,00006EC8h          ; MZ/overlay boundary
seek FINAL.EXE,eax
read member_offset,member_size
seek FINAL.EXE,6EC8h+member_offset
read packed_member
call 1A99h                  ; custom LZ decode

Most decoded members are immediately copied into EMS. Startup asks interrupt 67h for EMS 4.0 and rejects a machine with fewer than 00A6h pages. At 16 KiB per page that is 2.59 MiB, consistent with the NFO's rounded 2,800 KiB requirement.

The allocator at 3D9Bh is a bump pointer in a logical EMS address space. The copy functions split an offset into a 16 KiB page number and page-local offset, then use EMS function 57h, Move Memory Region. Thus an effect receives a small logical handle even when its animation is hundreds of kilobytes; the loader moves only the requested range back into a conventional buffer or VGA page.

logical offset
    -> page = offset >> 14
    -> within_page = offset & 3FFFh
    -> EMS 4.0 move-memory descriptor
    -> conventional work segment / A000h

This also explains why several effects can coexist in one 16-bit real-mode program without each owning a huge near-data segment.

The Main Routine Is The Actual Scene List

After hardware setup, the main entry switches among far effect segments and uses the common fade at 0DA9h as a scene delimiter. Its order is recoverable without relying on a video:

call 0E1Ah                 ; opening/title path
call far 08A7:23E1h
call far 0000:40D0h
call far 0000:3E30h        ; shared transition
call far 0B4C:0000h
call far 0D11:006Ch
call far 0000:5ABAh
call far 0000:479Eh
call near 248Eh
call far 0DBC:0000h        ; additive point field
call near 30A4h
call far 0000:5F24h
call far 0000:7CCEh
call near 36BBh            ; recovered droid picture
call far 083B:0000h
call far 0000:4CD2h

The player keeps its current order and row in words around CS:99B2h and CS:99B6h. Effects compare those words directly rather than waiting fixed wall-clock durations. The scene scheduler is therefore distributed: main selects a renderer, while each renderer exits or changes phase when the module state crosses its own threshold.

The fade delimiter itself performs 63 passes. On each pass it reads every DAC triplet, subtracts one from nonzero components, writes it back, and waits for a retrace edge. It is a hardware palette operation, not a framebuffer blend.

A 2x Interpolator Built From Averages And Word Stores

One renderer decodes an 80x50 source and enlarges it in software. The decode at 40A7h treats each byte as two nibbles: the upper nibble plus one is a run length, and the lower nibble shifted left becomes the output colour. It stops after 4,000 output bytes.

The kernel around 4000h then visits adjacent source samples. It writes each source value twice horizontally, averages left/right and top/bottom neighbours, and computes a centre sample from the surrounding quartet. The regular body handles 79 columns by 49 rows; separate edge code finishes the last row and column. Using word stores for the repeated pixels cuts address arithmetic in the hot path.

A ------ B       output: A, avg(A,B), B ...
|        |
|        |       middle row uses vertical and four-way averages
C ------ D       output: C, avg(C,D), D ...

This is interpolation in the literal 1994 sense: byte averages arranged to turn a small generated field into a larger surface, with no floating point and no post-processing API.

The Additive Point Field Has Six Independent Phases

The far effect at linear DBC0h begins by filling all 64,000 Mode 13h pixels with colour index 1. Its inner routine at DC9Fh retains the previous address of each point, decrements that byte, computes a new address, and increments the new byte. Collisions therefore become brighter automatically while old positions erase themselves.

Six phase accumulators provide three X terms and three Y terms. Each is doubled for a signed-word sine-table lookup, shifted right by three and added. The Y sum is centred at 100, converted through a scanline-offset table, then combined with X centred at 160.

; DC9Fh inner path, reduced to its data operations
dec  byte es:[old_address]

x = (sin[p0] + sin[p2] + sin[p4]) >> 3
y = (sin[p1] + sin[p3] + sin[p5]) >> 3
new_address = scanline[y + 100] + x + 160

inc  byte es:[new_address]
store new_address

p0 += step0 ... p5 += step5
wrap every phase modulo 1500

The point count is itself staged: it starts at 100, rises by eight until 1,500, holds, then fades the active DAC entries. The renderer needs no sprite blit, clearing pass or alpha calculation. Pixel value is particle density.

Planar VGA Is Used As A Moving Surface

The path at 7CCEh switches to Mode 13h and immediately reprograms the sequencer and CRTC. 7ED4h selects all four planes, clears 7D00h words, and changes CRTC mode-control registers. Presentation is then controlled through CRTC start-address registers 0Ch/0Dh.

Its synthesis loop maintains four phase indexes. For each output word it adds four table samples at +03FCh, inverts the result and writes that word into three vertically separated positions. The indexes advance by 5, 2, -5 and 1, wrapping at 360. A second pass derives a variable phase step from another table. The outer controller advances the displayed start address by 00A0h until 2EE0h, holds it for 150 retraces, then walks it back.

That is a useful period-correct division of labour: the CPU builds a repeated dithered field into planar memory; the CRTC moves the visible window through it without copying 64,000 bytes per frame.

The Dance Files Are Authored Geometry, Not Captured Frames

Seven ordinary dance streams are little-endian coordinate sequences. Each point is (x,y) with X normally in 0..320 and Y in 0..400; the renderer halves Y for the 320x200 display. FFFEh ends a frame and FFFFh ends the stream. Frame counts vary because the outlines vary:

DANCE1  19 frames      DANCE5  18 frames
DANCE2  14 frames      DANCE6  28 frames
DANCE3  79 frames      DANCE7  25 frames
DANCE4  99 frames

DANCE0.VCT begins with TSC! and uses a different encoded representation; it should not be silently forced through the plain-coordinate decoder. The GIF below fills the real DANCE3/4/6 polygons in sequence. It is an exact asset decode, not a claim that these colours or this timing reproduce the runtime.

Authored dancer polygons decoded directly from the shipped coordinate streams.

All seven plain coordinate streams overlaid at sampled authored frames.

The final picture has another extension trap. DROID.PAL is exactly 64,000 indexed pixels; the following unnamed member is its 768-byte six-bit VGA palette. Pairing them produces the picture below. The renderer at 36BBh loads member 59 and the unnamed member separately, programs the DAC, then draws the frame.

The exact 320x200 droid asset reconstructed from DROID.PAL and its adjacent VGA palette.

What The Final Build Actually Optimises

The final build is not held together by one spectacular universal engine. Its character comes from many tightly scoped engines and a strong common substrate:

The NFO says the final trackmo was made in two weeks and that the unfinished S3M player forced the music to be converted to 8-channel MODs. The binary makes that pressure visible. Instead of generalising every effect, the authors built a compact loader and let each scene spend its cycles directly on the most useful inner loop. That is the technically interesting part of The Final Option, regardless of which archive directory now contains it.

Credits And Evidence Limits

Demozoo and the release NFO credit code to Ash, Cie Kill, Genesis and Greg; additional code to Cyberdancer; graphics to Ian and Radgast; and music to Deansdale. The preserved executable's normal run did not progress reliably in the tested DOSBox-X 2026.01.02 or DOSBox 0.74 setups, so this article does not invent a direct-runtime capture. Code statements come from the decompressed program and validated resource extraction. The dancer animation and two still images are explicitly shipped-data decodes. No music was played.