Analysis model: gpt-5.5 xhigh
Deadline by Purple - Technical Dissection
Deadline is a 1995 MS-DOS 100K intro by Purple, released at NAID 1995.
Demozoo lists the release date as 15 April 1995, the platform as MS-DOS, and
the sound tag as GUS-only. The bundled text describes it as Purple's first real
demo-oriented release, written after an unfinished The Party 1994 attempt and
then squeezed under the NAID 100K limit.
Release year: 1995.
Released: 15 April 1995.
Sources
- Demozoo production page: https://demozoo.org/productions/293902/
- Demozoo NAID 1995 party page: https://demozoo.org/parties/698/
- Scene.org file page: https://files.scene.org/view/parties/1995/naid95/100k/deadline.zip
- Scene.org archive: https://archive.scene.org/pub/parties/1995/naid95/100k/deadline.zip
- Scene.org NAID 1995 100K index: https://archive.scene.org/pub/parties/1995/naid95/100k/_readme.txt
Old private contact listings from the original note are deliberately omitted.
Credits And Context
The public text credits:
- Code: Viper.
- Graphics: Phoenix and Harmless.
- Music: Mystical.
The same note says the executable wants about 600 KB of conventional memory. That is consistent with the packed executable: it is a real-mode MZ file, but the decompressor expands a much larger code/data image into DOS memory before the intro logic starts.
The NAID 1995 100K table has a known availability gap. Demozoo lists Floppy Disk by USED Crew as second place, but the production is marked lost. This
writeup therefore covers an available NAID 1995 100K intro from the same
archive set rather than pretending the lost ranked file can be inspected.
Archive Identity
deadline.zip contains:
DEADLINE.EXE 97012 bytes
DEADLINE.TXT 7508 bytes
FILE_ID.DIZ 736 bytes
MTY.COM 5920 bytes
DEFIANCE.NFO 1079 bytes
Hashes used for this pass:
fa4bb0c4ae5da81e862b2f88462661f341a7af6866c24f9bd8d0151f392bc732 deadline.zip
7a7afd702eea11b24352dc025e158f8df2c5388f34440b267b8f03ac31e62e59 DEADLINE.EXE
76498841745089bfd5829640038ce6b6aa736221b49e411ebd706dd460928b1d DEADLINE.TXT
c1dfb10b26b5b458ed6e965b15dc0725d32ba43911d7bb4781528ab74791e543 FILE_ID.DIZ
344bea45c8bf5f5f07521a9382cece67ad1d570bb840d5c75e7444d442d55e1b MTY.COM
fa7ad38d9f50b79b34ac94545a58d0a554e95f5b66c605c14795c746127aee11 DEFIANCE.NFO
The executable is an MZ file with no relocation entries in the packed header:
file size 97012 bytes
MZ stated size 70556 bytes
header size 32 bytes
loaded image 70524 bytes
overlay/tail 26456 bytes
entry CS:IP 0000:0000
SS:SP 2527:0800
relocations 0
The MZ-stated image is the part DOS loads before execution. The appended tail is not reached by the first-stage W. Collis decoder path described below. I did not find a clean second loader from that tail in this pass, so the analysis does not treat it as a verified effect resource.
Packed File Shape
The loaded image starts with a compact W. Collis 1991 MZ wrapper:
0000 bd 33 11 mov bp,1133h
0003 50 push ax
0004 06 push es
0005 8c cb mov bx,cs
0007 03 dd add bx,bp
0009 8c d2 mov dx,ss
000b 4b dec bx
000c 8e db mov ds,bx
000e be 4c 00 mov si,004ch
0011 bf 00 07 mov di,0700h
0014 8e c2 mov es,dx
0016 b9 08 00 mov cx,0008h
0019 f3 a5 rep movsw
001b 4a dec dx
001c 4d dec bp
001d 75 ec jne 000bh
001f 42 inc dx
0020 8e da mov ds,dx
0022 0e 07 push cs / pop es
0024 06 push es
0025 16 push ss
0026 bf 42 06 mov di,0642h
0029 57 push di
002a 33 ff xor di,di
002c be 00 07 mov si,0700h
002f f9 stc
0030 cb retf
This is not the intro. It is a relocation shim for the decoder.
The loop copies the packed body upward in 16-byte slices:
source loaded offsets: 004ch..1137bh
copied byte count: 11330h bytes
first source slice: loaded 1136ch..1137bh -> SS:0700
last source slice: loaded 004ch..005bh -> SS-1132h:0700
At the end:
DS:SI = SS-1132h:0700 ; start of relocated packed stream
ES:DI = original CS:0 ; decompressor output target
CS:IP = SS:0642 ; relocated decoder entry
CF = 1 ; first bit-reader carry input
SS:0642 maps back to original loaded offset 112aeh. That is where the real
W. Collis decoder begins in the packed image.
W. Collis Decoder
The decoder is compact and deliberately hostile to linear disassembly. Several branches land inside other instructions. The most important overlap is this byte pair:
112fc b0 a5 mov al,0a5h
112fe d1 ed shr bp,1
11300 73 fb jae 112fdh
The target 112fdh is the immediate byte a5h decoded as:
112fd: movsw ; literal word copy
112fe: shr bp,1
So the same two bytes mean either "put 0A5h in AL" or "copy one literal word", depending on entry point. That is not accidental; it saves bytes in the depacker and defeats naive listings.
Bit Bucket
The active bit bucket is BP. Refills pull a word from DS:SI, swap it into
BP, and rotate through the incoming carry:
112ae: lodsw
112af: xchg ax,bp
112b0: rcr bp,1
112b2: jb 11304h
112b4: jmp 112fdh
The initial stc in the first-stage shim matters. It seeds the first rcr and
lets the decoder use BP == 0 as the empty-bucket test after later shr
operations:
112e4: shr bp,1
112e6: jae 112e2h ; length extension bit = 0
112e8: je 112b6h ; empty bucket, refill through alternate entry
Literal Paths
There are two literal forms:
1130a: movsb ; one literal byte from stream to output
...
112fd: movsw ; one literal word from stream to output
The word-literal form is reached when a run of zero bits continues through the
overlapped A5h byte. That is why the decoder can copy long uncompressed
patches without spending one command byte per byte.
Match Copy
The LZ back-reference path constructs a source pointer from the current output offset:
112ea: xchg ax,si
112eb: not si
112ed: add si,di ; SI = DI - encoded_distance - 1
112ef: mov bx,es
112f1: mov ds,bx ; match source is already-written output
112f3: rep movsb ; overlap-safe LZ copy
112f5: mov ds,dx ; restore packed-stream segment
112f7: xchg ax,si
That is a normal LZ family operation: copy bytes from the already expanded
prefix into the current output pointer. The implementation is very small
because it uses rep movsb directly and relies on x86 overlap behavior.
Window Stepping
The decoder expands beyond one 64 KB segment while still staying in real mode.
It keeps offsets below 8000h by moving the segment base and subtracting a
matching offset:
112f8: or di,di
112fa: js 112bfh
112bf: sub di,1000h
112c3: inc bh
112c5: mov es,bx
...
112c7: or si,si
112c9: jge 112f8h
112cb: inc dh
112cd: mov ds,dx
112cf: sub si,1000h
112d3: jmp 112c7h
Adding 0100h paragraphs to a segment moves its physical base by 1000h
bytes, exactly matching the offset subtraction. That gives the decoder a
continuous output stream while keeping ordinary 16-bit offsets.
End Marker And Relocation Stream
The long form at 11324h reads an 11-bit value and treats 07ffh as the end:
11324: mov ch,ah
11326: mov cl,0bh
11328: shr cx,cl
1132a: mov bx,0020h
1132d: lodsb
1132e: and ax,07ffh
11331: add cx,0014h
11334: cmp ax,07ffh
11337: jne 112e4h
After that marker it walks a relocation byte stream backwards from the end of the output:
11339: std
1133a: mov si,di
1133c: pop di ; original load segment left by first-stage shim
1133d: push es / pop ds ; DS = expanded image segment
1133f: mov dx,di
11341: add cs:[070eh],di ; patch far-jump segment
11348: mov bx,0fffeh
1134b: lodsb
1134c: add al,02h
1134e: jb 11360h ; escape/update record
11350: add bx,ax
11352: jns 11359h
11354: sub bh,10h
11357: inc dh
11359: mov es,dx
1135b: add es:[bx],di ; apply base segment to one word
1135e: jmp 1134bh
The final boot state is:
1136c: add di,3350h
11370: cli
11371: mov ss,di
11373: mov sp,0abe0h
11376: sti
11377: jmp far original_cs:0c20h
My decoder emulation terminated cleanly with:
expanded byte span: 00000h..365e5h
bytes written: 222694
single-byte literals: 8701
word literals: 16244
match copies: 18793
sha256 raw expanded span: 5b0cf400c391d31aef0cb29fc650d999e1c2f82019d0968997edf4957153d700
The expanded span is not a tidy source listing. It contains mixed code, tables, text fragments, player data, and likely table-driven or overlapped code islands. The sections below only treat hardware-facing islands as firm when the byte sequence is directly recognizable.
Runtime Landmarks
Important landmarks found in the packed and expanded images:
packed+066fh prompt: "Do you want GUS music ?"
packed+4111h ULTRASND string
packed+411ah "Using UltraSound at base ..."
packed+419ah M.K. tracker marker probe
packed+41a0h FLT4/6CHN/8CHN style probe text
packed+41aah OCTA probe text
expanded+9f2ah INT 10h mode 13h setup
expanded+87edh display-status wait and CRTC start-register write
expanded+8521h A000h segment setup island
expanded+86e4h second A000h setup island with the same byte shape
The M.K., FLT4/6CHN/8CHN, and OCTA strings are best interpreted as module
signature probes in the player, not as proof that the module itself starts at
that exact offset. The player knows several ProTracker/FastTracker-style module
identity tags, while the production metadata and prompts make the output path
GUS-first.
GUS Path
The binary carries both a user-facing GUS prompt and the public ULTRASND
environment string:
Do you want GUS music ?
ULTRASND
Using UltraSound at base ...
This implies a simple startup split:
- Ask whether to use GUS music.
- If yes, parse
ULTRASND. - Report the selected GUS base/parameters.
- Feed the embedded module/player path.
The detected signature table:
M.K.
FLT4
6CHN
8CHN
OCTA
is the standard "what tracker flavor is this?" gate used by many DOS players. For this intro the useful conclusion is not "one exact module starts here"; it is that Purple shipped a tracker-module player capable of accepting several channel-count signatures and then sending the mix to GUS hardware.
VGA Setup And Display Timing
The clearest mode-set island is:
9f28: int 10h
9f2a: mov ax,0013h
9f2d: int 10h
The first int 10h belongs to surrounding setup or restore code; the second
call enters 320x200x256 mode. The later render/present paths assume linear
mode-13h memory at A000h.
Two similar islands prime the VGA segment:
8521: mov ax,0a000h
8524: mov es,ax
8526: mov di,[bp-0eh]
...
86e4: mov ax,0a000h
86e7: mov es,ax
86e9: mov di,[bp-0eh]
...
The surrounding bytes are not clean enough to claim one exact high-level
effect. What is firm is the calling convention shape: the caller supplies a
destination offset through the stack frame, the routine switches ES to VGA
memory, and then an inline or nearby copy/blend body writes visible pixels.
The strongest VGA timing island uses port 3DAh and then writes the CRT start
high register:
87ed: mov dx,03dah
87f0: in al,dx
87f1: test al,01h
87f3: jne 87f0h
87f5: mov dx,03d4h
87f8: mov al,0ch
87fa: mov ah,[bp+07h]
87fd: out dx,ax
This waits for a display-status bit to clear, then writes CRTC index 0Ch.
CRTC 0Ch is the high byte of the display start offset. That points to page
or vertical-position timing rather than a plain "copy and hope" frame flip.
The intro is therefore doing at least some beam-aware VGA work.
PIT / Frame Clock Hints
There is a PIT-looking island around expanded+d936h:
d936: out 43h,al
d93c: mov al,0a9h
d93e: out 40h,al
The bytes around it are noisy, but ports 43h and 40h are the PIT mode and
channel-0 data ports. In context this is likely a private timer setup or timer
reload used by the intro's frame/audio scheduling.
I am not treating every out or int byte in the expanded image as code.
There are hundreds of incidental ee, ef, and cf bytes in tables. The
hardware claims above are limited to islands that also have plausible setup
context, such as mov dx,03dah, mov dx,03d4h, mov ax,0a000h, or
mov ax,0013h.
What The Main Parts Do
The executable can be understood as these layers:
MZ wrapper
Loads a 70 KB packed image and ignores the appended tail during the first
decoder path.
Paragraph mover
Copies the packed stream high in memory, preserving the original load segment
as the output target.
W. Collis decoder
Expands the 70 KB loaded image to roughly 222 KB using an LZ bitstream, word
literals, overlapping match copies, and real-mode segment-window stepping.
Relocator
Applies a compact backwards relocation stream and jumps to the expanded
runtime at original_cs:0c20h with a new stack.
Startup/runtime
Performs memory checks, prompts for GUS music, parses `ULTRASND` when used,
initializes player/module handling, and switches to VGA mode 13h.
Player path
Uses tracker signature probes and a GUS output path. The music is not just a
BIOS beep or AdLib fallback; the binary expects a Gravis Ultrasound path.
Visual path
Sets mode 13h, writes to `A000h`, and uses display-status polling plus CRTC
start-register writes for timed presentation or page-position changes.
Inner Loop Summary
The most confidently recovered inner loop is the packer loop, because the decoder is complete and self-contained:
if bit bucket empty:
load next word from packed stream
rotate through carry into BP
if command is literal byte:
copy one byte from packed stream to output
if command is literal word:
enter at the immediate A5h byte and execute MOVSW
if command is match:
decode length into CX
decode distance into AX/SI
set DS = current output segment
SI = DI - distance - 1
REP MOVSB into the current output pointer
restore DS to packed stream
after each high output offset:
subtract 1000h from DI
add 0100h paragraphs to ES
The clearest display loop is the status wait:
DX = 03DAh
repeat:
AL = in(DX)
until (AL & 1) == 0
DX = 03D4h
AL = 0Ch
AH = caller supplied display-start high byte
out DX,AX
The likely pixel kernels sit behind the two A000h setup islands. Their entry
shape is visible, but the exact blend/copy body is mixed with overlapping bytes
and nearby tables in the recovered image. Treating those bytes as a clean
linear routine would overstate the evidence.
Findings
DEADLINE.EXEis not merely compressed by a known utility; it uses a compact W. Collis-style MZ wrapper with a custom high-memory paragraph mover.- The decoder uses overlapping instruction entry points, including a branch
into the immediate byte of
mov al,0a5hto executemovsw. - The expanded image is about 222 KB, far larger than the 100K archive limit, explaining the bundled "about 600 KB" memory requirement.
- The music path is GUS-oriented and includes tracker module signature probes.
- The VGA path is direct mode-13h code with
A000hwrites and CRTC start register timing, not a pure BIOS graphics path. - Several visual effect bodies remain mixed with tables or overlapped code in the recovered image. The safe read is hardware islands plus exact packer behavior, not a full source-level reconstruction of every scene.