Analysis model: gpt-5.5 xhigh

Icefever by Xpose - Technical Dissection

Scope

Icefever is the third-place PC demo from The Gathering 1994. The official result file spells the group as Xpose; the small archive description spells it Expose. The executable and recovered text use xPose/XPOSE, so this writeup uses Xpose for the production title and notes the spelling mismatch as archive metadata noise.

Release year: 1994. The archive file timestamps are April 1, 1994, and the sidecar release text identifies the demo as a The Gathering 1994 release.

Public references:

The sidecar release text includes old contact/distribution details. Those are intentionally not reproduced here.

Offset notation:

Examined Files

Downloaded archive identity:

5af1a4e47860427f9123ad0444e713184538c178bd381055994a1a3ae5fb1b9f  icefever.zip
db961a4f01232b7e93df9f9246cca9a606b52fe6ebb8be9cb57f1205af619183  icefever.diz
778c42886e96d0bcf54e2d13deff4edcda8190d8c1b528e99a1e488d17354992  tg94-results.txt

Top-level ZIP contents:

FILE_ID.DIZ       75 bytes  db961a4f01232b7e93df9f9246cca9a606b52fe6ebb8be9cb57f1205af619183
ICEFEVER.(X)   3,119 bytes  414d158357db9b0137d211877dcc0d9f315755a3c259963107f2f1bd4b2dc6bb
ICEFEVER.EXE 690,941 bytes  b4eddc747348250d97715a96688ab222409bf81c8fd742dc039aa7230f94f7d9

The large ICEFEVER.EXE is a PKLITE-packed DOS executable with an appended resource bundle. Its MZ header describes only the first 39,166 bytes:

file size:        690,941 bytes
MZ image size:     39,166 bytes
MZ header:            112 bytes
relocations:            0
entry:            CS:IP fff0:0100  (PKLITE wraparound stub entry)
stack:            SS:SP 0990:0400

That first MZ image is byte-identical to the carved icel10.exe payload listed below. The remaining bytes are data files and a footer table.

Outer Resource Footer

The archive footer is simple and worth calling out because it makes the demo much easier to inspect without racing the runtime cleanup path.

The last four bytes of ICEFEVER.EXE are a little-endian pointer to the file table:

ICEFEVER.EXE+0xa8af8 = b7 89 0a 00  -> table at 0x0a89b7

At 0x0a89b7:

uint16 count = 16
repeat count times:
    char name[12]      DOS 8.3 filename, space padded
    uint32 offset      file offset inside ICEFEVER.EXE
    uint32 length      payload byte length

Carving those records gives:

icel10.exe    off=0x00000 size=0x098fe  0d06ae09472764b7cc2841ceed509f96b49aecbda2bc7465bfd243ec4731fffe
object.bin    off=0x098fe size=0x0060d  b2e300657da77a7775072396140a31461a407bc9a1e5f1a2376032bc0992cd01
object2.bin   off=0x09f0b size=0x00b86  ecc60ba8fc9b7c3eb508f12220ffc6817dfff56079ecd8dcb3cd40e53c14ce79
circle.bin    off=0x0aa91 size=0x0bb80  b6e053a967cda3d5721fd3d5322147e6917a8224f86939a8cbbb33bad2283843
ball2.ch5     off=0x16611 size=0x00100  043a5e2d900964c18c58104138becfca133af66ee35cab7681b059006ca095f7
upper.ch4     off=0x16711 size=0x0f8d0  252ae279f7e109f52e24ebc67e6ff2f355e0253d615e85f0d314319e403109b8
moongod.mod   off=0x25fe1 size=0x4ba02  0a63cc6777ee1a720d9d8a0e502e3c30e59c29648bffd0e022b3a27932456ce4
rtg94.c5f     off=0x719e3 size=0x04174  a6f3f291a9bc9fb390b586d4c4ec552c2350d0e66636f8debc3ef3a0ffdcff56
icefever.pal  off=0x75b57 size=0x00300  d7d8cd904a4a70e9e0f2f5aa5a5201ed22282f015ce54111481cb1873ec46899
duid.ch4      off=0x75e57 size=0x0fa10  66c1bf9b6f4c0eb6254d14253d87892afe06ce362d933f4206ff88ce3b7be76c
lower.ch4     off=0x85867 size=0x0f8d0  0e839d29ce275f9455d2179f7d3715dc3c13470339f7efc186dc70e41344667a
o.b           off=0x95137 size=0x00fa0  7d8cbdb0e2258b8056c4aa64fb57ee9b35ecf4df94ede520d2c645fc0d2f6c59
hei.pal       off=0x960d7 size=0x00600  60fd003b1940f87f306dec69e1e1b45fcc85c1bc2f87d82d410862b5dd403630
read.ice      off=0x966d7 size=0x00c2f  414d158357db9b0137d211877dcc0d9f315755a3c259963107f2f1bd4b2dc6bb
r2.pcx        off=0x97306 size=0x10a15  89b25559d4bd01e745a445868d95c6922808039c8484f022c43784f8b5efc50c
55138653.com  off=0xa7d1b size=0x00c9c  f1961960749db89f5d20ae1d13063a4ef9a2ec0bc60a3111ae65c91a16af6dfa

