Analysis model: gpt-5.5 xhigh

Expression by Abstract Concepts - Technical Dissection

Expression is a 1995 MS-DOS VGA/GUS demo by Abstract Concepts, released at X 1995. It placed second in the X 1995 PC Demo competition, behind Acme's Big Deal and ahead of Ground Zero's Uitgeroeid.

Release year: 1995

Released: 22 April 1995 is the date in the bundled Abstract Concepts texts and the Demozoo release date.

Sources

Old personal contact and distribution listings from the bundled text files are deliberately omitted.

Public Visual Reference

Two private DOSBox-X 2026.01.02 runtime attempts were made with GUS enabled and dummy host audio, first directly and then with LOADFIX -64. Both ZMBV captures remained at the DOSBox-X shell instead of reaching usable demo frames, so no local runtime effect footage is published or claimed here.

The inline visual material below is therefore the public Demozoo screenshot set. The GIF is a compact screenshot sequence for page/card readability, not a runtime-timed capture. It follows the earlier inline-card style without requiring a separate video link.

No new H.264/MP4 media is published for this pass.

Expression public Demozoo screenshot sequence

Expression public Demozoo screenshot: Abstract Concepts logo

Expression public Demozoo screenshot: purple rendered object scene

Expression public Demozoo screenshot: green tunnel or vortex scene

Expression public Demozoo screenshot: red motion-blur object scene

Expression public Demozoo screenshot: vertical Expression title smear

Expression public Demozoo screenshot: programmed starfield caption

Expression public Demozoo screenshot: orange non-torus object scene

Expression public Demozoo screenshot: chroma/additive sphere scene

Expression public Demozoo screenshot: landscape scene

Visual-to-code concordance for these frames:

Public frame Relevant evidence later in this page
Abstract Concepts logo and title smear palette/page work, sprite blitters, and active-band VGA presentation
Purple object, orange non-torus, and red motion-blur scenes EXPRESS.TXT's object-show event list plus the transform, face-bucket, solid-span, and additive/chroma-span loops
Green vortex/tunnel and gold sphere additive/chroma triangle span path, texture segment use through FS, and object/resource segment use through GS
Starfield caption the bundled event list's "programmable starfield" and the 70 Hz scheduler/timer discussion
Landscape frame the separate terrain/landscape inner loop at raw 0xef4e..0xf143, not the generic 3D object pipeline

Competition Identity

The X 1995 result file lists the PC Demo top three as:

1. Big Deal                     Acme               748
2. Expression                   Abstract Concepts  722
3. Uitgeroeid                   Ground Zero        610

The bundled text credits are:

Code:         Simm
Renderings:   Spoetnik, Simm
Objects:      Spoetnik, Simm
Design ideas: Spoetnik, Simm
Code ideas:   pyREX, Simm
Music:        Simm

The same text describes the expected machine as a 386 or better PC with VGA, a 512 KB Gravis UltraSound, DOS 3.20 or newer, and about 500 KB of free base memory.

Archive Identity

The two Scene.org archives are byte-identical:

2bffe2fbc72806bb5c44226ce9868e0c34e50a32494135113e9215b0cc9b1c20  ac_expr.zip
2bffe2fbc72806bb5c44226ce9868e0c34e50a32494135113e9215b0cc9b1c20  express.zip
b6bef84fb295395eebb969e37401fe2bd50fb1d53e7ee0c01fe2fc4d0232f12c  x95res.txt

The archive contents are:

EXPRESS.TXT       7731 bytes
EXPRESS.S3M     372490 bytes
ACAPPL04.TXT      5220 bytes
FILE_ID.DIZ        321 bytes
ACINFO04.TXT      6192 bytes
ACGRTZ04.TXT      8298 bytes
EXPRESS.EXE      19633 bytes
EXPRESS.ACR     794190 bytes
ACDIST04.TXT      3114 bytes

File hashes:

