Analysis model: GPT-5 (Codex), reasoning level not exposed

Stickman's World by COMA - Technical Dissection

Scope

This is a binary and runtime technical dissection of Stickman's World by COMA, released for MS-DOS at Assembly 1995. The Assembly results list it as second place in the PC 64K intro competition, behind Wild Light's Drift and ahead of Complex's Bill G Force.

Public references:

This is not a source-level reconstruction. It is a binary analysis of the public archive, the PKLITE-unpacked executable, the main real-mode scene driver, the embedded S3M/player path, and the stick-figure inner loops, checked against a complete direct run of the released executable.

Offset notation:

Complete Runtime Capture

I ran the released UKKO.EXE to its natural exit under DOSBox-X 2026.01.02. The repeatable visual pass used machine=svga_s3, 16 MB of memory, core=normal, fixed 20,000 cycles, and no aspect or scaler processing. At the intro's own setup screen I selected AdLib, base port 220h, and IRQ 5; Sound Blaster, GUS, and PC-speaker devices were disabled in the emulator. The capture therefore verifies the visual route and setup behavior, not audible S3M playback.

Stickman's World direct sound-card setup screen

The complete emulator window was recorded through X11 at 640x400 and a nominal 30 frames per second with the host cursor suppressed. No video frame was cropped or padded. Capture 00:00.000 is the first grabbed VGA frame after the setup answers, not an internal music cue. The source lasts 87.500 seconds and ends when the executable restores text mode and exits by itself.

Stickman's World complete runtime timeline from title through room, stage, interstitials, and final closing bars

The observed order is:

The following clips preserve continuous frames. The room clip shows that the twelve-point figure is not a sequence of disconnected static poses; limbs and torso travel smoothly between coordinate records. The stage clip isolates the same interpolation engine against the simpler background, where the fractional motion is easier to see.

Stickman's World continuous room-scene stick interpolation

Stickman's World continuous stage-dance stick interpolation

Runtime-To-Code Concordance

The opening title directly anchors the 8,000-byte mode-0Dh still copied from expanded EXE+0x8b95 and held by the 0x01a9-retrace loop. Once mode 13h begins, every visible figure has the fixed twelve-edge topology recovered from the 694 records at expanded EXE+0x0ca5..0x8ec5. The two motion clips are the runtime signature of the phase path at expanded EXE+0xec23: phases 3 through 9 blend the previous and next endpoint sets with integer add/shift weights, then send each blended edge to the shared clipped line drawer at expanded EXE+0x897.

The three captured interruptions also settle the visible identity of the code sites. Major-frame 0x6e is the Wow page copied from expanded EXE+0x0aad6; major-frame 0x193 is the Prodigy page copied from expanded EXE+0x0ca17; and major-frame 0x208 is the full 64,000-byte Dancin' page copied from expanded EXE+0x4dee0. Their observed order agrees with the counter gates and the respective 0x00c8, 0x00c8, and 0x0064 retrace waits.

The backgrounds change independently of the figure data. The stage is the sparse page selected when state 2 begins at major-frame 0x86; after the last interstitial, state 1 at 0x208 restores the first room and state 3 at 0x21e introduces the tall shelving/cabinet page. The final two vertical bars are therefore part of the late coordinate/background sequence, not a capture border. After record 0x2b5, the next scheduler pass reaches cleanup at expanded EXE+0xf68c, stops the player, restores BIOS text mode 3, and returns to DOS exactly as the complete run does.

Credits And Intent

COMA.NFO identifies the group as C.O.M.A. and describes the intro as a LOW-TECH production. The text is also unusually honest about the production style: the deadline was near, the intro was "meant to be non-understandable", and users are told to remove QEMM or other memory managers if it fails.

The credits in the info file are:

McGurk, Verne ................... Coder
Supi, Caveman ............ The BIG LOVE
Apahty, Fume ...................... GFX
Longjam ......................... Music

The recovered executable matches that description. It is not a complicated protected-mode 3D engine. It is a compact, strange, real-mode 386 intro built around a hand-entered sound-card setup screen, a normal-looking S3M music driver, a grayscale Mode 13h display path, and a surprisingly elegant data-driven stick-figure renderer.

