Analysis model: gpt-5.5 xhigh

High Pressure by US / Razmaid and The Specialist - Technical Dissection

High Pressure is a 1995 MS-DOS 100K intro from NAID 1995. The local Scene.org 100K index lists it as High Pressure by Razmaid & The Specialist and marks it as third place. Demozoo agrees on the NAID 1995 100K intro rank and names the production as High Pressure by Razmaid and The Specialist.

The NAID 1995 result table has an important gap: Demozoo lists Floppy Disk by USED Crew as second place, but that production is marked lost and has no download on the production page. The Scene.org 100K directory used here also does not contain a Floppy Disk archive. So this writeup covers the next available ranked intro after Less is More.

The release note says the intro was written quickly during the party and that the Julia section requires a math coprocessor because it was built in Turbo C with FPU output enabled. That warning is accurate: one of the child executables is a Borland/Turbo C real-mode program with x87-heavy Julia iteration loops.

Release year: 1995.

Sources

Old personal contact details present in the original note are deliberately not reproduced here.

Archive Contents

naid_hp.zip contains:

FILE_ID.DIZ      99 bytes
NAID-HP.NFO   2496 bytes
NAID-HP.EXE  96750 bytes
TOASTAH.!!!   6663 bytes

TOASTAH.!!! is an ANSI/terminal art file. The executable work is in NAID-HP.EXE.

Hashes of the inspected files:

15ed334c32fbb68ae9429fa48e22eddb5ba332e0baf19a10ec71b2890c00f9e6  naid_hp.zip
cf1342e6ef0083690c2605e6a17c71c13dc07b47d6d8b00e43fae984c0d6af0d  NAID-HP.EXE
d0037dc46d7d5dff50260921077f3fca86f91dcd81d4d01c84f63eed8eb3ac33  NAID-HP.NFO
a2aac77219e3299dcb99f4c5ef9f55069caa9b3cb6fd43653bb1950b3c57b389  TOASTAH.!!!

Packing Layout

The shipped NAID-HP.EXE is a PKLITE-packed MZ executable. After UNP under DOSBox-X, the outer executable becomes 116,430 bytes.

Expanded outer MZ header:

file size          116430 bytes
MZ stated size      66064 bytes
header size           416 bytes
load image          65648 bytes
relocation count       95
entry CS:IP       0000:184d
entry file offset 0x19ed
SS:SP             12ed:4e20
overlay bytes       50366

That "overlay" is not passive junk. The expanded launcher carries several embedded MZ executables, and those child executables were still PKLITE-packed until extracted separately.

Child MZs recovered from the expanded launcher:

child  packed file offset  packed size  unpacked size  role
-----  ------------------  -----------  -------------  ------------------------
C1     0x0d658             0x1e24       75104          Graphic Workshop still
C2     0x0f47c             0x0d26        6800          sprite/logo mover
C3     0x10210             0x0cb6       35211          flame + x-fading text
C4     0x10ec6             0x2a2c       15104          Turbo C Julia section
C5     0x149ec             0x3574       31909          Graphic Workshop still
C6     0x17f60             0x476e       75104          Graphic Workshop still

The repeated still-image children are not a mistake. Three stages are Alchemy Mindworks Graphic Workshop self-executing picture viewers, while the custom effects are small separate programs.

Expanded child hashes:

8b7086dad58612277791cf669712a492729e085970f729fa6664f5ddae325b76  C1.EXE
c71fb5fd99d297c0704babf9922ea80a67cd900f6f4e4d9796775c2a9f688d7a  C2.EXE
d357d12cb27c175b266eedfa874b1c18b6a5e14121362e10f930c5be3f47182e  C3.EXE
9ad0c127b3865ed0ce6c8a4ea86e97208f25ec6ec730000d1b279e47a8d205a0  C4.EXE
d932d9f5d0b7ac6125972366a0ee726c9a9304dbbdd180f14634541eff8fb029  C5.EXE
dcb0d220a0b5b15c1cc884182d45b19bd064034cd4f4dda527860a47ae0c805b  C6.EXE

Launcher

The expanded launcher starts at image offset 0x184d. The bytes just before the entry point include the temporary filename string:

NAID-0.EXE