f39b95024a787256dfd705c00697994627baba5f0a822da3f55a8f86f6880849  packed EXPRESS.EXE
020a14d156af14867f75ac3fc4c28c25915b6a81714f6d18a8ed71f1ba9e510b  unpacked EXPRESS.EXE
b0c2ddf73b963b061b16b3879f6e7764e33366536a74ccb175d5c3c921dca8c6  EXPRESS.ACR
9837dda914b18194b59683d8be4a56c47ef46a0e484dc2b11bcf00c06b77a954  EXPRESS.S3M
c1ed9b23579abd0b4405141781b4fc795c58b2f3dd301891280125ef1c06329b  EXPRESS.TXT

EXPRESS.EXE is a PKLITE-packed DOS MZ program. After UNP expansion the file grows from 19,633 bytes to 77,616 bytes. The unpacked MZ image has a 512-byte header and 77,104 bytes of load image.

The important unpacked header fields are:

load bytes:       77104
relocations:      5
entry CS:IP:      0e00:159f
stack SS:SP:      0000:1000

The program immediately sets DS=0100h. Most code executes from CS=0e00h, so a near code offset IP maps to raw load-image offset 0xe000 + IP. Most data references use DS=0100h, so a data offset maps to raw load-image offset 0x1000 + data_offset.

This mapping matters because some 16-bit disassembly listings show wrapped near-call targets. For example, a call printed as 0x21fc from code near raw 0xf5e3 is actually raw 0x121fc, the resource-file read helper.

Overall Shape

Expression is not a protected-mode DOS extender demo. It is a real-mode 386 program that relies on:

The bundled technical note says the core was written in pure 80386 real-mode assembler using TASM and TLink, with self-modifying code and unusual stack register tricks in the hot parts. The binary supports that claim: it is a hand-written real-mode renderer with direct VGA, PIT, PIC, keyboard, DOS, and GUS I/O paths.

Entry And Startup

Execution starts at raw 0xf59f, corresponding to CS:IP 0e00:159f:

f59f  mov ax,0100h
f5a2  mov ds,ax
f5a4  mov dx,2d00h
f5a7  mov ah,09h
f5a9  int 21h              ; print intro text
f5ab  call 12b7bh          ; heap and saved vectors
f5ae  call 125beh          ; choose GUS base
f5b1  call 12c30h          ; install timer and keyboard IRQ handlers
f5b7  call 11f10h          ; mode 13h plus work page allocation

After setup the entry routine becomes a long sequence of resource loads and scene calls. A typical resource load looks like this:

push es
mov  cx,[35f7h]            ; resource size
and  ecx,0000ffffh
call 12bd2h                ; allocate paragraph-aligned memory
mov  [35f5h],ax            ; store segment
mov  es,ax
mov  cx,[35f7h]
mov  edx,[35f9h]           ; resource offset in EXPRESS.ACR
mov  bx,35c9h              ; string "EXPRESS.ACR"
call 121fch                ; open, seek, read, close
pop  es

That pattern repeats for palettes, images, object data, textures, and tables. There is no visible directory in EXPRESS.ACR; the executable already contains the resource sizes and 32-bit offsets it needs.

Resource Loader

The DOS file helpers live at raw 0x121b2..0x12217:

121b2  mov ax,3d02h        ; open existing file read/write
121b5  int 21h
121b7  mov cs:[41b0h],ax   ; save handle
121bb  ret

121c9  mov ax,3e00h        ; close saved handle
121cc  mov bx,cs:[41b0h]
121d1  int 21h
121d3  ret

121d4  mov ax,3f00h        ; read saved handle
121d7  mov bx,cs:[41b0h]
121dc  int 21h
121de  ret

121ea  mov ax,4200h        ; absolute seek
121ed  mov bx,cs:[41b0h]
121f2  mov edx,ecx
121f5  shr ecx,16
121f9  int 21h             ; CX:DX = 32-bit file offset
121fb  ret

The combined .ACR read helper at 0x121fc is the important one:

121fc  push ds
121fd  push es
121fe  push cx
121ff  push edx
12201  mov  dx,bx          ; filename pointer
12203  call 121b2h         ; open
12206  pop  ecx            ; restore wanted file offset
12208  call 121eah         ; seek
1220b  pop  cx             ; restore byte count
1220c  pop  ds             ; DS = destination segment, previously ES
1220d  mov  dx,0
12210  call 121d4h         ; read to DS:0000
12213  pop  ds
12214  call 121c9h         ; close
12217  ret

The loader is deliberately small: every asset is read from EXPRESS.ACR by absolute file offset into segment zero of a freshly allocated block.

Heap Allocator

The heap starts at raw 0x12b7b. It first saves old interrupt vectors, then computes how much low DOS memory is free below VGA memory:

12b94  mov eax,0000a000h
12b9a  sub ax,12d3h
12b9d  shl eax,4
12ba1  cmp eax,00040000h   ; require at least 256 KB
12bb1  mov [cf90h],eax     ; total bytes
12bb5  mov [cf94h],eax     ; remaining bytes
12bb9  mov word [cf98h],12d3h
12bbf  mov word [cf9ah],12d3h

Allocation is raw 0x12bd2:

12bd2  and ecx,000ffff0h   ; paragraph align down
12bd9  add ecx,10h         ; then add one paragraph
12bdd  cmp ecx,[cf94h]
12be2  jl  enough_memory
       ; error path prints an internal message and exits

12bed  sub [cf94h],ecx     ; consume byte count
12bf2  mov ax,[cf9ah]      ; return current segment
12bf5  shr ecx,4
12bf9  add [cf9ah],cx      ; bump segment pointer
12bfd  ret

Two helpers snapshot and restore the heap pointer:

12c0d  mov ax,[cf9ah]
12c10  mov [cf9ch],ax
12c13  mov eax,[cf94h]
12c17  mov [cf9eh],eax
12c1b  ret

12c1c  mov ax,[cf9ch]
       mov [cf9ah],ax
       mov eax,[cf9eh]
       mov [cf94h],eax
       ret

The scene code uses this like a simple arena. A scene can load several temporary objects or images, run, then restore the arena pointer before the next section.

GUS Base Selection And S3M Player

The executable asks the user to select a Gravis UltraSound base from 210h, 220h, 230h, 240h, 250h, or 260h. The input parser at raw 0x125be accepts keys 1 through 6:

125c5  int 16h
125c9  cmp al,31h
125cb  jb  bad_key
125cd  cmp al,36h
125cf  ja  bad_key
125d1  sub al,30h
125d5  shl ax,4
125d8  add ax,0200h

The formula turns the chosen key into a base:

key 1: (1 << 4) + 0200h = 0210h
key 2: (2 << 4) + 0200h = 0220h
...
key 6: (6 << 4) + 0200h = 0260h

It then stores the GUS port set:

[b6f2] = base + 006h
[b6f4] = base + 102h
[b6f6] = base + 103h
[b6f8] = base + 104h
[b6fa] = base + 105h
[b6fc] = base + 107h

The music data is the external EXPRESS.S3M, whose internal title is:

Expression  -  Simm / AC

The row player starts at raw 0x12622. It is called from the timer path by way of a callback pointer. The first part divides timer ticks down to module rows:

12622  push es
12623  dec word [cd17h]
12627  jne no_new_row
1262b  mov ax,[cd19h]      ; speed/tick reload
1262e  mov [cd17h],ax

The current order and row choose an S3M pattern segment:

12631  mov bl,[cd16h]      ; order index
12637  mov bl,[b7c1h+bx]   ; pattern number
1263d  add bx,bx
1263f  mov es,[ccd1h+bx]   ; pattern segment
12643  mov al,[cd15h]      ; row number
1264a  shl di,2
1264d  add di,ax
1264f  shl di,3            ; row * 40 bytes for eight channels