Running the wrapper briefly under DOSBox-X left 55138653.COM behind, and the hash matched the carved payload exactly. That validates the footer parser.

Inner Executable

icel10.exe is the real demo loader and is itself PKLITE-compressed:

file size:      39,166 bytes
MZ header:         112 bytes
relocations:        0
entry:        fff0:0100

depklite commit 83a11e5 recovers a raw 69,134-byte image:

90116a334bfd421cecf4b008e6529e540e0b4201123e5b24d43c39c6a1785b14  icel10.dep0

The recovered image is not a clean rebuilt MZ executable, but it contains the unpacked program text and normal 16-bit real-mode code. The strings and code references line up with the carved asset names:

dep+0x0d15  icefever.exe
dep+0x0d22  55138653.com
dep+0x0d2f  read.ice
dep+0x0d38  icefever.(x)
dep+0x0d45  moongod.mod
dep+0x1288  icefever.exe / rtg94.c5f
dep+0x44bf  icefever.exe / r2.pcx
dep+0x6011  circle.bin
dep+0x8153  object2.bin
dep+0x8149  object.bin
dep+0x9055  upper.ch4 / lower.ch4
dep+0x9076  icefever.pal
dep+0x93ad  duid.ch4
dep+0x970c  ball2.ch5

The release text says that the demo uses a 12-channel digital module composed with TakeTracker and recommends a 486DX2-class machine with a 256 KB GUS. The binary agrees: the recovered image checks ULTRASND, has a BLASTER string for the setup path, and the music file is a custom 12-channel module.

Asset Formats

TakeTracker Module

moongod.mod is not a normal four-channel ProTracker MOD. Its header contains:

moongods,      dz94
12 channel module
taketracker 0.9e
dr.zon/xpose (c) 1994
12CH

The file is 309,762 bytes, which accounts for most of the resource volume.

PCX Screen

r2.pcx is a standard 8-bit PCX:

manufacturer = 0x0a
version      = 0x05
encoding     = 0x01
bpp          = 8
size         = 256 x 253

It carries a normal 256-color palette. The recovered code block at dep+0x44bf loads this PCX from the embedded resource file and then builds a 256-entry DAC table before entering its timed display path.

CH4 Images

The .ch4 files are prearranged for unchained VGA:

duid.ch4   width_bytes=0x50  height=0xc8  data = 80 * 200 * 4 + 16 bytes
upper.ch4  width_bytes=0x50  height=0xc7  data = 80 * 199 * 4 + 16 bytes
lower.ch4  width_bytes=0x50  height=0xc7  data = 80 * 199 * 4 + 16 bytes

The 0x50 width is exactly the Mode X byte width for one 320-pixel row per plane: 320 pixels / 4 VGA planes = 80 bytes. The 16-byte header is followed by four planar images. This lets the demo copy plane-ready data instead of converting chunky pixels during the visible effect.

ball2.ch5 is 256 bytes:

width_bytes=0x0004
height=0x000c
payload = 240 bytes = 4 * 12 * 5

The fifth component likely stores an auxiliary mask or frame strip for the ball part. The code consumes it through the same resource loader rather than through the CH4 full-screen path.

Palettes

icefever.pal is one 768-byte VGA palette. hei.pal is 1,536 bytes, exactly two 768-byte palettes. The binary has both write and read DAC helpers, so the extra palette is plausibly used for the height/snow/interference part rather than as a static title-screen palette only.

X-Pose Object Files

Both object files start with:

X-Pose 3d-object file@

At offset 0x17, both contain the word 0x007d, or 125 decimal. Interpreting triples from offset 0x27 as signed 16-bit coordinates gives plausible vertex data:

object.bin:  (  93, -209, 0), (  46, -255, 0), (  46, -246, 0), (  75, -198, 0)
object2.bin: ( 192,   80, 0), ( -61,   96, 0), ( -98,  112, 0), (-136,  127, 0)

That matches the recovered credits: the vector part uses object data credited to IRIS and code credited to Twaddler.

Run Shape

