Analysis model: gpt-5.5 xhigh
Semtex City by Jeskola and Complex - Technical Dissection
Semtex City won the Juhla 1995 PC demo competition with 517 points. The
original note says Jmagic wrote its code and twelve-channel music during the
night before the party; Kowtow and Jate supplied graphics, and Reward of
Complex supplied the vector logo. That one-night origin is visible in a demo
which is both coherent and openly rough-edged.
The production has a fixed magenta visual system rather than a collection of unrelated effect screens. A persistent Jeskola header and footer frame gold aircraft, a pale shaded solid, a painted portrait, a particle vortex and a long sequence of modeled fragments. In the latter half a directly stored face profile divides the screen while hands, feet, abstract letter-like solids and the returning aircraft move through the other side.
This is a genuine full MS-DOS demo, not a cracktro, intro, dentro, invitation, slideshow or musicdisk. Its executable is RNC-packed, restores to a half- megabyte protected-mode program, contains four directly decodable RIX3 assets, and drives an external 499,270-byte twelve-channel MOD through the Gravis UltraSound path.
Release year: 1995
Sources Checked
- Demozoo production record
- Juhla 1995 results
- Pouet production record
- Original Scene.org party archive
- The original
SEMTEX.EXE,SEMTEX.MOD,SEMTEX.TXTandFILE_ID.DIZ - The restored executable image and all four embedded RIX3 records
- Structural parsing of the complete twelve-channel module
- A complete silent run from DOS launch to the program's normal DOS return
Demozoo records the production as a Jeskola and Complex MS-DOS demo released
14 January 1995, and the official result gives it first place with 517 points.
The archive's DIZ calls it Semtex city by J!P. The original note is more
specific about how it was made:
Coded in just one day (actually during the night before Juhla'95)
So stop complaining.
The article takes that warning seriously without using it as an excuse. The runtime is followed completely, and claims about the file structure are checked against the original bytes.
Complete Credit And Origin Check
SEMTEX.TXT supplies the concise authored ledger:
| Contributor | Credited role | Individual origin evidence |
|---|---|---|
| Jmagic / Jeskola | Code and music | Demozoo's individual Jmagic profile gives Jyväskylä, Central Finland. |
| Kowtow | Graphics | Demozoo's individual Kowtow profile states Finland. |
| Jate | Graphics | Demozoo's individual Jate profile gives Jyväskylä, Central Finland. |
| Reward / Complex | J!P vector logo | Demozoo's individual Reward profile states Finland. |
The executable's internal Finnish credit text agrees: code is assigned to
TAIKA JIM, colours to Jate and Kowtow, and MUHINA to Reward of Complex.
No separate replay-library contributor is named in the original note,
executable text or structured production credits, so one is not invented.
Every explicitly credited person is documented individually as Finnish.
Exact Original Package
The Scene.org party ZIP is 448,941 bytes with SHA-256:
4a78f1f3720ef15d019d0e20b98cbfce4be358b6713370ac41658dd7c506b84f semtex.zip
It contains four files:
| File | Size | SHA-256 |
|---|---|---|
SEMTEX.EXE |
106,854 | fc26952c5c69bc65fb70f83272320c74815eb5089b0f697d4230780d2472794b |
SEMTEX.MOD |
499,270 | 476dc5ae2f2b47f6c8d44e196e6c6f49995f0d6b22138c8616c07c6c28bdf43c |
SEMTEX.TXT |
291 | c051c6895762508271fd29d2f8514b0f3eddf41971ee1c1e468f1e13961536a2 |
FILE_ID.DIZ |
18 | 89212eb1a4aa1b997b60b53fc7c2dafe8f1a001d328fdf466d32eb5b083d2301 |
The executable opens the literal filename semtex.mod; the music is not a
later rip placed beside an unrelated visual program. The direct run used
exactly this four-file package.
RNC1 From 106,854 To 501,812 Bytes
The distributed executable is a complete 106,854-byte MZ. Its load image
starts with an RNC\x01 record at physical offset 20h. That record declares
501,572 unpacked bytes and 105,940 compressed bytes. Adding the restored
program's 240-byte MZ header to the first number gives exactly 501,812 bytes.
UNP run inside DOS restores that image without modifying the original archive. The restored SHA-256 is:
c362c24b78ac78aaa62d6ce65b3cbdbff797f9be46ab2e28385978706ff01e9c restored SEMTEX.EXE
Its MZ header now declares the complete 501,812-byte file, a 240-byte header,
53 relocations and physical entry point 04C7h. The packed file had a
32-byte header, no relocations and an entry near its far end. This is a clean
packed-to-restored relationship, not an inferred payload size.
The restored root contains the full set of 386, DPMI and VCPI diagnostics: failure to detect a 386, inability to enter 32-bit protected mode, descriptor exhaustion, A20 failure and incompatible VCPI interrupt mappings. Semtex City is therefore a 32-bit protected-mode DOS program reached through a small real-mode setup, not a Windows binary or captured video playback.
Recovering The Actual Program From The Extender
The restored MZ is not one flat 501,812-byte address space. Its 240-byte header contains 53 relocation records. Following those records exposes the important segment boundaries instead of disassembling pictures as code:
| Runtime segment | Restored file base | Role established from code |
|---|---|---|
0796h |
07A50h |
Demo code, sine table, controller state and timer callback |
0E26h |
0E350h |
160x200 portrait RIX3 |
22A9h |
22B80h |
320x200 profile-divider RIX3 |
327Ah |
32890h |
320x200 persistent Jeskola layout plus particle field |
427Ah |
42890h |
Normal renderer work page |
522Eh |
523D0h |
History page used by the blurred compositor |
6854h |
68630h |
Gold-aircraft model |
6D1Fh |
6D2E0h |
Pale/anatomical model |
71F5h |
72040h |
Large fragment-montage model |
78DEh |
78ED0h |
356x16 glyph RIX3 |
Two relocated far-call wrappers at restored offsets 0F70h and 0F76h
enter 0796:5CB2 and 0796:5D60, physical offsets 0D702h and 0D7B0h.
The first scales model coordinates and builds renderer state. The second is
the complete authored show controller. This is the boundary the earlier page
missed: the protected program is still ordinary segmented 16-bit code which
uses 386 operand/address prefixes for 32-bit fixed-point arithmetic.
The initial model pass is exact. It multiplies all 6854h model coordinates
by 32 and all 6D1Fh coordinates by 16. It then walks the three object
descriptors, transforms their vertices, builds the face lists and enters the
main routine. The third model is already stored at its intended scale.
The Complete Timer-Driven Scene Controller
Semtex City does not infer its cuts from screenshots and does not use MOD
orders as an unproven scene clock. The timer IRQ at file offset 0C7D1h
invokes the callback at 0CB50h. That callback advances active objects'
three 32-bit positions and three 16-bit angles, handles optional palette and
face-count changes, and increments two counters at code-segment offsets
153Eh and 1540h.
The two model loops at 0D6B6h and 0D6DAh keep rendering until 1540h
reaches the literal count loaded in CX. Text and the portrait field wait on
153Eh. Reading every call in 0D7B0h..0DCD9h gives the following complete
schedule:
| Authored phase | Active path/model | Literal tick budget |
|---|---|---|
| Opening prose and credits | glyph renderer | 350 |
| Gold aircraft | normal compositor, model 6854h |
770 + 630 = 1,400 |
| Interstitial prose | glyph renderer | 350 |
| Pale morphing/anatomical solid | normal compositor, model 6D1Fh |
2,030 + 105 = 2,135 |
| Portrait, vortex and particle dissolution | dedicated feedback engine | 700 + 700 + 420 = 1,820 |
| Early profile-divider fragments | history compositor, model 71F5h |
350 + 1,400 + 25 + 50 + 80 = 1,905 |
| Hands, feet and later anatomy | history compositor, model 6D1Fh |
1,890 + 105 = 1,995 |
| Gold-aircraft reprise | history compositor, model 6854h |
980 |
| Final prose | glyph renderer | 350 |
Those constants total 11,285 timer ticks. At the approximately 60 Hz cadence measured in the clean run they account for 188.1 seconds, agreeing with the roughly 189-second authored program between its initial and final capture boundaries. This numeric agreement is also a useful check on the routine identifications: the list is not a set of guessed scene names pasted onto unrelated calls.
The controller explicitly enables and disables three 56-byte object descriptors. Each descriptor contains a model segment, current and per-tick XYZ positions, current and per-tick XYZ angles, and a winding flag. The later aircraft is therefore the same model re-enabled by the program, not a second stored animation.
Three Indexed Triangle Models
Each model segment starts with the same compact header: vertex count, triangle count, vertex-array offset, face-array offset and normal-array offset. The array sizes land immediately before the next relocated segment, leaving only small alignment gaps:
| Model | Vertices | Triangles | Vertex data | Face data | Normal data |
|---|---|---|---|---|---|
Gold aircraft, 6854h |
775 | 1,289 | 000Ah |
1234h |
3A7Ch |
Pale/anatomical model, 6D1Fh |
712 | 1,396 | 000Ah |
10BAh |
3C5Ah |
Fragment montage, 71F5h |
1,014 | 2,012 | 000Ah |
17CEh |
56AEh |
A vertex and a normal are each three signed 16-bit words. A face is eight
bytes: a flag/material word followed by three vertex indices. These are not
labels inferred from the pictures. The controller begins with only 6854h
enabled, switches to 6D1Fh, then to 71F5h, back to 6D1Fh, and finally
back to 6854h; the direct run supplies the visual names in precisely that
order.
The frame builder at 0D515h supports as many as three active descriptors,
although this production normally selects one. For each active model it loads
the descriptor's translation, angles, velocity and winding flag, transforms
all vertices, culls its triangles and appends visible faces to one shared
list. That shared list is why the renderer can handle multiple objects without
a separate polygon engine for every scene.
Q15 Rotation, Lighting And Perspective
The matrix builder at file offset 0C9ECh is integer code. Each angle is
masked to 11 bits, giving a 2,048-step turn. The sine table begins at the code
segment base; cosine is the same table 512 entries later, exactly one quarter
turn. The nine Euler-matrix terms are products shifted right by 15:
angle_index = (angle >> 4) & 0x07ff
s = signed_word[angle_index]
c = signed_word[angle_index + 512]
matrix_product = (term_a * term_b) >> 15
The vertex routine at 0C8D0h first rotates the stored normal and preserves
its transformed Z contribution for lighting. It then rotates the position,
adds the descriptor translation and leaves three signed 32-bit fixed-point
coordinates. No floating-point instruction is involved in this path.
Projection at 0CCF7h uses a literal focal factor of 256. After subtracting
the camera Z, the screen coordinates are:
screen_x = (rotated_x * 256) / depth + 160
screen_y = ((rotated_y * 256) / depth * 3) / 4 + 100
The 3/4 term corrects the vertical scale for the 320x200 VGA display. A
separate depth word is retained for sorting. The transformed normal is scaled,
clamped to 0..255, passed through a 256-word shade table, clamped once more,
and combined with the current palette bank. Thus the changing brightness on
the aircraft and anatomy is per-vertex calculated shading, not an animated
palette painted into the model.
Culling, Nineteen-Pass Depth Sort And Span Filling
The face builder at 0D36Fh calculates the signed projected area directly:
area = (y3 - y1) * (x2 - x1) - (y2 - y1) * (x3 - x1)
It accepts one sign or the other according to the model descriptor's winding flag, rejects faces beyond its depth bound, and stores the three projected vertex indices with the summed depth and material bit. This accounts for both the stable solid surfaces and the occasional deliberate-looking inside-out fragments when the alternate winding flag is used.
The sorter at 0D54Fh is especially characteristic code. It starts with mask
00080000h and performs a stable forward/backward partition of every visible
face record. It then doubles the mask and repeats until carry, rebuilding the
list after each bit. In other words, it is a 19-pass binary radix sort over the
packed depth key, terminated by a FFFFFFFFh sentinel. The painter's order is
constructed explicitly; it is not an incidental order from the model file.
The sorted renderer at 0D2D2h retrieves each triangle's three projected
coordinates and interpolated shade values, then calls the filler at 0CFB0h.
The filler sorts the vertices by Y, clips to scanlines 1..201, computes the
left and right edge steps in 16.16 fixed point, and passes spans to the small
writer beginning at 0CE50h. Its hot pair-pixel loop is:
pixel0 = high_byte(colour_accumulator)
colour_accumulator += colour_step
pixel1 = high_byte(colour_accumulator)
colour_accumulator += colour_step
write_word(pixel0 | pixel1 << 8)
Odd leading and trailing pixels are handled separately. This is the inner loop behind the smooth gold, cyan and magenta gradients: the colour index is interpolated across every horizontal span while two pixels are stored per iteration.
The Two Frame Compositors
The normal model loop calls 0D5DCh. It waits for the timer, copies exactly
48,640 bytes from the work page to VGA offset 2F80h, then restores that work
page from RIX3 pixels beginning at 328Ah in segment 327Ah:
2F80h bytes = 38 * 320
48,640 bytes = 152 * 320
Only rows 38 through 189 are replaced by moving geometry. The RIX-authored Jeskola header above and footer below remain untouched. This is the concrete reason the frame is persistent; it is not merely observed to look stable.
The later loop substitutes 0D614h. For 200 rows it processes 64 dwords,
exactly 256 pixels, from the current and history pages:
history4 = ((current4 + history4) >> 1) & 3F3F3F3Fh
Both inputs stay below 64, so the packed addition cannot carry between pixel bytes. A 200-entry offset table then chooses a different horizontal start and width for every scanline before the history page is copied to VGA. The late profile montage therefore combines genuine 50/50 temporal accumulation with a per-row horizontal distortion; “motion blur” is not only a label painted into its background.
Portrait And Particle Feedback Inner Loops
The dedicated routine at 0E0A4h explains the portrait scene without relying
on the capture. It clears three 64K/working regions, then performs fifteen
construction passes. Each pass seeds 400 random bytes with 7Fh, seeds 300
more in a second region with 33h, and walks a full 65,536-byte wraparound
buffer using:
field[i] = ((field[i - 1] + field[i]) >> 1) & 3Fh
It uploads the portrait palette and copies 160 pixels on each of 198 rows from
the portrait RIX to the left half of VGA. The right half comes from 0DFCCh.
For 112 generated samples on each of 200 rows that routine performs a
table-driven lookup into the particle field and applies:
new = ((source + 3 * history) >> 2) & 1Fh
new |= 80h
The display routine at 0E01Ah duplicates every generated byte horizontally
with a word store and uses another per-row offset table to vary the field's
width and start. Its first two stages run for 700 ticks each; the third removes
800 random points per iteration for 420 ticks. Those three literal waits are
the tightening vortex, bright particle field and final dissolution seen beside
the stored child portrait.
Text Renderer And Normal Return
The text renderer at 0CC21h uses the relocated 78DEh glyph segment rather
than BIOS fonts. Each glyph is 11x16 pixels in a 356-byte source row; value
0Bh is transparent and every other covered pixel is written as palette index
0Ch. A space advances 11 pixels, carriage return resets X and advances Y by
18, and the renderer waits three timer ticks between characters. Its caller at
0D791h holds each completed page for 350 ticks.
After the last page the controller copies every VGA row four bytes to the left, 33 times, producing the final lateral wipe. It clears the screen, programs the last text colour, restores the original timer vector and PIT, returns to BIOS mode 3 and executes a far return to the extender. The clean DOS return is therefore paired in code with the direct run; it is not merely the absence of a crash.
Gravis UltraSound Path Kept Silent
The executable prints Initializing music replay, opens semtex.mod, reads
ULTRASND, and contains manual port and IRQ selectors for cases where the
environment variable is absent. It reports that at least 512 KiB of GUS RAM is
needed. Its module recognizers include 12CH, 6CHN and 8CHN, matching the
unusual actual channel count rather than assuming every .MOD is four-channel.
The verified runtime used ULTRASND=240,3,3,5,5 with a GUS-compatible guest.
The host audio driver was a dummy sink. Thus the guest's intended replay and
timing path ran, but no music was played to the user or recorded in the
capture.
Four Direct RIX3 Resources
The restored executable contains four valid ColoRIX-style records. Each has a
RIX3 signature, little-endian dimensions, 768 palette bytes and an indexed
pixel plane:
| Restored offset | Dimensions | Runtime role |
|---|---|---|
0E350h |
160×200 | Painted half-width child portrait |
22B80h |
320×200 | Profile-divider layout with Motion Blur markings |
32890h |
320×200 | Jeskola header, magenta field and footer frame |
78ED0h |
356×16 | Lowercase and punctuation glyph strip |




These decodes resolve several visual ambiguities. The child is stored only as a 160-pixel-wide half-screen, so the moving vortex beside it is generated. The later outlined face and small labels are one authored 320×200 background, not lines redrawn for every modeled object. Likewise, the top banner and bottom signature persist because they are a reusable background page.
Opening Text Is Part Of The Layout
The demo begins by placing Finnish prose into the magenta framed page. In rough English it proudly announces that Jeskola Productions is diluting or spoiling the party with the Semtex City demo and asks whether one's family will be protected from Semtex. It then prints the credits.
This screen is held for about twelve seconds. It is not a stalled load or a duplicated capture frame: the same loaded frame remains intentionally visible while the external module advances. The custom glyph strip and embedded text make the typography part of the executable's authored system.
The Gold Aircraft

A gold aircraft enters as thin projected slices, resolves into a recognisable fuselage, wings and projecting spars, then turns across multiple axes. Smooth intensity changes across its surfaces make the object read as shaded polygon geometry rather than an indexed sprite. The background stays byte-stable while the object crosses it, agreeing with the reusable RIX3 page.
The model is allowed to clip against the top and right edges. Its occasional long spans and disconnected pieces are visible limitations of the overnight renderer/model data, not GIF corruption. The complete runtime later brings the same object back, which proves it is a deliberate visual motif rather than a failed first scene.
Pale Morphing Solid

After another text card, a cyan-white object grows from a small folded form to fill most of the viewport. It rolls, stretches and exposes lobed, hand-like and folded surfaces. The highlight remains tied to changing surface orientation while the silhouette changes continuously.
It is safest to call this a morphing shaded solid. The runtime proves a changing calculated surface, but the restored file does not preserve a useful author label for its exact topology or shading equation. Calling it a specific metaball, spline or Gouraud implementation would go beyond the recovered evidence.
Portrait, Vortex And Particle Dissolution

The 160×200 portrait locks to the left half. On the right, a purple radial field twists, tightens and breaks into hundreds of bright particles. Those points spread across the whole right side, thin into a dark starfield and eventually leave the portrait nearly alone.
This is direct image-to-code concordance. The portrait RIX contains no right- hand pixels at all, while the capture shows more than two hundred distinct frames of evolving right-hand structure. The movement is generated at runtime and composed beside the stored art.
Profile Divider And Modeled Fragments

The second full-screen RIX page changes the composition. A glowing profile line divides a dark left field from a larger right stage. On that stage, rounded blocks, tubes, letter-like pieces and jointed forms rotate, scale and cross the divider. Their pale-to-magenta gradients match the late palette but their outlines and projected faces change continuously.
The fixed profile proves useful here: the moving geometry can become very abstract without losing a stable screen coordinate system. Some forms clip hard or briefly leave only detached spans. Again, those states are present in the direct 320×200 output and were not “repaired” in the preservation GIF.

The montage becomes more recognisable in its late phase. Feet, hands, fingers and limb-like shapes rotate past the profile. They share the same renderer and palette as the abstract solids, linking the human portrait art to the calculated object system rather than switching to a slideshow of anatomy images. No additional full-screen RIX records exist to supply these poses.
Return, Credits And Normal Exit

The gold aircraft re-enters the profile layout near the end. This reprise is shorter and more fragmented, then the program clears to a final Finnish text page. The end message repeats the demo name and its one-day construction joke, holds for roughly sixteen seconds, restores DOS text mode and returns normally.
The complete clean run reaches that return without Escape or any other input. The visual program occupies approximately 8–197 seconds of the 220-second lossless recording; the remainder is deliberate capture margin and the local post-run pause, not additional demo content.
Disco Nation!: Exact Twelve-Channel MOD
SEMTEX.MOD is a complete 12-channel ProTracker-style module titled
Disco Nation!, signed 12CH at offset 1,080. Its header identifies
JMagic?/Complex! and uses sample-name text to exhort the listener to feel
the beat and move.
The song has 43 order positions and references 52 patterns:
13,14,46,5,2,9,3,7,6,6,12,15,16,17,18,19,20,21,22,22,51,
48,47,47,20,7,6,6,12,15,16,17,18,19,20,21,22,51,48,47,47,49,50
Its file structure closes exactly:
1,084-byte header
+ 52 × 64 rows × 12 channels × 4 bytes = 159,744 pattern bytes
+ 338,442 sample bytes
= 499,270 bytes
Across those patterns are 2,444 note events and 5,296 effect commands. Volume
settings and volume slides dominate, followed by extended commands, tone
portamento, vibrato and sample-offset changes. F03 supplies the prevailing
speed; two F00 commands provide stop semantics. Nothing is appended after
the calculated sample end, so the sidecar is neither truncated nor padded
with an unexplained trailer.
The visual sequence and module both end naturally, but this analysis does not claim a recovered pattern/row scene controller without a traced order read. The direct runtime establishes timing; the module parser establishes song structure. Their agreement in overall completion is evidence, not permission to invent exact synchronization points.
Capture Integrity
The clean master is a pointer-free, lossless 30 fps capture of the emulator's complete desktop. Published material crops only the 640×400 nearest-neighbour guest viewport and reduces it to the authored 320×200 image for GIFs. Six continuous excerpts contain 1,152 frames at eight frames per second. Static 640×400 inspection frames preserve exact doubled pixels.
No diagnostic contact sheet is published as a front preview. The card uses one untiled portrait/vortex still. There is no H.264/MP4, embedded video, audio element, autoplay or audible soundtrack on the page.
Inspection Stills
The continuous GIFs establish motion; these direct nearest-neighbour frames make individual surfaces and compositions easier to inspect:






Why The Overnight Winner Holds Together
Semtex City's routines are not equally polished. Objects clip, sparse spans sometimes detach, the text is irreverent, and the long profile montage freely mixes recognisable anatomy with shapes that resist identification. Those are real limits, and the original TXT warns about them before the viewer starts.
What makes the demo coherent is its reuse. One strong magenta RIX layout frames nearly everything. The portrait and profile turn static art into stable anchors for generated fields and modeled objects. The aircraft returns as a visual refrain. The twelve-channel module supplies enough duration and density for an almost three-and-a-half-minute program, while the runtime deliberately holds text pages instead of frantically replacing them.
That is also why a deep analysis is useful. A quick viewing can make the work look like a sequence of painted screens. The executable proves otherwise: only four RIX records exist, one of them merely a glyph strip. The portrait's other half, the vortex, particles, aircraft, pale solid and long anatomical montage must be constructed by the running program. For something written overnight, the division between stored design and calculated motion is both economical and remarkably clear.