The launcher repeatedly writes a child program to that filename and starts it with INT 21h / AX=4B00. The helper at 0x170c is the child executor:

170c: push ds/es/si/di and flags
1715: mov ax,0319h
1718: mov ds,ax
171a: mov es,ax
171c: mov ax,4b00h
171f: mov dx,fa12h
1722: inc dx              ; points inside the temporary filename buffer
1723: mov bx,0004h
1726: int 21h             ; execute the rewritten child executable
172e: inc byte [fa18h]    ; stage counter

The helper at 0x1747 is the "copy a child blob into NAID-0.EXE" wrapper. It uses Borland file I/O support, but the call sequence makes the intent clear: open the temporary file, seek, write a supplied byte count, close, reopen, and write the next stage.

At the entry path:

1900: push 1e24h          ; size of first packed child
1906: call 01f4:0af3      ; write child from image data
...
193f: push 0d26h          ; size of second packed child
1946: call 01f4:0af3
...
1959: push 9600h
195c: call 01f4:028a      ; allocate 0x9600-byte work buffer
1968: push 0
196a: push c4beh
196d: push 0cb6h
1970: call 1747h          ; child at overlay offset 0x10210
1973: push 0
1975: push b808h
1978: push 3b26h
197b: call 1747h          ; child at overlay offset 0x10ec6
197e: push 0
1980: push 7ce2h
1983: push 3574h
1986: call 1747h          ; child at overlay offset 0x149ec
1989: push 0
198b: push 476eh
198e: push 476eh
1991: call 1747h          ; child at overlay offset 0x17f60

The first two packed children are inside the load image. The later four are in the overlay. The launcher therefore has two extraction styles:

This is a pragmatic party-build layout: each visual part can be a separate EXE, yet the release still appears as one executable at first launch.

Music And GUS Path

The release is GUS-or-nosound. The launcher prompts for a GUS port and IRQ, but an empty answer selects silence.

The embedded S3M starts at file offset 0x41ee:

title:       Cool!    Vive le Carnaval!
orders:      18
instruments: 12
patterns:    13
global vol:  64
speed:        6
tempo:      125

Order list:

00 01 02 03 08 04 05 06 0b 07 07 09 09 0a 0a 0c ff ff

Instrument table:

01  BRONBASS    len 2104  vol 64  c2 14100  bronto bass
02  TICK3.921   len 1536  vol 64  c2  8363  hihat
03  SNARE.4     len 4464  vol 64  c2 17091  elec snare
04  REZOSEQ.1   len  784  vol 34  c2  8363  <*>
05  REZOSEQ.2   len 1012  vol 34  c2  8363  <***>
06  REZOSEQ.3   len  924  vol 34  c2  8363  <*****>
07  REZOSEQ.4   len  742  vol 34  c2  8363  <*******>
08  REZOSEQ.5   len  862  vol 34  c2  8363  <*********>
09  PLUCK       len 2412  vol 64  c2  8203  xylo
10  BASSDRUM.6  len 4076  vol 64  c2 13150  BassDrum 6
11  PLUMP       len 7722  vol 64  c2 17090  DreamPluckSynth
12  XWAVE.3     len 3066  vol 44  c2 11310  XWave.3

The GUS code keeps the selected base port in the cedc variable range and updates voice registers by writing to base + 0x103, base + 0x105, base + 0x107, and nearby data ports. The inner setup path around 0x1600 selects a voice, computes sample start/end/frequency fields from a per-voice record at cef4 + voice * 0x14, and writes the low and high nybbles to GUS registers. It is a compact S3M/GUS player rather than a streamed software mixer.

The launcher also has palette-only transition helpers:

16b0..16dc  fill all 256 DAC entries with white
16df..1707  fill all 256 DAC entries with black
1734..1746  clear A000:0000 with 0x7d00 words
1699..16ad  update CRTC maximum scanline register 09h

Those are used between child stages to hide file rewriting and execution.

Stage C1, C5, C6: Graphic Workshop Still Images

C1, C5, and C6 are Graphic Workshop 7.0 self-executing pictures. Their headers show a 320x200 8-bit VGA image and a 768-byte palette. C1 and C6 expand to the same 75,104-byte viewer size; C5 is smaller but uses the same display runtime.