The recovered text and asset references show this rough order:

  1. Outer EXE starts through the PKLITE stub.
  2. The resource footer is used to extract or stream the inner files.
  3. icel10.exe starts the real demo code.
  4. Setup locates GUS configuration and loads the custom module.
  5. The title/credits and rtg94.c5f font data are prepared.
  6. VGA is switched into a tweaked unchained mode.
  7. The demo runs several blocks: PCX/image reveal, vector object part, logo, plasma/interference, rotating balls, snow, vector dots, and a movie scroller.
  8. The helper COM advertisement is launched separately by the wrapper path.

The part labels are not guesses from filenames alone; they appear in the unpacked credit text:

Vector part
Icefever logo
Plasma
Rotating balls
Interference
Snow
Vector-dots
movie scroller

VGA Setup

The main VGA setup is at dep+0x141a. There is a later duplicate around dep+0xa387.

141a  mov ax,0013h
141d  int 10h
141f  dx = 03cch
1422  in al,dx
1423  test al,1
1425  dx = 03d4h
1428  if mono display: dx = 03b4h
142d  [0008] = CRTC base
1434  dx = 03ceh
1437  ax = 0106h
143a  out dx,ax          ; graphics-register 6 = 1
143b  dx = 03c4h
143e  al = 04h
1440  out dx,al
1442  al = 06h
1444  out dx,al          ; sequencer memory mode = unchained planes
1445  dx = [0008]
1449  CRTC index 14h: clear bit 6
1452  CRTC index 17h: set bit 6

So the demo starts from BIOS mode 13h and immediately changes VGA memory into a planar, 80-bytes-per-row layout. This matches the CH4 files.

Plane selection is the usual sequencer map-mask write:

1460  ah = plane_mask
1463  al = 02h
1465  dx = 03c4h
1468  out dx,ax

Retrace waits use VGA status port 03dah, bit 3:

146e  dx = 03dah
1471  in al,dx
1472  test al,08h
1474  wait while in retrace
1476  in al,dx
147a  test al,08h
147c  wait until retrace begins
147e  ret

The same two-edge wait appears at dep+0x4c6e, dep+0x8bee, dep+0xa374, and other part-local copies.

DAC Paths

The single-entry palette writer appears twice. The local copy at dep+0x202b is representative:

202b  dx = 03c8h
202e  al = palette_index
2031  out dx,al
2032  dx = 03c9h
2035  al = red
2038  out dx,al
2039  al = green
203c  out dx,al
203d  al = blue
2040  out dx,al
2043  ret 8

The far-callable copy at dep+0xad32 has the same shape. A DAC reader at dep+0xad4d writes the index to 03c7h, reads three values from 03c9h, and stores them through far pointers. That read path matters for fades and palette remapping: the demo is not just blasting static palettes.

Image And Plane Copy Loops

The renderer uses an off-screen buffer segment stored at ds:0354. A small but interesting page routine at dep+0x8b98 both copies that buffer to A000h and zeros the source:

8b98  bx = 4
8b9c  ds = [0354]         ; off-screen page
8ba0  es = a000h
8ba4  di = 0
8ba6  si = 0
8bab  cx = 3e80h          ; 16,000 dwords = 64,000 bytes
8bae  eax = 0
8bb1  xchg [si],eax       ; load old source dword, clear source to zero
8bb4  es:[di] = eax       ; write old dword to VGA
8bb8  di += 4
8bbd  si += 4
8bbf  loop 8bb1

That is a bandwidth-conscious 386 trick: one pass flips the prepared page and clears it for the next frame.

Full planar-image data is loaded and copied through helper calls, but the layout is visible from the file sizes and screen pitch. For a CH4 full screen:

for plane in 0..3:
    select VGA plane with sequencer map mask
    copy height * 80 bytes into A000h

The demo avoids a chunky-to-planar conversion loop for these title/logo images. The cost was paid ahead of time when the assets were built.

Filled Span Kernel

The filled-span routine around dep+0x4b80 is one of the better inner loops in the recovered image. It computes a horizontal run for each scanline, clips to the 200-line viewport, and writes a repeated color using 386 string stores.

The central part:

4bb4  dest = y * 320 + 1
4bdd  clamp bottom to 199
4bf8  advance current edge values
4c0c  eax = left_fixed
4c10  ebx = right_fixed
4c24  if left > right: swap
4c2b  es = [032e]         ; destination segment
4c2f  di = current row pointer
4c39  eax >>= 16          ; integer x0
4c3d  ebx >>= 16          ; integer x1
4c41  di += x0
4c44  bx = x1 - x0 + 1
4c47  al = color
4c4a  ah = al
4c4d  eax = color repeated four times
4c52  cx = count & 3
4c58  rep stosb
4c5a  cx = count >> 2
4c5f  rep stosd
4c62  next row