Eight channel records begin at ds:cd1b, each 0x21 bytes long. For each row the player reads note/instrument/volume/effect/effect-parameter style bytes, updates the channel record, converts notes through a frequency table at 0xce23, shifts by octave, and dispatches effect commands through a jump table.

This is a compact custom S3M/GUS player rather than a linked public player. It feeds the visual scheduler too: many scene waits compare against [cd15h], the current music row/time counter.

The busy wait helper at raw 0x1261b is blunt:

1261b  cmp [cd15h],ax
1261f  jb  1261bh
12621  ret

Scene code loads AX with a target music value and spins until the player has reached it.

Timer, Keyboard, And Scene Scheduler

Raw 0x12c30 installs the handlers:

12c31  mov ax,3508h
12c34  int 21h             ; save old INT 08h
...
12c41  mov ax,3509h
12c44  int 21h             ; save old INT 09h
...
12c54  mov dx,4ca1h
12c57  int 21h             ; set INT 08h to CS:4ca1
...
12c60  mov dx,4d0dh
12c63  int 21h             ; set INT 09h to CS:4d0d

Then it sets PIT channel 0:

12c66  mov al,36h
12c68  out 43h,al
12c6a  mov al,95h
12c6c  out 40h,al
12c6e  mov al,42h
12c70  out 40h,al

The divisor is 0x4295, giving roughly 70 Hz from the PC PIT. That is a good fit for VGA-era demos: fast enough for smooth visual callbacks, still slower than a vertical blank on 70 Hz mode 13h hardware.

The INT 08h handler body is raw 0x12ca1..0x12d0b. It saves all 386 general registers plus segment registers, switches to DS=0100h, and then services three callback slots:

12cba  dec word [cfefh]
12cbe  jne skip_a
12cc0  mov word [cfefh],2
12cc6  call word [cfe0h]   ; audio/player-ish callback

12cca  dec word [cff1h]
12cce  jne skip_b
12cd0  mov word [cff1h],1
12cd6  call word [cfe2h]   ; current scene callback

12cda  dec word [cff3h]
12cde  jne skip_c
12ce0  mov word [cff3h],1
12ce6  call word [cfe4h]   ; async palette fade callback

It then marks a frame tick and acknowledges the PIC:

12cea  mov byte [cfeeh],1
12cef  inc word [a7e6h]
12cf3  mov al,20h
12cf5  out 20h,al
12d0b  iret

The scene slot [cfe2h] is the most important scheduler value. The main code patches it to scene update routines such as:

007c, 0104, 018d, 0394, 040c, 0499, 0520, 0605, 0706,
0795, 07c4, 08d4, 0c8b, 0d41, 1184, 128f, 132b, 13bc

0x4d0c is a one-byte ret callback used to turn a slot idle.

The keyboard handler at raw 0x12d0d reads port 60h, sends EOI, and returns. It is a minimal "eat the keyboard IRQ" routine, not a command UI.

VGA Page And Active Band

Raw 0x11f10 enters mode 13h and allocates a full 64 KB work page:

11f10  mov ax,0013h
11f13  int 10h
11f15  mov ecx,00010000h
11f1b  call 12bd2h
11f1e  mov [a7e4h],ax
11f21  mov es,ax
11f23  mov di,0
11f26  mov cx,4000h
11f29  mov eax,0
11f2f  rep stosd

Most copy/filter helpers operate on the region starting at offset 0x1900, with 0x6400 words or 0xc800 bytes. That is 51,200 bytes, or 320x160 pixels. The top and bottom bands are left to image sections, fades, or blank space.

Clear active band, raw 0x12077:

12077  mov di,1900h
1207a  mov ah,al
1207c  mov cx,6400h
1207f  rep stosw

Subtract-and-clamp decay, raw 0x12082:

for 0xc800 pixels starting at 0x1900:
    new = old - AL
    if new < AH:
        new = AH
    store new

The exact loop:

12088  mov dh,es:[di]
1208b  sub dh,al
1208d  cmp dh,ah
1208f  jge keep
12091  mov dh,ah
12093  mov es:[di],dh
12096  inc di
12097  dec cx
12098  jne 12088h