The picture viewer is generic code from Graphic Workshop. The demo-specific material is the compressed raster payload and palette, not the display engine.

The hot display paths are still worth naming.

VGA Palette Upload

The direct DAC upload starts around 0x23e6:

23e6: si = palette
23eb: cx = 0100h          ; 256 entries
23f9: cli
23fa: in  al,3cch         ; choose color/mono status port
23fe: dx = 03dah or 03bah
2408: in  al,dx
2409: test al,08h
240b: jne 2408h           ; wait out of vertical retrace
240e: out 3c6h,0ffh       ; full pel mask
2418: out 3c8h,index
2420: lodsb               ; red, 0..255
2421: shr al,1
2423: shr al,1            ; VGA DAC wants 0..63
2425: out 3c9h,al
2426: lodsb               ; green
2427: shr al,1
2429: shr al,1
242b: out 3c9h,al
242c: lodsb               ; blue
242d: shr al,1
242f: shr al,1
2431: out 3c9h,al
2433: loop 2417h

This is conventional but carefully timed: it waits for a retrace boundary before rewriting the DAC and scales 8-bit components down to VGA's 6-bit DAC range.

Fade-Out And Fade-In

The fade-out path starts at 0x2436. It copies the original 768-byte palette into a work palette at 0x0eca, then repeatedly subtracts a decreasing step from every component:

2441: push cx,dx
244d: cx = 1 << scanline_shift
246d: for each visible DAC entry:
2471:   out 3c8h,index
2481:   load work_palette[index*3+0] >> 2, out 3c9h
248b:   load work_palette[index*3+1] >> 2, out 3c9h
2495:   load work_palette[index*3+2] >> 2, out 3c9h
24ab: for 768 palette bytes:
24ab:   al = original_component
24b1:   ax -= fade_step
24b8:   clamp to 0
24bb:   store into work_palette
24c3: dec fade_step
24cb: repeat until outer count expires

The fade-in path at 0x24cf is the mirror image: it copies the palette to 0x0eca, starts with a small step, emits the work palette, then moves every component closer to its original value.

This explains why these stages can feel smoother than a static "show picture" call: the viewer spends most of its time in palette transitions rather than in new raster generation.

Stage C2: Sprite / Logo Mover

C2 is the smallest custom part. Its MZ entry is at image offset 0x0199.

Startup:

019f: mov ax,0013h
01a3: int 10h             ; 320x200x256
01a7: int 1ah             ; BIOS ticks
01a9: store start tick
01af: es = 1189h
01b3: eax = 0
01b8: cx = 3e80h
01bb: rep stosd           ; clear 64,000-byte work buffer
01be: es = 2189h
01c8: cx = 3fffh
01cb: rep stosd           ; clear second work area
01ce: call 03a3h          ; palette
01d1: call 03bdh          ; build sprite directory
01d4: call 0a9ch          ; setup/data helper

The palette writer at 0x03a3 writes 0xde bytes to ports 3c8h/3c9h, then emits a final white RGB triplet.

Sprite Directory Builder

The builder at 0x03bd constructs 19 sprite records in segment 0189h. Each record contains:

It samples a source character/sprite table at 0x0bd8. The code treats it as a 0x4a by 0x2c source atlas and rescales each sprite record:

03c8: si = record_index
03d3: al = source_width
03dc: al = source_height
03e7: save output pointer in directory
0414: eax = y * 0x2c / source_height
042a: eax = x * 0x4a / source_width
043e: eax *= 0x2c
0449: eax += scaled_x
044c: si = 0x0bd8 + scaled_offset - 0x2d
0459: movsb              ; copy one sampled byte
045a: x++
0465: compare x with width
0473: y++
0478: compare y with height
0486: repeat for 19 records

This is nearest-neighbor scaling done once at startup. The runtime sprite draw loop can then blit fixed-size sprite bitmaps.

Main Motion Loop

C2 runs for about 0x10e BIOS ticks. At 18.2 ticks per second, that is roughly 14.8 seconds:

01d7: int 1ah
01db: dx -= 010eh
01df: compare with start_tick
01e4: if expired, exit

The object state is stored in code-segment tables:

cs:0026..  word positions
cs:429e..  signed per-axis step bytes
cs:00f9    current sprite index
cs:00f7    current y
cs:00f5    current x