Examined Files

Archive contents:

stick.zip                 50,396 bytes
UKKO.EXE                  52,836 bytes
COMA.NFO                   1,238 bytes
FILE_ID.DIZ                  342 bytes

Important hashes:

4ba3c8c22b3fc101bbb91f2ef7823a7011d820d64c997bff79a0df7a02b17d5f  stick.zip
fd5b3ae1159d206276fbd36a6d8f40b1b99050e65a84cf1ea409db2c733c817f  UKKO.EXE
45795624a14a5bfc3dadb37a5be7a4c040d1cf4608745fd1c53b3bff431d38c6  COMA.NFO
781c333432c440407108c94ee460c319d2699ee5f329c0c24ecef282db125f58  FILE_ID.DIZ

The original executable has a PKLITE marker at original EXE+0x1e. The static pass used UNP 4.11 under DOSBox-X to expand it:

expanded UKKO.EXE size: 483,595 bytes
SHA-256: 7718ad5ecebc1103b6276de146312cbb76d8157d4fe5b32ccff7deeeb3c0a60c

The Unix file utility calls the packed original a "Self-extracting PKZIP archive", but the visible signature and UNP behavior identify the wrapper as PKLITE-style MZ packing rather than an ordinary ZIP self-extractor.

Expanded MZ Layout

The UNP-expanded executable is a large real-mode MZ program:

file size:                 483,595 bytes
MZ image size:             483,595 bytes
header size:                   512 bytes
relocation count:              28
initial CS:IP:             0020:0000
initial SS:SP:             0000:01f4
entry file offset:         expanded EXE+0x400

The entry bytes at expanded EXE+0x400 are:

expanded EXE+0x400:
    jmp  0xe9bc
    db   0x0d,0x0a,"Soundcard setup :",...

Because the CPU starts at runtime CS:IP = 0020:0000, this near jump wraps to runtime offset e5bc; the matching expanded-file offset is 0xe9bc. All code offsets below are quoted as expanded-file offsets to avoid ambiguity.

The low bytes from expanded EXE+0x200..0x3e9 are mostly repeated PINO! text. That is harmless filler/space sharing. The active entry at 0x400 skips over the setup strings and later calls the setup routine directly.

Manual Sound Setup

The first real code path is the text-mode sound-card setup at expanded EXE+0x4b2. It is deliberately plain DOS/BIOS code:

mov ax,0003h
int 10h                  ; text mode

mov ah,09h
mov dx,0020h
mov ds,dx
mov dx,0003h
int 21h                  ; print "$"-terminated setup text

mov ah,00h
int 16h                  ; wait for card-choice key
mov cs:[00a5h],al
sub al,30h
and eax,000000ffh
mov al,cs:[eax+00a7h]    ; card-type/flag lookup
mov cs:[00adh],al

It then prompts for the base port in the form 2x0h:

int 16h                  ; read the x digit
sub al,30h
shl al,4
mov ah,02h
mov cs:[00afh],ax        ; e.g. 0220h, 0240h, ...

The IRQ prompt accepts hexadecimal. Digits, uppercase letters, and lowercase letters are normalized into a nibble and stored at cs:[00aeh].

That setup data is fed into the music/player dispatcher later:

al = 01h                 ; driver command: initialize card
ah = cs:[00adh]          ; selected card/flags
bl = 03h
bh = cs:[00aeh]          ; IRQ
dx = cs:[00afh]          ; base port
call 5d6f:1a43

So the visible setup screen is not decorative. It directly configures the player path used by the intro.

Startup Sequence

The main startup block begins at expanded EXE+0xe9bc.

call 0x4b2               ; manual sound-card setup

mov ah,4ah
mov bx,3000h
int 21h                  ; resize memory block to 0x3000 paragraphs
jc  exit

mov ax,9000h
mov cs:[0e583h],ax
mov es,ax
xor di,di

mov ax,7038h
mov ds,ax
xor si,si
mov cx,7d00h
rep movsb                ; copy embedded module/runtime block to 9000:0000