Vertical smoothing, raw 0x1209b, works on two pixels at a time:

120a1  mov ax,es:[di]
120a4  add ax,ax
120a6  add ax,es:[di-0140h]
120ab  add ax,es:[di+0140h]
120b0  and ax,0fcfch
120b3  shr ax,2
120b6  mov es:[di],ax

Horizontal smoothing, raw 0x120c0, is the same idea with neighbors at di-1 and di+1:

pixel = (2 * current + left + right) >> 2

The and 0xfcfc prevents low-bit carry leakage between adjacent packed 8-bit pixels before the shift.

The full active-band copy to A000h is raw 0x120e3:

120e5  mov ds,[a7e4h]
120e9  mov ax,0a000h
120ec  mov es,ax
120ee  mov di,1900h
120f1  mov si,1900h
120f4  mov cx,6400h
120f7  rep movsw

The blended copy at raw 0x120fc mixes the work page with the visible screen:

screen = (work + 3 * screen) >> 2

The loop computes that with word pairs:

12110  mov bx,es:[di]      ; current screen pair
12113  mov ax,[si]         ; work pair
12115  mov dx,bx
12117  add bx,bx
12119  add bx,dx           ; bx = 3 * screen
1211b  add ax,bx
1211d  and ax,0fcfch
12120  shr ax,2
12123  mov es:[di],ax

This is the main "melt into the previous frame" path used by several sections.

Palette Fades

Palette upload is raw 0x11f4e:

11f4e  mov al,0
11f50  mov dx,03c8h
11f53  out dx,al
11f54  mov cx,0100h
11f57  inc dx              ; 03c9h
11f58  mov al,[si]
11f5a  out dx,al
11f5b  mov al,[si+1]
11f5e  out dx,al
11f5f  mov al,[si+2]
11f62  out dx,al
11f63  add si,3
11f66  dec cx
11f67  jne 11f58h

The blocking fade at raw 0x11f6a is a 64-step 8.8 fixed-point palette lerp:

copy current/target palette to b3e8
for each of 768 DAC bytes:
    accumulator[i] = old[i] << 8
    delta[i] = ((target[i] - old[i]) << 8) / 64
repeat 64 times:
    accumulator[i] += delta[i]
    temp[i] = accumulator[i] >> 8
    upload temp palette
    wait one timer tick

The binary stores the accumulator at 0xa7e8, the delta table at 0xade8, and the temporary palette at 0xb3e8.

The async fade at raw 0x11fde builds the same tables but does not spin. It sets the third timer callback slot:

12028  mov word [cfe4h],403ah
1202e  mov byte [b6eah],1
12033  mov word [b6e8h],0

Timer callback raw 0x1203a advances one fade step, uploads the palette, and unhooks itself by restoring [cfe4h] = 4d0ch after 64 steps.

Sprite Blitters

The rectangular copy helper at raw 0x12144 draws from GS:0000 into the current ES page. Destination X and Y are stored at [a7e0h] and [a7e2h].

The row offset calculation is classic 320-wide VGA math:

di = y
ax = di
di <<= 8                  ; y * 256
ax <<= 6                  ; y * 64
di += ax                  ; y * 320
di += x

The row copy uses word moves and handles odd widths:

bp = 320 - width
for each row:
    cx = width >> 1
    if width is odd:
        movsb
    rep movsw
    di += bp

The masked variant at raw 0x12172 has a one-byte inner loop:

12192  mov al,[si]
12194  cmp al,0
12196  je  skip
12198  mov es:[di],al
1219b  inc si
1219c  inc di
1219d  dec cx
1219e  jne 12192h

Zero pixels are transparent. That path is used for overlay masks and some ending-image work.

3D Object Data Model

The object renderer uses GS as the current object segment. The code treats the start of the object block as a header containing counts and pointers:

GS:[00h] vertex count for primary vertex set
GS:[02h] face count or secondary vertex count, depending on helper
GS:[04h] source vertex pointer for byte vertices
GS:[06h] transformed vertex pointer
GS:[08h] projected vertex pointer
GS:[12h], GS:[14h], GS:[16h] triangle index lists

The batch helpers are small wrappers:

fe9e  cx = gs:[00h]
      si = gs:[04h]
      di = gs:[06h]
      repeat cx:
          call 11e39h      ; transform signed-byte vertex to 16-bit xyz
          si += 3
          di += 6

fe80  cx = gs:[00h]
      si = gs:[06h]
      di = gs:[08h]
      repeat cx:
          call 11de0h      ; project transformed xyz to screen xy
          si += 6
          di += 4

That gives a normal fixed-point pipeline:

signed byte object vertex -> rotated 16-bit x/y/z -> projected 2D x/y

Transform And Projection

The transform routine at raw 0x11e39 reads sine/cosine values from a table near 0xa3c6, indexed by three angle variables:

[a7c6], [a7c8], [a7ca]

The inner math is 16-bit signed multiply with the high word kept as the scaled result:

mov ah,gs:[si]             ; signed byte x in high half of AX
mov al,0
imul bx                   ; multiply by sin/cos
mov [a7cc],dx             ; use high word

It repeats this for the three axes and stores transformed coordinates:

gs:[di+0] = transformed x
gs:[di+2] = transformed y
gs:[di+4] = transformed z

Projection at raw 0x11de0 is a perspective divide with a non-square pixel compensation:

z = (gs:[si+4] >> 5) + [a1c4] * 2
if z == 0:
    projected xy = 0

screen_y = (((gs:[si+2] + [a1c2]) / z) >> 4) + 100
screen_x = (((gs:[si+0] + [a1c0]) / z) >> 4)
screen_x = screen_x + (screen_x >> 3) + 160

The x + x/8 term widens the projected X coordinate by 12.5 percent. That is a cheap aspect correction for mode 13h pixels and the intended object shapes.

Face Culling And Depth Buckets

Face orientation is tested at raw 0xfef8. It loads the three projected vertices named by the triangle index lists and computes a 2D signed area:

(x2 - x1) * (y3 - y1) compared with (x3 - x1) * (y2 - y1)

The collection pass at raw 0xff9e walks faces, calls the signed-area test, keeps visible faces, and records a depth value for each kept face.

The bucket pass at raw 0xff58 first clears 128 bucket heads:

ff58  mov cx,0080h
ff5b  mov eax,ffffffffh
ff64  mov di,3f52h
ff67  rep stosd

Then each visible face is inserted into a bucket chosen from the high byte of its depth:

ff77  mov bx,[4152h+si]    ; stored face depth
ff7b  mov bl,bh
ff7d  xor bh,bh
ff7f  add bx,80h
ff83  and bx,00ffh
ff87  neg bl
ff89  add bx,bx
ff8b  mov ax,[3f52h+bx]    ; old bucket head
ff8f  mov [6152h+si],ax    ; next pointer
ff93  mov [3f52h+bx],si    ; new bucket head

This is a compact painter's-order sorter: faces are grouped into 128 coarse depth buckets, linked lists store faces within each bucket, and later draw passes walk the buckets back to front.

Solid Triangle Span Loop

The solid span filler is raw 0x1096c. It starts by finding the minimum and maximum Y among three projected vertices stored at a166h, a168h, and a16ah. If height is zero or negative, it exits.

The row pointer is computed with the same y * 320 trick:

109ca  mov si,cx
109cc  shl si,8
109cf  shl cx,6
109d2  add si,cx
109d4  mov [a18fh],si

It clips Y to 20..179 and X to 0..319. Edges are kept in 6-bit fixed point, so sar value,6 converts edge X to pixel X. The actual write core is:

10a13  mov cx,[a1adh]      ; right edge fixed point
10a17  sar cx,6
...
10a2b  sub cx,ax           ; span length
10a2f  mov ax,[a18ah]      ; AL/AH contain duplicated flat color
10a32  shr cx,1
10a34  jae even
10a36  stosb
10a37  rep stosw