For every object, it updates:

  1. sprite index, bouncing between 0 and 18;
  2. y position, bouncing between 0 and 200 - sprite_height;
  3. x position, bouncing between 0 and 320 - sprite_width;
  4. destination offset y * 320 + x;
  5. sprite blit into the work buffer.

The x/y bounce logic is simple and tight:

0252: load current position
025f: load signed step byte
0267: cbw
0268: add bx,ax
027e: compare with max
0282: clamp to max
0289: if moving outward, negate step and store it
028c: compare with zero
0291: clamp to zero
0299: if moving outward, negate step and store it
029c: store new position

The sprite blitter at 0x0362 uses zero as transparent:

036e: ds = 0189h
0371: si = sprite_directory + sprite_index * 4
0376: load bitmap pointer
037a: load width
037d: load height
0381: for each row:
0383:   lodsb
0384:   cmp al,0
0386:   if zero, skip write but advance di
0388:   stosb
0389:   next column
0392:   di += 320 - width
0398:   next row

After all objects are drawn, the frame is copied to VGA and the work buffer is cleared:

0337: cx = fa00h          ; unused setup value left by compiler/hand mix
033a: es = a000h
033f: ds = 1189h
0344: si = 0
0346: di = 0
0348: cx = 3e80h
034b: rep movsd           ; 64,000 bytes to A000h
034e: es = ds
0350: eax = 0
0355: cx = 3e80h
0358: rep stosd           ; clear work buffer
035b: jump to timer loop

C2 is basically a logo/sprite field. Its charm is not in a complex algorithm but in how little code it uses: pre-scale glyphs once, bounce a small list of objects, draw transparent sprites into an offscreen buffer, then use a 386 rep movsd copy for the frame.

Stage C3: Flame And X-Fading Writer

C3 is the most classic custom part. It is a Mode 13h fire buffer plus a text mask crossfade. The shipped note says the "flame with the x-fading writer" can misbehave on some machines when GUS is enabled; this child is that section.

Startup:

0000: cx = 0300h
0003: ds:si = palette pointer
000d: for 768 bytes: al = *si++ >> 2, *di++ = al
0015: write the normalized palette to 3c8h/3c9h
0026: call timer seed setup
0029: call text palette setup at 54ech
002c: store BIOS tick start

Fire Simulation

The fire buffer is a word grid. The stride is 0xa0 bytes, i.e. 80 word columns. The visible fire area is seeded along the bottom and then propagated upward.

The diffusion loop:

005f: cx = 162fh
0062: di = fire_buffer
0069: di += 00a0h
006d: ax  = [di-2]
0070: ax += [di]
0072: ax += [di+2]
0075: ax += [di+00a0h]
0079: ax >>= 2
007c: if ax != 0: ax--
0081: if ax != 0: ax--
0086: [di-00a0h] = ax
008a: di += 2
008d: loop 006dh

That is the old fire formula: average the horizontal neighbors plus the pixel below, then decay by up to two. Because it writes one row upward, heat injected at the bottom drifts toward the top.

The seed row:

0090: di = fire_buffer + 2bc0h
0099: cx = 50h
009e: call PRNG
00a3: dx >>= 14
00a8: if dx > 1: seed = previous ax
00ad: if dx == 0: seed = 0
00b2: else seed = current_peak at cs:8788
00ba: stosw
00bb: loop 009eh

The peak brightness ramps by 3 per frame until it reaches 0xf5:

0049: add word [cs:8788],3
004f: cmp word [cs:8788],00f6h
0058: clamp to 00f5h

Fire Display Expansion

The fire grid is lower resolution than the screen. C3 expands samples into repeated pixels while copying to VGA:

00d6: ds:si = fire_buffer
00db: es = a000h
00e0: di = a500h
00e5: bx = 42h            ; rows
00e9: read word sample A
00ef: read word sample B
00f2: dl = low byte of B
00f4: dh = dl
00f8: cx += ax
00fa: cx >>= 1            ; blend with previous sample
00fc: dl = cl
00fe: dh = dl
0102: eax = edx
0105: stosd               ; four same/near-same color bytes
0107: repeat 50h columns
010b: repeat 42h rows