The copied source segment 7038:0000 maps to the embedded S3M at expanded EXE+0x70580. The copy count is 32,000 bytes. The actual module data inside the file occupies 23,435 bytes, so the runtime block gives the player room after the embedded song data.

The startup then calls the music dispatcher three times:

call 5d6f:1a43 with AX=0001h   ; initialize selected card
call 5d6f:1a43 with AX=0007h   ; bind/parse module at DX=9000h
call 5d6f:1a43 with AX=0002h   ; start playback/timer path

Then the VGA setup starts:

mov ax,0013h
int 10h

mov dx,03c8h
xor al,al
out dx,al
inc dx                    ; 03c9h
mov cx,0100h
palette_loop:
    mov al,cl
    neg al
    shr al,2
    out dx,al
    out dx,al
    out dx,al
    loop palette_loop

For palette entry n, the value is approximately n >> 2, so the intro gets a 256-entry grayscale ramp from black to VGA DAC value 63.

The row-offset table is built immediately after the palette:

push cs
pop  es
mov  edi,0177h
xor  eax,eax
mov  ecx,00c8h
row_loop:
    stosd                 ; table[y] = y * 320
    add eax,0140h
    loop row_loop

This is the table the line drawer uses for every pixel write.

Before the main stick sequence, the program briefly switches to mode 0Dh, copies an 8,000 byte still from the main image, and waits for 425 vertical retraces while calling the music update command:

mov al,0dh
int 10h
mov es,0a000h
mov ds,0020h
mov si,8795h
mov cx,1f40h
rep movsb

mov cx,01a9h
loader_wait:
    mov ax,0004h
    call 5d6f:1a43        ; music update
    poll keyboard port 60h for ESC
    wait for vertical retrace at 03dah
    loop loader_wait

Because ds=0020h, si=8795h maps to expanded EXE+0x8b95.

Embedded S3M And Player Dispatcher

The embedded song starts at expanded EXE+0x70580. The SCRM signature is at expanded EXE+0x705ac.

Parsed header:

title:       empty
orders:      8
instruments: 17
patterns:    6
flags:       0000h
tracker:     1300h
sample type: 0002h
global vol:  64
speed:       6
tempo:       125
master vol:  176
orders:      04 02 00 01 01 03 05 ff
channels:    0, 9, 10, 3, 4, 13, 14, 7

The active sample instruments are small and all sample data falls inside the embedded module:

#01 Longjamp.995  "Longjam productions:"  len 1112  data +0x16c0
#02 x424906x.000                         len  588  data +0x1d20
#03 x137248x.000                         len  902  data +0x2170
#04 x195036x.000                         len 1200  data +0x2700
#05 x621491x.000                         len  812  data +0x2db0
#06 x839039x.000                         len  370  loop 6..370
#07 x813954x.000                         len  868
#08 x924512x.000                         len  824
#09 x565584x.000                         len   56  loop 24..56
#14 x011939x.000                         len 1114  loop 6..1114
#15 x693530x.000                         len  946  loop 14..946
#16 x608644x.000                         len  932  loop 758..932
#17 x215427x.000                         len 1110

The important byte-order point is that S3M sample pointers are a high byte plus a low word. For instrument 1, pointer bytes 00 6c 01 mean paragraph 016c, not little-endian 016c00.

All calls from the scene driver use:

call 5d6f:1a43

At expanded EXE+0x5f333, that target immediately retfar-jumps to the real dispatcher entry:

push 5d6fh
push 1a4ah
retf

The dispatcher at expanded EXE+0x5f33a treats AL as a command selector:

sti
cmp al,0ah
ja  retf
mov si,ax
and si,00ffh
add si,si
mov si,cs:[si+1546h]     ; jump table in the driver segment
jmp si

The jump table entries actually used by the intro are:

command 1 -> expanded EXE+0x5f34f  initialize selected sound device
command 7 -> expanded EXE+0x5f43b  bind and parse S3M module segment
command 2 -> expanded EXE+0x5f54e  start playback/update machinery
command 4 -> expanded EXE+0x5f5d3  per-frame player catch-up/update
command 3 -> expanded EXE+0x5f56a  stop/restore timer or device path

