Analysis model: gpt-5.5 xhigh
Silence Of The Labs by Natas / Digital Labs / Cathedral - Technical Dissection
Release year: 1995
Silence Of The Labs is a 4 KB MS-DOS intro by Natas of Digital Labs and
Cathedral. The Wired 1995 result file lists it as second place in the 4 KB intro
competition:
1. Epsilon "Lion" 265 pts
2. Cathedral - Digital Labs "Silence of the labs" 157 pts
3. Realtime "FLI" 145 pts
The DIZ says it was a 4 KB intro released at Wired 1995 and credits Natas, Digital Labs, and Cathedral. The live outro string calls it a Digital Labs production by Natas for Wired 1995 and says the viewer has seen 3851 bytes.
Sources:
- Scene.org archive: https://archive.scene.org/pub/parties/1995/wired95/in4k/silence.zip
- Scene.org DIZ: https://archive.scene.org/pub/parties/1995/wired95/in4k/silence.diz
- Scene.org Wired 1995 results: https://archive.scene.org/pub/parties/1995/wired95/results.txt
Archive Contents
Unpacked archive:
SILENCE.EXE 3,851 bytes
FILE_ID.DIZ 363 bytes
Hashes used for this pass:
31e3ef188c36bef24259a2fe2856792c14aa4c6052d122ed75227dd9560babb3 silence.zip
d8cde819f92bc5353c737624098c997a567e0ef48eafa10ea51037a50d043ff9 silence.diz
2112ccfcb78c49a8d50b8144cd44a08f35ff995fb6ef7154637d4407052b0a7f SILENCE.EXE
d8cde819f92bc5353c737624098c997a567e0ef48eafa10ea51037a50d043ff9 FILE_ID.DIZ
a0ef13c27f461faadab676978ee777cf89ca994cf41a751f8851b4f6ebc54541 wired95-results.txt
file identifies SILENCE.EXE as an MZ executable compressed with LZEXE 0.91.
No local LZEXE unpacker was installed, so the deeper pass used DOSBox-X save
states after the intro had unpacked and run. The unpacked code image is stable
in memory even after the intro returns to DOS.
LZEXE Layer And Runtime Map
The MZ header starts with the LZ91 marker at file offset 0x1c, and the
compressed load image begins at file offset 0x20.
The release bytes at the start of that load image include:
0020 ff ff
0022 add word [0106h],0002h
0027 mov ah,4ah
0029 mov bx,3000h
002c int 21h
AH=4Ah is DOS resize-memory-block. The intent is to keep a block large enough
for the program image plus two 64 KB work segments. In the post-run save, the
same byte has become 4Ch, which is a termination function. That appears to be
a post-run patched startup/exit byte, so the analysis below uses the archive
byte for startup behavior and the saved memory for the expanded routines.
The DOS memory-control block name SILENCE appears before the PSP, the PSP
signature begins at physical 0x81c8, and the EXE load image begins at
physical 0x82c8. I carved the saved memory from 0x82c8 so the code offsets
below are loaded-image offsets starting at zero.
Useful unpacked landmarks:
0000 startup / scene chain
00b3 final full-screen title setup
00f0 sine-table expander
0142 first line-fan scene
0209 line/ring table builder
028f short horizontal line writer
02a7 checker-copy and tunnel setup
037f tunnel / rotated texture sampler
0432 random palette and noise filler
04f5 diagonal line wipe
0547 title fade with palette scan
0592 wave-ripple / additive texture scene
0614 moving vertical stripe helper
0638 palette table plus fire/diffusion setup
0688 fire/diffusion iteration
0794 mask scanner / point-list builder
07da point morph / particle text scene
0906 final image/zoom scene
0999 multi-title card scene
0a05 vertical column writer
0a24 DAC ramp helper
0a4d clear 64 KB framebuffer
0a59 clear full DAC
0a68 vertical retrace wait
0a7d text string renderer
0a9a 8x5 font character renderer
0aca large bitmap/glyph renderer
0afc CRTC register 9 writer
1114 8x5 font data
119b large bitmap data
1243 RGB palette table
12a4 seed sine table
1326 main generated table / work buffer
1726 generated image/work map
3726 derived image/work map
The intro is a 16-bit real-mode program with 386 opcodes. It uses FS and GS
as two extra 64 KB work segments:
0011 mov ax,cs
0013 add ah,10h
0016 mov fs,ax ; CS + 1000h paragraphs
0018 add ah,10h
001b mov gs,ax ; CS + 2000h paragraphs
In mode 13h, ES is set from [0c03]; in the captured run that points at the
visible VGA frame segment.
Scene Chain
After setup and a CRTC register-9 fold-in/fold-out sequence, the main graphics
chain begins at offset 003d. objdump disassembles the inline data at
0037..003c as instructions, so the clean call sequence is easier to read from
the bytes:
003d call 0432 ; random palette/noise fill
0040 call 0a4d ; clear frame
0043 call 0999 ; title cards
0046 call 0906 ; final-image style setup
0049 call 0a4d ; clear
004c call 0592 ; wave-ripple additive texture
004f call 0614 ; moving vertical stripes
0052 call 0547 ; title fade
0055 mov ah,07h
0057 call 0afc ; CRTC register 9
005a call 0638 ; diffusion/fire-like scene
005d call 04f5 ; diagonal line wipe
0060 mov ah,01h
0062 call 0afc
0065 call 07da ; point morph / particle text
0068 call 0a4d
006b call 00f0 ; rebuild sine table
006e call 02a7 ; checker copy and tunnel
0071 call 0142 ; line/ring scene
0074 call 00b3 ; final title card
The exit path restores text mode, writes a colored text-mode background, prints
the outro string through DOS int 21h/AH=09h, animates CRTC register 9 again,
and terminates.
Sine Table Expansion
The routine at 00f0 expands a small seed table at 12a4h into a signed dword
wave table at 1326h.
00f0 xor bx,bx
00f2 xor si,si
00f4 xor eax,eax
00f7 mov ax,[si+12a4h]
00fb shl eax,1
00fe mov [bx+1326h],eax
0103 add bx,4
0106 add si,2
0109 cmp bx,0100h
010d jbe 00f4h
That first pass writes a quarter-wave as 32-bit entries. The next loops mirror and negate it:
010f mov di,bx
0111 sub bx,4
0114 sub bx,4
0117 mov eax,[bx+1326h]
011c mov [di+1326h],eax
0121 add di,4
0124 or bx,bx
0126 jne 0114h
0128 add bx,4
012b mov eax,[bx+1326h]
0130 neg eax
0133 mov [di+1326h],eax
0138 add di,4
013b cmp di,0400h
013f jbe 0128h
The result is a 256-entry table of dword fixed-point sine values at 4-byte
stride. Multiple renderers index it by angle * 4 and by angle + 0x40 for a
quarter-wave shifted cosine value.
CRTC And Retrace Helpers
The intro uses a very small set of shared VGA helpers.
Vertical retrace wait:
0a68 mov dx,03dah
0a6b in al,dx
0a6c test al,08h
0a6e jne 0a6bh
0a70 in al,dx
0a71 test al,08h
0a73 je 0a70h
0a75 ret
Delay by CX retraces:
0a76 call 0a68h
0a79 dec cx
0a7a jne 0a76h
Clear the current 64 KB framebuffer:
0a4d xor di,di
0a4f mov cx,4000h
0a52 xor eax,eax
0a55 rep stosd
Clear the full 768-byte DAC:
0a59 mov dx,03c8h
0a5c xor al,al
0a5e out dx,al
0a5f mov cx,0300h
0a62 inc dl
0a64 out dx,al
0a65 loop 0a64h
CRTC register 9 writer:
0afc mov al,09h
0afe mov dx,03d4h
0b01 out dx,ax
AL=09h selects the VGA maximum scanline register, and AH is the value to
write. The main sequence changes AH through several values, which gives a
cheap vertical fold/stretch transition without touching the framebuffer.
Glyph And Text Rendering
The text renderer at 0a7d walks a zero-terminated string. Space advances by
eight pixels; other characters call the character renderer at 0a9a:
0a7d lodsb
0a7e or al,al
0a80 jne 0a83h
0a82 ret
0a83 cmp al,20h
0a85 jne 0a8ch
0a87 add di,8
0a8a jmp 0a7dh
0a8c push di
0a8d push ax
0a8e call 0a9ah
0a91 pop ax
0a92 pop di
0a93 add di,8
0a96 jmp 0a7dh
The character renderer indexes a 5-byte font at 1114h. The character offset is
AL * 5, formed without imul:
0a9c movzx bx,al
0a9f shl bx,2
0aa2 add bl,al
0aa4 adc bh,0
Then it draws 5 rows by 8 bits:
0aa7 mov cx,0508h
0aaa mov dl,[bx+1114h]
0aae rcl dl,1
0ab0 jae 0ab5h
0ab2 mov es:[di],ah
0ab5 inc di
0ab6 dec cl
0ab8 jne 0aaeh
0aba add di,[0b98h]
0abe sub di,8
0ac1 inc bx
0ac2 or cl,8
0ac5 dec ch
0ac7 jne 0aaah
The row stride adjustment is data-driven by [0b98]. Most text uses a normal
320-byte pitch, but the final scene temporarily swaps that value with 0100h
to draw into a narrower wrapped area.
The large bitmap renderer at 0aca uses the same idea with dword bit rows from
119bh; it writes 64 columns by 21 rows, advancing by [0b98] - 64 at row end.
Random Generator
Several effects inline the same pseudo-random generator. It keeps a 32-bit
state split across [0137] and [0139] and uses [013b] as a multiplier:
0445 mov ax,cs:[0137h]
0449 mov bx,cs:[0139h]
044e mov cx,ax
0450 mul word cs:[013bh]
0455 shl cx,3
0458 add ch,cl
045a add dx,cx
045c add dx,bx
045e shl bx,2
0461 add dx,bx
0463 add dh,bl
0465 shl bx,5
0468 add dh,bl
046a add ax,1
046d adc dx,0
0470 mov cs:[0137h],ax
0474 mov cs:[0139h],dx
The returned value is produced by multiplying pieces of the state by a scale in
BP and taking the high word:
0479 mov cx,dx
047b mul bp
047d mov ax,cx
047f mov cx,dx
0481 mul bp
0483 add ax,cx
0485 adc dx,0
0488 mov ax,dx
This generator is used for palette noise, screen noise, and the lower fire seed values.
Line Fan And Palette Fade
The line-fan scene starts at 0142. It clears the screen, writes a scanline
height register, builds an image at 1726h, and then repeatedly copies columns
from that image to the visible page:
0142 call 0614h
0145 mov ah,01h
0147 call 0afch
014a call 0209h
014d call 0a59h
0150 mov dx,00c7h
0153 mov bx,0100h
0156 mov di,bx
0158 shr di,1
015a add di,0100h
015e neg bx
0160 call 019fh
The row-copy helper at 019f maps BL to a 16 KB slice of 1726h:
019f push bx
01a0 push dx
01a1 push di
01a2 push dx
01a3 call 0a68h
01a6 pop dx
01a7 mov si,bx
01a9 and si,007fh
01ac shl si,7
01af add si,1726h
01b3 mov cx,001fh
01b6 rep movsd
01b9 movsw
01ba movsb
01bb xor al,al
01bd stosb
01be add di,00c0h
01c2 inc bx
01c3 dec dx
01c4 jne 01a7h
Each inner row copies 31 dwords plus one word and one byte, then writes a zero
byte and jumps forward by 0xc0. That totals a 127-byte source slice expanded
into a 320-byte screen row with a blank terminator. The outer scene walks BX
back and forth, while DX is the number of rows to draw.
The palette helper at 01ca writes two 64-entry gradient ranges. The first
range is red-only; the second is blue-only:
01ca mov dx,03c8h
01cd xor al,al
01cf inc al
01d1 out dx,al
01d2 xor cl,cl
01d4 inc dl
01d6 mov al,cl
01d8 shr al,1
01da add al,0ah
01dc sub al,bl
01de jns 01e2h
01e0 xor al,al
01e2 out dx,al
01e3 xor al,al
01e5 out dx,al
01e6 out dx,al
The same expression is repeated with the computed value written as blue instead
of red. BL is used as a fade amount.
Table Builder For Line Scenes
The builder at 0209 clears 1726h, then uses the sine table to draw multiple
short horizontal line runs. It loops angles from 0x20 to 0x5f:
0209 push es
020a push ds
020b pop es
020c mov di,1726h
020f mov cx,0800h
0212 xor eax,eax
0215 rep stosd
0218 pop es
0219 mov di,1766h
021c mov bx,0020h
For each angle it takes a sine sample and a quarter-wave shifted sample:
0221 add bl,80h
0224 shl bx,2
0227 mov ebp,[bx+1326h]
022c shr bx,2
022f sar ebp,0ah
0233 add di,bp
0235 add bl,40h
0238 shl bx,2
023b mov ecx,[bx+1326h]
0240 sar ecx,0ah
0244 push cx
0245 sub cx,bp
The horizontal line writer at 028f draws a short ramp:
028f or cx,cx
0291 je 02a6h
0293 push ax
0294 xor ch,ch
0296 mov ah,ch
0298 shr ah,1
029a add ah,al
029c mov [di],ah
029e inc di
029f inc ch
02a1 cmp ch,cl
02a3 jne 0296h
02a5 pop ax
The caller draws one ramp with AL=0x41, flips bit 0x40, and draws another
ramp. It then copies 0x2000 bytes from 1726h to 3726h, toggling bit
0x40 for nonzero bytes. That gives the later scenes two related maps.
Checker Copy And Tunnel Sampler
The setup at 02a7 copies the current visible frame into GS, applying a
checker xor based on x/y bits:
02c5 mov al,es:[bx+si]
02c8 mov dx,di
02ca shl dh,1
02cc mov dl,bl
02ce shr dl,3
02d1 xor dh,dl
02d3 and dh,10h
02d6 xor al,dh
02d8 mov gs:[di],al
02db inc di
02dc je 02eeh
02de inc bl
02e0 jne 02c5h
02e2 add si,0140h
02e6 cmp si,0a00h
02ea jne 02c5h
02ec jmp 02c0h
BX is x modulo 256, SI steps through 320-byte rows, and DI is the 64K
linear output offset. The xor mask is bit 0x10, derived from a mix of y high
bits and x divided by eight.
The tunnel renderer at 037f is the main texture sampler. Inputs:
[0786] angle index
[046b] scale/radius
[046f] x step from sine
[0473] y step from cosine
[0477] row-start x accumulator
[047b] row-start y accumulator
GS 64K source texture
ES destination frame
It computes sine/cosine steps:
0382 movzx bx,word [0786h]
0387 shl bx,2
038a mov eax,[bx+1326h]
038f imul dword [046bh]
0394 shrd eax,edx,10h
0399 mov [046f],eax
039d movzx bx,word [0786h]
03a2 add bl,40h
03a5 shl bx,2
03a8 mov eax,[bx+1326h]
03ad imul dword [046bh]
03b2 shrd eax,edx,10h
03b7 mov [0473],eax
Then it creates the starting point for the upper-left screen corner:
03bb imul eax,[046f],-50h
03c1 mov [0477],eax
03c5 imul eax,[0473],-32h
03cb sub [0477],eax
03d0 imul eax,[046f],-32h
03d6 mov [047b],eax
03da imul eax,[0473],-50h
03e0 add [047b],eax
The hot loop writes two pixels per texture sample:
03e5 xor di,di
03e7 push cx
03e8 mov ebp,[0477h]
03ed mov edx,[047bh]
03f2 mov cx,00a0h
03f5 add ebp,[046fh]
03fa add edx,[0473h]
03ff rol ebp,10h
0403 rol edx,10h
0407 mov bx,bp
0409 mov bh,dl
040b rol ebp,10h
040f rol edx,10h
0413 mov al,gs:[bx]
0416 stosb
0417 stosb
0418 dec cx
0419 jne 03f5h
BP supplies the low byte of the texture offset, DL supplies the high byte,
so BX becomes a 16-bit coordinate into a 256x256 source. The double stosb
means 160 iterations cover 320 screen pixels. At row end the starting point is
rotated by adding/subtracting the perpendicular step:
041c mov eax,[046fh]
0420 add [047b],eax
0425 mov eax,[0473h]
0429 sub [0477],eax
042e dec cx
042f jne 03e7h
This is the intro's tightest texture loop: fixed-point update, one indexed texture byte read, and two byte writes.
Noise And Palette Seed
The routine at 0432 first generates a random palette, then fills memory with
random words:
0432 mov dx,03c8h
0435 xor al,al
0437 out dx,al
0438 inc dl
043a out dx,al
043b out dx,al
043c out dx,al
043d mov cx,00feh
0440 push cx
0441 push dx
0442 mov bp,003fh
0445 ... random step ...
048a pop dx
0490 out dx,al
0493 out dx,al
0496 out dx,al
0497 pop cx
0498 loop 0440h
049a mov ecx,00180000h
04a0 push ecx
04a2 mov bp,0ffffh
04a5 ... random step ...
04ea stosw
04eb pop ecx
04ed dec ecx
04ef jne 04a0h
The second loop writes many words through ES:DI; because DI wraps in real
mode, it repeatedly covers the 64K frame/work area with pseudo-random texture.
Wave-Ripple Additive Scene
The routine at 0592 first builds a 256-byte triangular ramp at 1326h:
0592 mov si,1326h
0595 xor al,al
0597 mov [si],al
0599 inc si
059a inc al
059c jns 0597h
059e dec al
05a0 mov [si],al
05a2 inc si
05a3 or al,al
05a5 jne 059eh
The same table becomes a grayscale palette:
05ad mov cx,0100h
05b0 mov si,1326h
05b3 lodsb
05b4 shr al,1
05b6 out dx,al
05b7 shr ax,1
05b9 out dx,al
05ba shr ax,1
05bc out dx,al
The frame loop adds a tiny brightness value into every pixel:
05dc xor di,di
05de mov cx,0140h
05e1 mov si,[bx+1326h]
05e5 and si,00ffh
05e9 shr si,2
05ec add si,bx
05ee and si,00ffh
05f2 mov al,[si+1326h]
05f6 shr al,4
05f9 add es:[di],al
05fc inc di
05fd inc si
05fe dec cx
05ff jne 05eeh
0601 inc bl
0603 cmp di,0fa00h
0607 jb 05deh
DI advances through the 320x200 frame. BL changes each row, and BP counts
frames up to 0x12c. The table lookup makes each row a shifted ramp, while the
add es:[di],al operation accumulates a soft wave into the current screen.
Fire/Diffusion Scene
The routine at 0638 loads palette data from 1243h, clears the work buffer
at 1326h, and runs 0x12c iterations of a diffusion step. The diffusion loop
at 0688 is compact:
0688 mov cx,10e0h
068b mov di,1326h
068e add di,00a0h
0692 mov ax,[di-2]
0695 add ax,[di]
0697 add ax,[di+2]
069a add ax,[di+00a0h]
069e shr ax,2
06a1 je 06aah
06a3 dec ax
06a4 je 06aah
06a6 dec ax
06a7 je 06aah
06a9 dec ax
06aa mov [di-00a0h],ax
06ae add di,2
06b1 dec cx
06b2 jne 0692h
It averages left, center, right, and the row below, then subtracts up to three unless the value is already small. That is the classic upward heat/decay kernel, using word pixels two bytes at a time.
The bottom seed is generated from the random helper and written into two rows:
06bc push bp
06bd mov bp,000ah
06c0 ... random value ...
06fb cmp ax,0005h
06fe jae 074eh
0700 mov bp,0002h
0703 ... second random value ...
0746 shl ax,8
0749 mov [0786h],ax
074e mov ax,[0786h]
0751 pop bp
0752 mov ds:[bp+34e6h],ax
0757 mov ds:[bp+3586h],ax
After the diffusion iterations, it expands the work buffer to the screen:
0777 mov si,1326h
077a xor di,di
077c mov cx,0fa0h
077f lodsw
0780 shr al,2
0783 mov ah,al
0785 mov es:[di],ax
0788 mov es:[di+2],ax
078c add di,4
078f dec cx
0790 jne 077fh
One source word becomes four screen pixels, so the heat buffer is a compact lower-resolution source expanded to a chunky mode-13h image.
Point Morph Scene
The point-list builder at 0794 scans a 320x200 mask in GS and records
matching pixels into FS:
0794 push di
0795 xor cx,cx
0797 xor dx,dx
0799 xor si,si
079b xor bx,bx
079d cmp gs:[bx+si],ah
07a0 jne 07adh
07a2 mov fs:[di],bx
07a5 mov fs:[di+8],dx
07a9 add di,10h
07ac inc cx
07ad inc bx
07ae cmp bx,0140h
07b2 jne 079dh
07b4 inc dx
07b5 add si,0140h
07b9 cmp dl,0c8h
07bc jne 079bh
The list entry is 16 bytes. The first scan collects points from one mask; a second scan collects target points. Then the code converts coordinate pairs into fixed-point starts and per-frame deltas:
085d movzx eax,word fs:[si] ; start x
0862 shl eax,10h
0866 mov fs:[si],eax
086a movzx ebx,word fs:[si+4] ; target x
0870 shl ebx,10h
0874 sub ebx,eax
0877 sar ebx,6
087b mov fs:[si+4],ebx
The same record layout is used for y at [si+8] and [si+0c]. The animation
loop runs 64 frames. Each frame clears the screen, updates each fixed-point
position, and plots color 0x78:
0889 mov cx,0040h
088b push cx
089f call 0a68h
08a2 call 0a68h
08a5 call 0a4dh
08a8 xor si,si
08aa mov cx,bp
08ac mov eax,fs:[si+8]
08b1 add eax,fs:[si+0ch]
08b6 mov fs:[si+8],eax
08bb shr eax,10h
08bf lea edi,[eax+eax*4]
08c4 shl di,6 ; y * 320
08c7 mov ebx,fs:[si]
08cb add ebx,fs:[si+4]
08d0 mov fs:[si],ebx
08d4 shr ebx,10h
08d8 mov byte es:[bx+di],78h
08dc add si,10h
08df dec cx
08e0 jne 08ach
This is a full point morph engine in very few bytes. It does not store an object format; it scans rendered masks, builds point pairs, derives deltas, and plots the interpolated points.
Final Image Scene
The scene at 0906 combines several existing pieces:
- sets a bright DAC entry,
- clears and regenerates the sine table,
- draws text/bitmap masks into
GS, - scrolls/copies a 64K region in
GS, - runs the tunnel renderer at
037fwith decreasing scale, - restores a smaller scanline height with CRTC register 9.
The internal copy loop is a wraparound word copy in GS:
0940 mov bx,ff80h
0943 mov ax,gs:[bx]
0946 mov gs:[bx+0100h],ax
094b add bl,02h
094e jne 0943h
0950 mov bl,80h
0952 dec bh
0954 jne 0943h
The scale loop for the tunnel reuses the sampler:
095a mov dword [046b],00010000h
0963 mov cx,0064h
0966 mov word [0786],0040h
096c call 037fh
096f mov cx,00c8h
0972 call 0a76h
0975 xor cx,cx
0977 push cx
0978 mov cx,0064h
097b call 037fh
097e sub dword [046b],00000100h
0987 inc word [0786]
098b pop cx
098c inc cx
098d cmp cx,0104h
0991 jne 0977h
So this is not a separate renderer. It is the same texture sampler with new source data and a changing scale/angle.
Why It Fits In 3851 Bytes
Silence Of The Labs is a dense 4K because it leans on a small vocabulary of
shared primitives:
- one expanded sine table at
1326h, - one random generator inlined into palette and texture setup,
- one 8x5 text renderer,
- one large bitmap renderer,
- one framebuffer clear,
- one retrace wait,
- one CRTC scanline-height writer,
- one tunnel sampler reused by multiple scenes.
The visual variety comes from changing what sits in ES, FS, and GS, and
from repeatedly reusing 1326h as a sine table, a triangular palette ramp, a
diffusion buffer, or a temporary image map. The hot loops are all simple:
rep stosd for clears, rep movsd for slice copies, one-byte texture samples
duplicated by stosb/stosb, and fixed-point point plotting through 16-byte
records.
It is less of a 3D object intro than Lion, but it is very busy for 3851 bytes:
LZEXE wrapper, VGA register tricks, text masks, palette fades, noise fields,
diffusion, tunnel sampling, and a mask-derived point morph all fit inside a
competition-sized DOS EXE.