The edge walkers update by 0x8000 and row offset by 0x0140 each scanline:

10a39  add word [a19dh],8000h
10a3f  add word [a1adh],8000h
10a45  add word [a18fh],0140h

Those 0x8000 adds are patched or paired with self-modified edge increments prepared by the edge setup helpers. This is one of the places where the bundled claim about self-modifying inner loops makes sense.

Additive/Chroma Triangle Span Loop

Raw 0x10b02 is structurally the same triangle walker, but the span write is not a flat overwrite. It uses a small 6-bit additive color operation:

10bc7  mov ax,[a18ah]
10bca  shr ax,4
10bcd  and ax,0303h

For an odd leading pixel:

10bd4  mov dl,es:[di]
10bd7  add dl,al
10bd9  and dl,3fh
10bdc  mov es:[di],dl
10bdf  inc di

Then two pixels at a time:

10be5  mov dx,es:[di]
10be8  add dx,ax
10bea  and dx,3f3fh
10bee  mov es:[di],dx
10bf1  add di,2
10bf4  dec cx
10bf5  jne 10be5h

That is the chroma/additive object look in the demo's "bumpmapped multilight" and "tools" sections: palette indices are kept in a 0..63 ring, and drawing adds a small value rather than replacing the pixel.

Terrain And Landscape Inner Loop

The landscape section around raw 0xef07..0xf143 is one of the most distinctive loops. It sets callback [cfe2h] = 0x0d41, uses one resource as a height/shade field through FS, another through GS, and draws vertical screen columns.

Before the loop it initializes two 320-word arrays:

ef31  mov di,30c9h
ef34  mov cx,0140h
ef37  mov ax,6380h
ef3a  rep stosw            ; previous column heights

ef3c  mov di,3349h
ef3f  mov cx,0140h
ef42  xor ax,ax
ef45  rep stosw            ; previous column shade values

The outer loop starts at raw 0xef4e and runs 0x40 depth strips. For each strip it:

  1. Builds a texture/height lookup position from per-strip tables.
  2. Reads a height value through FS.
  3. Scales it with a per-strip multiplier.
  4. Converts that to a projected Y height.
  5. Reads a shade through GS.
  6. Interpolates height and shade across screen columns.

The hot vertical span write starts at raw 0xf073:

f073  mov di,[30b6h]
f076  mov ax,di
f078  shl di,8
f07b  shl ax,6
f07e  add di,ax            ; y * 320
f080  mov ax,bx
f082  shr ax,1
f084  add di,ax            ; + x

It computes how many pixels need to be drawn from the old height to the new height:

f086  mov ax,[30aeh]
f089  sar ax,7             ; new y
f08c  mov dx,[30b6h]
f090  sar dx,7             ; old y
f093  sub ax,dx
f095  mov [30bch],ax       ; vertical length

Shade is interpolated down the vertical span:

f098  mov ax,[30b0h]
f09b  sub ax,[3349h+bx]
f09f  cwd
f0a0  idiv word [30bch]
f0a4  mov bp,ax            ; shade delta per pixel
f0a6  mov ax,[3349h+bx]    ; old shade

The pixel loop is a stride-320 vertical writer:

f0aa  mov cx,[30bch]
f0b3  mov es:[di],ah
f0b6  add ax,bp
f0b8  add di,0140h
f0bc  dec cx
f0bd  jne f0b3h

After all depth strips, raw 0xf108..0xf143 fills the rest of each column down to screen Y 0xb4 with the last shade:

f112  mov cx,00b4h
f115  mov di,[30c9h+si]
f119  sar di,7
f11c  sub cx,di
...
f133  mov es:[di],ah
f136  add di,0140h
f13a  dec cx
f13b  jne f133h

