Analysis model: gpt-5.5 xhigh

Starlite by Nordic Vision - Technical Dissection

Starlite is a Finnish 1994 PC demo whose most interesting asset is not its brief Assembly history but its restored executable. The shipped program is a 700 KB DIET-packed, self-reading Turbo Pascal application. Restoring a copy exposes 110 KB of relocatable 16-bit code: a planar texture mapper, a neighbour-averaging feedback field, a timed text compositor, a Mode-X pixel plotter, a grid renderer and a compact four-opcode animation interpreter.

The NFO says the demo was made in about three days and was presented at Assembly 1994 but not shown. It also promised a later source archive. No such archive appears in the current Scene.org inventory, so this is a binary-led analysis. The code is the evidence; the runtime GIFs show which authored scene each recovered path produces.

Release year: 1994

Artifact Identity And Recovery Boundary

Item Recovered fact
Production Starlite by Nordic Vision
Credits Sentinel: code; Mazo: music; Tomi and Wihannes: graphics
Preserved ZIP 493,089 bytes; SHA-256 24a58d656006f2fe385b036f11b250452fdbc2f5fb2098b60f46fe7ab6d3e201
Shipped executable STARLITE.EXE, 700,708 bytes; SHA-256 b71c63fec90bf13c83a3d464ee5300a10a6f35ee55cfa023657281da94d1564f
Restored executable copy 110,112 bytes; SHA-256 fc3689e0472c0bf1cdb58e4c0676060b7ef7272cf46b9e36d648bf35f3a5a361
Module STARLITE.S3M, 442,671 bytes; SHA-256 9c0f02984b36c4f26a5525fbd9a402dc20042a11e8662ab934e8125c4b029ab5
Runtime Exact packed release, DOSBox-X 2026.01.02, normal exit at capture 03:20.266
Audio boundary Guest GUS enabled for timing; host audio dummy; nothing auditioned, captured or published

The public identity chain is the Demozoo production record and the preserved Scene.org archive. The release NFO supplies the credits, hardware notes and not-shown boundary. Old personal addresses and telephone numbers in that file are deliberately not repeated here.

Original DIET 1.45f reports a clean reverse operation:

DIET -RA STARLITE.EXE
Success! (700708 to 110112 bytes)

The restored MZ header is 0F90h bytes long, contains 988 relocation entries and enters at CS:IP = 0000:160A, restored-file offset 259Ah. Its 110,112 bytes are the executable image, not the complete distribution object. DIET's restore drops the large appended resource area that the running demo reads from the original STARLITE.EXE. Therefore all offsets below are explicitly restored-file offsets; overlay conclusions are tied back to the untouched packed file and direct runtime.

The Runtime Route Is Complete

The exact packed release was run at 40,000 emulated cycles with a 486 CPU, 16 MiB RAM, VGA and a 1 MiB GUS at 240h, IRQ 5, DMA 3. Capture began with program launch and ended after the program restored text mode and returned to DOS. Representative capture-stream times are:

00:00  white-bar prelude
00:05  Nordic Vision title and credits
00:10  presents
00:20  STARLITE title / star field
00:50  colour field
01:30  text and oscillating ribbon
02:10  orange planar grid begins
02:40  overlay animation and commentary
03:10  The End
03:20  normal process exit

The title and star particles are drawn by the shipped executable, not reconstructed from stills.

The NFO warns that GUS interrupts can make the presentation jerk and says Sound Blaster support was cut for lack of time. The command parser confirms the surviving interface: -p selects the hexadecimal GUS base, -i IRQ, -d DMA and -n bypasses MIDAS. The direct run retained the GUS path only as an internal timing source.

Function Map Of The Restored Program

Restored-file offset Role proved by code
0FB4h wait for both edges of VGA vertical retrace
0FCFh opening Mode 0Dh setup and self-file image read
145Bh / 14F0h construct and upload a 768-byte DAC palette
1662h four-opcode overlay animation interpreter
1CAEh build 21-row glyph records from a source bitmap
1D1Dh / 1D8Bh draw normal and run-expanded glyph records
20F3h timed text state machine and palette interpolation
259Ah main entry and scene route
48CDh unrolled planar 64x32 texture mapper
4CA5h / 4CBBh bind two buffers and run the feedback/smoothing pass
5B6Fh Mode-X (x,y,colour) writer into a 640-pixel virtual stride
5BACh / 5BE2h planar virtual-surface setup and CRTC start-address flip
7E7Ah onward self-file grid-resource loader and 37x37 plot passes

These names are descriptive labels for this analysis, not symbols recovered from source.