This is why the fire has a blocky but smoothed look: the simulation is small, but each output write expands a value into four VGA pixels and blends adjacent samples.

Text Mask Rendering

The text routine at 0x569b renders blocky letters into masks. It first clears a 0x2f80-byte mask with 0xf7:

569b: ecx = 0be0h
56a1: eax = f7f7f7f7h
56a7: rep stosd

The glyph table has 0x24c bytes per glyph. Each character is drawn as a 21-by-28 bitmap:

56be: lodsb              ; next text byte
56c1: CR -> next line
56c5: space -> advance 15 pixels
56c9: digit handling
56d1: uppercase letter handling
5701: bx = 024ch
5704: ax = glyph_index * 024ch
5708: si = glyph_table + ax + 0234h
5711: bx = 1ch           ; rows
5714: cx = 15h           ; columns
5717: lodsb
5718: if zero -> write f7h
5721: else -> write f5h
5726: di += 012bh        ; next 320-wide row
572a: repeat row
572d: return to start of next glyph column

Two masks are rendered at different memory locations (0x878d and 0xb70d). The compositor compares them and writes the visible result into A000h:

5518/5553: es = a000h
551e:      di = 5000h
5521:      cx = 2f80h
5524:      read mask A
5533:      read mask B
553c:      if equal, write that byte
5543:      if mask B == f5h, write f6h
554c:      else write f8h
554f:      loop

The palette routine at 0x5596 then fades entries 0xf6 and 0xf8 in opposite directions. Instead of redrawing every letter with shades, it changes only two DAC entries:

55a8: dx = 3c9h
55ab: bl = 3fh - fade_step
55b0: select DAC f6h
55b4: write bl, bl, bl
55bb: select DAC f8h
55c0: write fade_step, fade_step, fade_step
55c5: fade_step++

When the fade reaches 0x3f, it flips the active mask pair and starts again. That is the x-fade: two text masks stay in RAM while the DAC entries shuttle their colors.

Stage C4: Julia / FPU Section

C4 is the section that validates the release-note warning about needing a math coprocessor. It is a Borland/Turbo C real-mode executable with x87 code in the inner pixel path.

It starts with Borland runtime setup, switches to Mode 13h, allocates frame buffers, builds a palette, and then renders Julia frames.

Memory Layout

The allocator at 0x0272 creates:

The 16 frame buffers are stored as far pointers at 0x06d4 + index * 4:

027b: push 2000h
027e: call malloc
0287: store far pointer at [06d4 + index*4]
02ae: clear 0x2000 bytes
02c7: repeat for 16 buffers
02cc: push 4000h
02cf: call malloc
02d3: store accumulator far pointer at 06d0
02f7: for 0x2000 words: store 0

0x2000 bytes is exactly 128x64. The section renders a small Julia field and then mirrors/expands it into a 320-wide Mode 13h frame.

Palette

The palette builder at 0x0314 emits 64 DAC entries:

0319: dx = 3c8h
031c: al = 0
031e: out dx,al
0323: for si in 0..63:
0326:   convert si to float
0333:   call math helper
0339:   multiply by constant at 00b2h
033e:   convert to integer red
0344:   green = si*si / 64
0351:   blue = 10 - si/6
0364:   out 3c9h, red
036b:   out 3c9h, green
036f:   out 3c9h, blue

The palette is small and numeric: the fractal section uses palette indices as iteration counts, not as pre-painted art.

Julia Escape Function

The escape routine is at 0x03e2. It receives the current complex coordinate from temporary x87 variables and iterates up to 31 times:

03e7: x = [6b8]
03f0: y = [6b0]
03f9: si = 0
03ff: x2 = x*x
040b: y2 = y*y
0417: if x2 + y2 > bailout_constant:
042a:     return si
042e: y = 2*x*y + c_im
0444: x = x2 - y2 + c_re
0457: si++
0458: if si < 31, repeat
045d: return 31

The constants are stored in data slots:

6c0h  c_im
6c8h  c_re
00c2h bailout threshold
00c6h multiplier 2.0

The use of x87 doubles inside the pixel loop is expensive, but this is a 100K party intro written quickly. It trades speed for simple C/FPU math.

Frame Renderer