The command 7 module parser is recognizable as an S3M loader. It stores DX as the module segment, reads order/instrument/pattern counts at DS:20h, reads speed and tempo at DS:31h..32h, scans the 32 channel bytes at DS:40h, copies instrument metadata, and follows order values while skipping FEh and stopping at FFh.

The command 4 path is why the visual code keeps calling the dispatcher in wait loops and once per main frame. Depending on the selected sound device, it reads timer/DMA position, computes how many mixer chunks are due, and runs tracker row/effect code. The detailed audio mixer is large, but the scene-side contract is simple: call command 4 frequently enough to keep playback moving.

Main Stick State

After the loader still, the intro returns to mode 13h and initializes the stick sequence:

mov ax,0013h
int 10h

mov dword cs:[0e559h],000008a5h  ; runtime offset of first stick record
mov dword cs:[0e55dh],00000000h  ; record index / major-frame counter
mov byte  cs:[013ah],0ffh        ; line color
mov word  cs:[0e561h],0001h      ; interpolation phase

cs:[08a5h] is a runtime offset in the main 20h segment. The matching file offset is expanded EXE+0x0ca5. The record layout is:

record size:      0x30 bytes
point size:       4 bytes = uint16 x, uint16 y
points/record:    12
record count:     0x2b6 = 694
file range:       expanded EXE+0x0ca5..0x8ec5

The tail of this coordinate stream overlaps the first 8,000 byte loader/still image. That is normal 64K intro space sharing: the same bytes are used as geometry for the late stick frames and as image data for a separate mode-0Dh still.

Examples:

record 0 at expanded EXE+0x0ca5:
  (0,88) (0,144) (8,194) (0,200)
  (0,142) (0,142) (0,87) (28,79)
  (0,69) (0,69) (0,70) (0,70)

record 10 at expanded EXE+0x0e85:
  (95,32) (91,97) (110,152) (67,180)
  (130,142) (123,183) (126,56) (167,63)
  (125,68) (158,74) (103,10) (117,17)

record 200 at expanded EXE+0x3225:
  (99,45) (107,111) (101,146) (77,189)
  (129,137) (107,168) (84,85) (100,64)
  (107,73) (137,64) (98,28) (110,26)

The edge topology is fixed. Each edge is described as a pair of point indexes inside the current 12-point record:

0-1, 1-2, 2-3,
1-4, 4-5,
0-6, 6-7,
0-8, 8-9,
0-10, 0-11, 11-10

That gives the familiar stick/body structure plus a small triangle. The data records move the points; the code never changes the graph.

Endpoint Loader

The small endpoint helper at expanded EXE+0xf656 loads two points from the current 48-byte record and writes them into the line-drawer variables:

; ESI = runtime offset of current record
; EBP = byte offset of first point in record
; EDX = byte offset of second point in record

movzx eax,word cs:[esi+ebp]
mov   cs:[013bh],eax       ; x0

movzx eax,word cs:[esi+ebp+2]
mov   cs:[013fh],eax       ; y0

mov ebp,edx

movzx eax,word cs:[esi+ebp]
mov   cs:[0143h],eax       ; x1

movzx eax,word cs:[esi+ebp+2]
mov   cs:[0147h],eax       ; y1
ret

The raw frame path at expanded EXE+0xf2e0 calls this helper twelve times with the edge offsets listed above, then calls the line drawer after each endpoint load:

mov esi,cs:[0e559h]
mov es,6098h               ; offscreen buffer

edge 0:  ebp=00h, edx=04h, call 0xf656, push cs, call 0x897
edge 1:  ebp=04h, edx=08h, call 0xf656, push cs, call 0x897
...
edge 11: ebp=2ch, edx=28h, call 0xf656, push cs, call 0x897

add dword cs:[0e559h],30h  ; next record
inc dword cs:[0e55dh]      ; major-frame counter
cmp dword cs:[0e55dh],02b6h
jb  frame_present

The odd-looking push cs; call 0x897 pairs with the line routine's retf. The near call pushes the return offset and the explicit push cs supplies the return segment.

Line Drawer Inner Loop

The line drawer begins at expanded EXE+0x897. Its live input variables are in the main segment:

cs:[013ah]  color byte
cs:[013bh]  x0
cs:[013fh]  y0
cs:[0143h]  x1
cs:[0147h]  y1
cs:[0177h]  200-entry dword row table, y * 320
ES          offscreen segment, usually 6098h

It computes signed deltas and step signs first:

eax = x1 - x0
cs:[014fh] = eax          ; dx
cs:[0157h] = +1, -1, or 0 ; x step sign

eax = y1 - y0
cs:[0153h] = eax          ; dy
cs:[015bh] = +1, -1, or 0 ; y step sign

abs(dx) -> cs:[014fh]
abs(dy) -> cs:[0153h]

Then it chooses the major axis:

if abs(dy) > abs(dx):
    go to y-major path
else:
    use x-major path

For x-major lines, it precomputes an 8-bit fixed-point y increment:

eax = abs(dy)
eax <<= 8
edx = 0
div dword cs:[014fh]      ; divide by abs(dx)
cs:[0173h] = al           ; fractional byte
sar eax,8
cs:[016fh] = eax          ; integer y step, normally 0 for x-major

ecx = abs(dx)
if ecx == 0:
    ecx = 1

The positive-y x-major pixel loop is:

dh = cs:[013ah]           ; color
dl = 0                    ; fractional accumulator
eax = x0
cs:[0163h] = eax          ; current x
ebp = cs:[0157h]          ; x step
ebx = y0                  ; current y

loop:
    if 0 <= ebx <= 199 and 0 <= cs:[0163h] <= 319:
        eax = ebx
        eax = cs:[eax*4 + 0177h]  ; y * 320
        eax += cs:[0163h]
        es:[eax] = dh

    dl += cs:[0173h]
    ebx += cs:[016fh] + carry
    cs:[0163h] += ebp
    loop

For negative-y x-major lines, the loop is the same except the carry is applied with sbb ebx,cs:[016fh], moving the y coordinate downward when the fractional accumulator overflows.

The y-major half mirrors this. It divides (abs(dx) << 8) / abs(dy), keeps the fractional byte in cs:[0173h], walks y by +1 or -1, and applies adc or sbb to the x coordinate as the error byte overflows.

The important details:

Morph/Interpolation Pass

The intro does not simply draw one 48-byte record per displayed frame. The state variable cs:[0e561h] controls a multi-frame interpolation cycle.

When phase is 1, the raw path draws the current record, then advances cs:[0e559h] by 0x30 and increments the major-frame counter. On subsequent visual frames, the path at expanded EXE+0xec23 reads endpoints from the previous record and the next record and blends them before calling the same line drawer.

For each edge:

cs:[0e573h] = first point offset in record
cs:[0e577h] = second point offset in record

sub cs:[0e573h],30h
sub cs:[0e577h],30h
call 0xf656              ; read previous-record endpoints into line vars
save x0,y0,x1,y1 into temporary dwords at e563,e567,e56b,e56f

add cs:[0e573h],30h
add cs:[0e577h],30h
call 0xf656              ; read next-record endpoints into live line vars

blend temporaries with live line vars according to phase
call line drawer

The blend weights are implemented by repeated adds and shifts, with no multiply instruction:

phase 3: (7 * previous + 1 * next) / 8
phase 4: (3 * previous + 1 * next) / 4
phase 5: (5 * previous + 3 * next) / 8
phase 6: (1 * previous + 1 * next) / 2
phase 7: (3 * previous + 5 * next) / 8
phase 8: (1 * previous + 3 * next) / 4
phase 9: (1 * previous + 7 * next) / 8

So each major 48-byte record is turned into a smoother sequence of line positions. The "classic" part of this loop is that everything is done with:

There is no object parser, matrix stack, span filler, or polygon setup here. It is a deliberately small animation engine.

Frame Scheduler And Backbuffer

The main frame-present block starts at expanded EXE+0xf419.

First it copies the prepared offscreen page at segment 6098h to VGA memory:

mov ax,0a000h
mov es,ax
xor di,di
mov cx,3e80h

mov ax,6098h
mov ds,ax
xor si,si
rep movsd                ; 0x3e80 dwords = 64,000 bytes