Main Reprograms Mode 13h Into A Planar Surface

After the intro calls, main asks BIOS for Mode 13h, then immediately changes the VGA sequencer and CRTC. The four planes are enabled, chain-4 is disabled, double-word addressing is replaced, and the scan-line setting is adjusted.

; restored file 2718h
mov  ax,0013h
int  10h
mov  dx,03C4h
mov  ax,0604h             ; sequencer memory mode: unchain
out  dx,ax
mov  ax,0F02h             ; map mask: all four planes
out  dx,ax
mov  dx,03D4h
mov  ax,0014h             ; underline/location addressing control
out  dx,ax
mov  ax,0E317h            ; byte mode / CRTC mode control
out  dx,ax

It then clears exactly 64,000 bytes at A000h with 16,000 dword stores. The surface is planar despite the BIOS mode number; later routines select plane pairs and flip the visible page through CRTC registers 0Ch and 0Dh.

The Colour Field Is A 64x32 Wrapped Texture Mapper

The first large timed loop calls the routine at 48CDh. Its address formation is particularly revealing. A 16.16 accumulator is advanced, the high words are folded into BX, and BX & 3F1Fh wraps one coordinate to 64 entries and the other to 32. Each pair of lookups becomes one word store.

; inner sample pair, repeated eight times without a call
add   edx,esi             ; advance 16.16 texture position
shld  ebx,edx,10h
mov   bl,dh
and   bx,3F1Fh            ; y in 0..63, x in 0..31
mov   al,[bx]

add   edx,esi
shld  ebx,edx,10h
mov   bl,dh
and   bx,3F1Fh
mov   ah,[bx]
mov   es:[di],ax          ; two sampled colours
add   di,2

The inner counter is four, but the body is unrolled to eight word stores: 64 bytes per row. The outer counter is 100. One complete pass therefore writes 6,400 bytes with sequencer map mask 03h, then repeats with map mask 0Ch. Across four VGA planes this makes a 256x100 logical picture while keeping the hot loop free of multiplication and per-pixel port writes.

The row transition adds one step to the horizontal origin and subtracts the other from the vertical origin. At the end, the routine writes its page base to CRTC start-address registers:

mov  bx,[bp+4]            ; selected page base
mov  dx,03D4h
mov  al,0Ch
mov  ah,bh
out  dx,ax
inc  al                  ; 0Dh
mov  ah,bl
out  dx,ax

Main alternates a page byte every frame, changes the two mapping increments, and reverses one step at bounds 0014h and 0258h. The frame count reaches 0758h before the closing phase and exits at 07C6h. Those are code-driven phase changes, not guesses from the colour pattern.

The continuously warped field is the mapped 64x32 texture, sampled into two VGA plane pairs.

The Feedback Pass Is A Four-Neighbour Filter

4CA5h stores two far-buffer segments in code-segment variables. 4CBBh then scans 64 rows of 30 words and averages four neighbours at fixed offsets:

mov  ax,[si+003Eh]
add  ax,[si+0040h]
add  ax,[si+0042h]
add  ax,[si+0080h]
shr  ax,2
sub  al,3
jnc  non_negative
xor  ax,ax
non_negative:
stosb                    ; filtered display byte
mov  [si],ax             ; feed result back into the field

The subtraction makes the field decay; saturation at zero prevents unsigned wrap from turning a dark value bright. SI += 2 advances the word field, while DI += 00E2h skips from a 30-byte generated row to the next 256-byte display row. A short three-row tail updates the feedback state without a display write. This explains the persistent, flowing ribbon under the text: the renderer evolves a state buffer rather than redrawing a static curve.

Text Is Precompiled Into 21-Row Run Records

The loader at 1E36h allocates a 14,080-byte source bitmap and a 10,120-byte glyph store. It normalizes two reserved pixel values (80h becomes FFh, 85h becomes 80h), then calls 1CAEh repeatedly to build glyph records.

Each record is 253 bytes. Byte zero holds the glyph code. The following 21 rows occupy 12 bytes each. The ordinary draw routine at 1D1Dh copies those rows to A000h at a 320-byte stride. The expanded routine at 1D8Bh treats the first byte of each row as a run count and writes its following bytes directly, remapping reserved colour 80h to 81h.

imul ax,[bp+4],00FDh      ; select 253-byte glyph record
...
imul ax,row,000Ch         ; 12 bytes per stored row
...
imul ax,y,0140h           ; 320 bytes per VGA scan line