The frame renderer at 0x0379 loops over a 128x64 grid:

037e: y_start = constant at 00b6h
0388: for y = 0..63:
038e:   x_start = constant at 00b6h
0398:   for x = 0..127:
039e:     call escape
03a1:     offset = y * 128 + x
03aa:     es:bx = selected frame buffer + offset
03b0:     store iteration byte
03b3:     x += step at 00beh
03c9:   y += step at 00beh

The field is not rendered directly to VGA. It is written into one of the 16 buffers, so the later display code can compare adjacent frames.

Differenced Display

The display routine at 0x0465 compares buffer n and buffer n+1 and keeps a word accumulator:

046b: current = frame[n]
0489: next    = frame[(n+1) & 15]
049d: for y = 0..63:
04a2:   for x = 0..127:
04a7:     small_offset = y*128 + x
04b2:     accum_word = accumulator[small_offset]
04c2:     a = current[small_offset]
04cc:     b = next[small_offset]
04d6:     accum_word += a - b
04e5:     accumulator[small_offset] = accum_word
04eb:     color = accum_word >> 3
04f4:     vga_offset = y*320 + x
0504:     screen[vga_offset] = color
050a:     mirror_offset = (127-y)*320 + (128-x)
0523:     screen[mirror_offset] = color

This is a clever trick. The intro does not merely show one Julia frame after another. It accumulates the difference between neighboring generated frames, then mirrors the result into the visible screen. That gives the section a more animated, pulsing look than a plain fractal plotter.

Animation Driver

The main Julia driver at 0x053d calls:

0542: set Mode 13h
0545: allocate frame buffers
0548: compute initial timing value
0560: while animation_value < limit:
056d:   compute one trigonometric term
0577:   c_re = term + scaled time
05b2:   compute another trigonometric term
05dd:   c_im = term + scaled time
05ec:   render Julia into frame[slot]
05fb:   display diff between frame[slot] and next
05ff:   read BIOS tick
061b:   delta = current_tick - previous_tick
061f:   animation_value += delta / constant
0638:   slot = (slot + 1) & 15

The loop adapts to elapsed BIOS ticks rather than assuming a fixed frame time. The result is still CPU-heavy, but the timing variable advances from measured ticks.

Static Code-Path Concordance

This pass is a static archive-to-code concordance, not a runtime-media pass. High Pressure needs that boundary because the release is a launcher plus several child executables, not one monolithic renderer. The current evidence maps the production as follows:

Evidence boundary: this section proves how the packaged stages and custom effect mechanisms fit together. It does not claim exact frame timing or visual appearance beyond what the recovered code and release note prove. A later runtime pass should use direct DOSBox/video frames near the child-stage transitions, C2 sprite field, C3 fire/x-fade text, and C4 Julia differencing without altering source frame geometry.

What Each Part Does

The practical sequence is:

  1. Launcher starts, optionally initializes GUS, and prepares the S3M.
  2. It writes a packed child to NAID-0.EXE.
  3. It executes that child.
  4. It returns, rewrites NAID-0.EXE with the next child, and repeats.
  5. Palette and screen clears hide the file rewrites.

The visible parts break down as:

C1  Generated picture viewer still.
C2  Mode 13h moving sprite/logo field.
C3  Fire simulation with x-fading text masks.
C4  FPU Julia fractal animation with frame differencing.
C5  Generated picture viewer still.
C6  Generated picture viewer still / final card.

The intro is therefore much less like a single integrated engine than many later 1995 intros. It is a small DOS stage manager around a set of quickly built parts:

That matches the release note's tone: fast party work, very little polishing, but enough good loops to earn a ranked placement.

Why It Still Matters

High Pressure is not technically clean in the way a carefully size-optimized 64K intro can be. Its construction is almost the opposite: a launcher, multiple packed children, a generated picture viewer, and a Turbo C FPU section.

But that roughness is also the interesting part. It shows a realistic 1995 party strategy:

The best inner loops are C3's fire diffusion/text x-fade and C4's Julia frame-difference display. C2 is smaller but tidy: pre-scaled sprites, bounce tables, transparent blits, rep movsd to VGA. The still-image children are not custom demo effects, but their palette handling helps the whole intro feel more coherent than the underlying file chain really is.