This is a real-mode Pascal/Borland-style program, but the hot fill path uses 32-bit registers and rep stosd for the part that matters. The same pattern appears elsewhere, for example around dep+0x8b00.

Snow/Interference Table Loop

The block around dep+0x8ccc allocates three 512-byte tables:

8cce  allocate 0200h -> d91a:d91c
8cde  allocate 0200h -> d91e:d920
8ced  allocate 0200h -> d922:d924

It then fills them in three 0..255 loops using trig/math helper calls at e6:133c, e6:132e, e6:1328, e6:1461, and e6:1348. The exact helper names are not recovered, but the structure is clear: each loop derives a byte table from a phase value and stores it into one of the 512-byte buffers. After the first 256 entries are generated, the code mirrors each table into the second half:

8e7d  for i = 0..255:
8e80      table0[i+256] = table0[i]
8e98      table1[i+256] = table1[i]
8eb3      table2[i+256] = table2[i]

The frame loop at dep+0x8c00 uses those three 512-byte tables as scrolling phase sources:

8c02  phase += 2
8c14  wait retrace
8c1f  for row = 0..200:
8c27      a = table0[row + ((phase*2) & 255)]
8c48      a = a * amplitude / 64 - amplitude
8c57      b = table1[row + (phase & 255)]
8c76      b = b * amplitude / 64 - amplitude
8c85      c = table2[row + ((256-phase) & 255)]
8cab      c = c * amplitude / 64 - amplitude
8cba      submit row offsets/colors to the drawing helper

Then dep+0x8f20 ramps amplitude up to 0x40, calls the row loop for about 200 frames, and ramps it down again:

8f20  if amplitude < 64: amplitude++
8f2f  visible_row_limit++
8f41  draw table-distorted frame
8f44  repeat until frame counter reaches 200
8f4c  if amplitude > 0: amplitude--
8f5b  visible_row_limit++
8f6d  draw table-distorted frame
8f70  repeat until amplitude is 1

That is the interference/snow-style core: no per-pixel sine in the hot path, just table lookups, fixed scaling, and a per-row drawing helper.

Table Generation For Later Parts

Another table-heavy block starts at dep+0xa412. It builds:

The first loop:

a41d  for i = 0..255:
a420      ax = i
a425      math helper e6:133c
a42a      helper sequence with constants 0089h, 5c82h, c28fh, 48f5h
a456      result word -> [bp + i*2 - 080fh]

The second loop:

a472  for i = 0..255:
a478      ax = i
a47a      math helper e6:133c
a47f      helper sequence with constants 5c8ah, c28fh, 48f5h
a49e      result dword -> [bp + i*4 - 0c0fh]

Then the code branches on an effect selector. In selector 1, it builds 256 RGB triples, adding 0x20 to each generated component:

a4c3  for i = 1..255:
a4cd      target = rgb_table + i*3
a51f      byte0 = generated_value + 20h
a567      byte1 = generated_value + 20h
a5b0      byte2 = generated_value + 20h

Selector 2 follows a similar layout but samples different table phases. This fits the palette-driven look of the later parts: the demo spends setup time on tables so the visible frame loops can stay cheap.

Text And Credits Path

The title/credits block is visible around dep+0x0d50 onward. It calls the resource loader, prepares rtg94.c5f, and then runs through zero-terminated credit strings:

ICEFEVER
AN XPOSE PRODUCTION
PRESENTED AT THE GATHERING
Credits:
Vector part
Icefever logo
Plasma
Rotating balls
Interference
Snow
Vector-dots
movie scroller

The code around dep+0x147f copies length-prefixed text to a stack buffer and then draws it in the tweaked VGA mode. The function begins by copying the Pascal-style string:

148a  di = stack_buffer
148e  lds si,[bp+4]
1491  lodsb              ; length
1492  stosb
1493  cx = length
1496  rep movsb

Then it clips the x coordinate against 0x320 and switches planes before rendering glyph data. The font file rtg94.c5f is therefore not a BIOS text font; it is drawn by the demo into the planar screen.

What Makes It A TG94 Top-Three Demo

Icefever is rougher than the best-known 1994 PC demos, and the authors say as much in the bundled release text. Technically, though, it has several serious pieces:

The demo's most interesting implementation choice is that many expensive conversions are moved out of the visible frame path. CH4 images are already in plane order, sine-like values are tabled, palette ramps are prebuilt, and the frame copy clears its source while blitting. That is exactly the sort of mid-1990s VGA engineering that makes a compo demo usable on the machine class the authors targeted.