The state machine at 20F3h walks four text pages, seven lines per page. A character mapping routine converts A..Z to 1..26 and gives punctuation explicit glyph numbers. Spaces advance the cursor by three pixels. Non-space characters call the expanded glyph writer and arm a two-frame hold.

Palette entry 80h is interpolated during a 30-tick transition. For each RGB component the code computes:

component = start + (31 - remaining) * (target - start) / 31

and writes the result through ports 3C8h/3C9h. Thus the words and ribbon are separate mechanisms sharing one timed scene: glyph runs modify the framebuffer while DAC entry 128 performs the colour transition.

The ribbon comes from the feedback buffer; the captions come from 253-byte, 21-row glyph records.

The Orange Part Uses A 640-Pixel Virtual Planar Stride

The later subsystem installs another unchained mode. Its point writer at 5B6Fh converts (x,y) into a byte address for a 640-pixel virtual planar surface:

mov  di,[bp+6]            ; y
shl  di,2
add  di,[bp+6]            ; 5*y
shl  di,5                 ; 160*y
mov  cx,[bp+8]            ; x
shr  cx,2
add  di,cx                ; byte address = 160*y + x/4

mov  cx,[bp+8]
and  cl,3
mov  ah,1
shl  ah,cl                ; map mask = 1 << (x & 3)
mov  al,2
mov  dx,03C4h
out  dx,ax
mov  bl,[bp+4]
mov  es:[di],bl

At four pixels per byte, 160*y is a 640-pixel virtual scanline. The visible viewport is narrower; 5BE2h changes its CRTC start address, waits for both retrace edges, and returns only after the new view is stable.

The large routine beginning at 7E7Ah repeatedly opens STARLITE.EXE, seeks to stored long offsets and reads four 1,369-byte (0559h) blocks plus one 4,292-byte (10C4h) block into stack buffers. Its core visits a 37x37 grid:

imul ax,column,0025h      ; 37-byte source row
add  ax,row
mov  al,[bp+ax-05E2h]    ; grid colour
push x
push y
push ax
call 5B6Fh               ; planar point write

Successive passes change the X/Y equations and clear separator rows. The grid is therefore authored sample data transformed through code, not a sequence of full-screen pictures. The close and wide orange views are different stages of the same planar plot route.

One stage of the 37x37 grid pass, drawn through the per-plane point writer.

A later camera/spacing phase of the same grid data.

The End Animation Is A Tiny Command Language

Main allocates an 128-byte header area and a 400-byte pointer table, opens its own executable, reads the header, then allocates one 20-byte descriptor and one variable-sized data block for each animation object. It waits 40 retraces, loads a 768-byte palette and calls 1BBDh to play the structure.

1BBDh first dispatches a frame record through 1662h, then waits the delay stored in the animation header before moving to the next frame pointer. The interpreter reads six-byte commands and implements four visible opcodes:

0Bh  palette packet: expand indexed RGB groups into the 768-byte palette
0Ch  scan-line packet: copy or repeat signed-length pixel runs
0Dh  clear: zero all 64,000 Mode 13h pixels
0Fh  full-frame packet: decode 200 rows of literal/repeated runs

The 0Ch path treats a positive length as a literal copy and a negative length as a repeated colour. It adds the signed X delta before each run and advances by 320 bytes at each row. The 0Fh path uses the same signed-length idea across exactly 200 scan lines. Opcode 0Dh is the familiar fast clear:

push 0A000h
pop  es
xor  di,di
mov  cx,3E80h
xor  eax,eax
rep  stosd                 ; 16,000 dwords = 64,000 bytes

This is closer to a compact FLI-like delta stream than embedded video: the overlay stores drawing commands, and the executable reconstructs every frame into VGA memory. The 360-wide presentation then combines that decoded panel with program-rendered text.

The red panel is decoded from self-file command packets while the surrounding text is rendered separately.

Timing, Keyboard And Exit Are Explicit

The program hooks interrupt vector 09h, saves the previous far pointer from the IVT, reads scan code 81h for Escape release, acknowledges the keyboard controller and PIC, then restores the old vector during shutdown. Its retrace waiter reads 3DAh until bit 3 first clears and then sets. These paths explain both early abort and frame pacing without attributing either to the music.

After the animation, main fades through a callback, restores BIOS text mode 3, prints its final messages, removes the interrupt hook and returns normally. The direct run reached that path at 03:20.266; no key was injected.

What The Three-Day Build Actually Contains

The compactness is architectural rather than superficial:

That is why Starlite merits analysis despite never reaching the Assembly screen. The production is not a missing compo video with a few screenshots attached. It is a recoverable real-mode renderer whose executable still documents how its scenes work.