Then it waits for vertical retrace:

mov dx,03dah
wait_not_retrace:
    in al,dx
    test al,08h
    jnz wait_not_retrace
wait_retrace:
    in al,dx
    test al,08h
    jz wait_retrace

After the displayed frame is safely on screen, it rebuilds the offscreen page for the next frame. The state byte cs:[0e558h] selects one of a few sparse 64,000 byte background pages:

state 1 -> segment 0f4ah -> expanded EXE+0x0f6a0
state 2 -> segment 1eebh -> expanded EXE+0x1f0b0
state 3 -> segment 3e2dh -> expanded EXE+0x3e4d0

Each selected page is copied to segment 6098h with:

mov es,6098h
mov ds,source_segment
xor esi,esi
xor edi,edi
mov ecx,3e80h
rep movsd

Those pages are almost binary masks. In the expanded file, each has only values 00h and ffh; their nonzero byte counts are small:

expanded EXE+0x0f6a0  2,144 nonzero bytes
expanded EXE+0x1f0b0    358 nonzero bytes
expanded EXE+0x3e4d0  1,594 nonzero bytes

There is also a similar block at segment 2e8ch (expanded EXE+0x2eae0), but the recovered state dispatch does not appear to select it during the main path. It looks like a leftover or unused still/background.

The page state changes at exact major-frame counts:

if cs:[0e55dh] == 0086h: cs:[0e558h] = 2
if cs:[0e55dh] == 0208h: cs:[0e558h] = 1
if cs:[0e55dh] == 021eh: cs:[0e558h] = 3

The music update command is called once per normal frame:

mov ax,0004h
call 5d6f:1a43

Finally, the code checks the keyboard controller data port directly:

in  al,60h
cmp al,01h               ; ESC scancode
jne next_stick_frame

Interstitial Stills

At three major-frame counts, the intro temporarily interrupts the stick mode with a still image or end image. These only trigger when the interpolation phase has returned to the raw-record phase, so they do not happen halfway through a morph.

At record 0x6e:

mode 0Dh
copy 0x1f40 bytes from 0020:0a6d6h -> A000:0000
wait 0x00c8 retraces, calling player command 4 each retrace
return to mode 13h

At record 0x193:

mode 0Dh
copy 0x1f40 bytes from 0020:0c617h -> A000:0000
wait 0x00c8 retraces, calling player command 4 each retrace
return to mode 13h

At record 0x208:

mode 13h
copy 0xfa00 bytes from 4dce:0000h -> A000:0000
wait 0x0064 retraces, calling player command 4 each retrace
return to mode 13h

The corresponding expanded-file offsets are:

0020:0a6d6 -> expanded EXE+0x0aad6
0020:0c617 -> expanded EXE+0x0ca17
4dce:0000 -> expanded EXE+0x4dee0

Again, the stills are sparse images. The two mode-0Dh pages are 8,000 byte chunks. The final mode-13h page is a full 64,000 byte page with 2,689 nonzero bytes and only two byte values.

Cleanup

Normal completion or ESC jumps to expanded EXE+0xf68c:

mov ax,0003h
call 5d6f:1a43           ; stop/restore player path

mov ax,0003h
int 10h                  ; text mode

mov ah,4ch
int 21h                  ; return to DOS

The direct BIOS mode reset is a good sign that the intro is otherwise keeping hardware state simple: there is no protected-mode shutdown, no VBE state, and no chained planar VGA state to unwind.

What Each Part Does

At a practical level, the intro is built from these parts:

The core idea is almost brutally small: draw a fixed graph over a moving point set, interpolate between records, and occasionally swap the sparse background page or show a still. That simplicity is why the inner loop is worth studying. It gets a full recognizable animated figure sequence out of a tiny amount of code and a very compact coordinate stream.

Residual Caveats

The visual path is mapped in detail, and the player command contract is clear. I did not fully reverse every hardware-specific player backend. The code has separate paths for GUS, AdLib, Sound Blaster, Sound Blaster Pro, and SB16, and the mixer/effect code is large enough to deserve a separate audio-focused pass. For this analysis, the important scene-facing behavior is the command interface and its timing contract with the visual loop.