That is a heightfield renderer drawn as vertical strips. It is not a polygon terrain mesh in the normal 3D pipeline; it is a separate screen-space column renderer, well suited to a rolling landscape with a shaded object composited over it.

Scene Flow

The bundled text names the visible effects:

flatshaded A and C swooshing past
gouraud shaded vases
gouraud shaded texture mapped non-torusses
flatshaded B, U, M and P
bumpmapped multilight chroma mapped sphere
landscape with sphere and shaded shadow
phong shaded motion-blurred mask
multilight chroma mapped tools
programmable starfield

The code structure matches that list. The scene names below are labels inferred from the bundled text plus loaded segments, callbacks, and draw helpers.

Opening A/C Swoosh

The initial sections install callbacks 0x007c, 0x0104, and 0x018d, load object segments around 35ddh, 35e5h, and 35edh, and use camera variables around 2ddch..2de6h.

The callback at raw 0xe000 is a shared camera copier:

camera/rotation fields at 2ddc..2de6
    -> render globals a7c6, a7c8, a7ca, a1c0, a1c2, a1c4

The main thread waits against music-row values with the 0x1261b helper, so the letters cross the screen on module timing rather than on raw frame count.

Image And Mask Sections

Raw 0xe288..0xe393 loads and copies resource images, uses the rectangular blitter at 0x12144, and waits until the music counter reaches 0x0500.

Raw 0xe398..0xe40b installs callback 0x0394, uses a render helper near 0xfd87, and draws masked overlays through 0x12172. This is one of the sections where transparent zero pixels matter.

Object Sections

Raw 0xe42b..0xe604 runs callbacks 0x040c, 0x0499, and 0x0520. These sections use FS and GS resource segments, the batch transform/project helpers (0xfe9e, 0xfeda, 0xfe80), cull and bucket helpers (0xff9e, 0xff58), and the triangle span loops (0x1096c, 0x10b02).

That cluster corresponds to the shaded object showpieces: vases, non-torusses, and the B/U/M/P lettering.

Sphere And Shadow

Raw 0xe619..0xe794 installs callbacks 0x0605 and 0x0706. These sections use a texture segment through FS, an object/resource segment through GS, and the additive/chroma loop when building the lit sphere look.

Raw 0xe7d6..0xe8cd uses callback 0x0795, then switches to callback 0x07c4 and the subtract/clamp helper at 0x12082. This gives a fade/decay between the sphere, shadow, and surrounding frame.

Landscape

Raw 0xe8d4..0xec8a installs callback 0x08d4. It updates four groups of camera variables (2de8h..2e16h) before rendering object/resource segments around 365dh, 3665h, 366dh, and 3675h.

Raw 0xef07..0xf17d is the stronger landscape pass: callback 0x0d41, the heightfield column renderer at 0xef4e..0xf143, and then additional object rendering over the result.

Ending Objects And Tools

Raw 0xf1b9..0xf227 installs callback 0x1184 and renders an object segment around 36fdh with texture/resource data around 35d5h.

Raw 0xf2e0..0xf32a installs callback 0x128f, rendering object data around 36bdh and resource data around 3695h.

Raw 0xf34f..0xf3bb installs callback 0x132b, using object segment 36c5h and a resource segment around 368dh.

Raw 0xf3c0..0xf401 installs callback 0x13bc and finishes with object/image work plus the masked blitter. The end strings are in the executable, including the internal title line and a thank-you message shown after the visual part.

Why It Feels Fancy

The demo earns its look less through one giant algorithm and more through many small real-mode tricks composed tightly:

The result is a demo that looks more elaborate than its 77 KB unpacked code size suggests. Most of the visible richness is carried by hand-tuned inner loops, palette design, and careful scheduling against the S3M player.

Limits Of This Pass

This is a binary-level reconstruction, not original source. Scene names are matched from the bundled effect list and from code structure. The main loops, file layout, timing model, resource loading, and renderer paths are directly visible in the unpacked executable, but many resource-specific structures in EXPRESS.ACR would need a separate parser to name every object and texture field with full certainty.