Analysis model: gpt-5.5 xhigh

# Assembly '92 Invitation (Fishtro) by Future Crew - Technical Dissection

`Assembly '92 Invitation`, better known as `Fishtro`, is a 1992 MS-DOS
invitation intro by Future Crew. Pouet lists it as an invitation for MS-DOS,
released in 1992, with graphics credited to Marvel. The production is unusual
for its date because it is not just a small scroller: it carries a large
appended data store, a fish-script resource language, Scream Tracker music
data, unchained VGA helpers, palette animation, CRTC panning, and several
timer/audio back ends.

Release year: 1992

The short version: `FISHTRO.EXE` is an MZ executable whose DOS load image is
only about 44 KB, while the file is about 532 KB. Almost all of the visible
show is in the appended payload. The first load image is scrambled enough that
the useful static view comes from the MZ shape, the appended payload, and the
carved resource/code structures rather than a clean entry-point disassembly.

This writeup deliberately omits old private listing material from the embedded
texts. The technical structure is enough to understand the intro.

Visual note, 2026-06-20: this article uses one Fishtro image set only: local
DOSBox-X runtime frames captured from the verified Scene.org `FISHTRO.EXE`.
Older screenshot attempts that were not tied to this executable have been
removed from the article, front page, public image list, and git.

Screenshot inventory: the current set is 12 local Fishtro runtime images: one
DOSBox-X contact sheet, one frame-derived sequence GIF, and ten timestamped
frames. All ten frames are shown in this article. The run enters Fishtro's own
setup, selects `486` and `Silence`, then advances past the Razor Europe
distribution splash into the aquarium scene. The visible references are
therefore tied to the executable analyzed below, not to an inherited screenshot
set.

## Sources

- Pouet production page:
  https://www.pouet.net/prod.php?which=1283
- Demozoo production page:
  https://demozoo.org/productions/6425/
- Scene.org archive:
  https://files.scene.org/get/demos/groups/future_crew/intros/fishtro.zip
- Scene.org file page:
  https://files.scene.org/view/demos/groups/future_crew/intros/fishtro.zip

## Visual Reference Frames

Fishtro is not structured like a short "show one effect, cut to the next"
intro. The long-running public face is a single underwater scene: an island-like
rock in the middle, speaker stacks and a shovel at the edges, many tiny fish /
object sprites, large message text, particle-style lettering, and a day/night
palette cycle. The resource and loop analysis below explains why: the appended
payload has `fish.scr`, `f*.bob`, palette chunks, and text blocks, so the scene
is a data-driven aquarium rather than a sequence of unrelated parts.

The corrected visual run used DOSBox-X `2026.01.02`, the verified Scene.org
archive hash listed below, MPEG-TS/H.264 capture, `machine=svga_s3`,
`cycles=12000`, and Fishtro's own setup path:

```text
ESC at startup -> machine type 4 (486) -> sound mode 1 (Silence)
```

That matters. Using the archived "last configuration" path stayed black after
the distributor splash in this VM, while the explicit `Silence` setup reached
the real aquarium loop. Timing zero below is the start of the DOSBox-X capture
stream, so the first few seconds include the text-mode prompt/setup and the
Razor Europe splash before the visible scene.

![Fishtro corrected DOSBox-X runtime contact sheet, captured from the verified FISHTRO.EXE with 486/Silence setup](images/fishtro-runtime-contact.png)

The GIF below is assembled from the corrected timestamped frames without
recapture, crop, or geometry changes. It is a compact guide to the aquarium
loop's visible states: dark startup, bright baseline, Future Crew title text,
large message overlays, day/night palette cycling, and the late purple text
phase.

![Fishtro corrected runtime sequence GIF from the verified DOSBox-X frame set](images/fishtro-runtime-sequence.gif)

At `00:10.000`, the main aquarium has just appeared in a dark palette. The
scene is already recognizable by the FC-shaped rock, the two speaker stacks,
the central control-panel object, the shovel at the right, and the tiny sprite
field.

![Fishtro corrected DOSBox-X runtime frame at 00:10.000 showing the dark aquarium startup](images/fishtro-runtime-00-10-000.png)

At `00:12.000`, the palette has brightened. This is the cleanest no-text
baseline for the background layer: rock, speakers, foreground sand, distant
horizon, and fish/object sprites without large lettering covering the center.

![Fishtro corrected DOSBox-X runtime frame at 00:12.000 showing the bright aquarium baseline](images/fishtro-runtime-00-12-000.png)

At `00:35.000`, the first clear title text in the corrected local run appears:
`FUTURE CREW PRESENTS:` over the same stable scene. This is now the front-page
identity anchor.

![Fishtro corrected DOSBox-X runtime frame at 00:35.000 showing Future Crew Presents](images/fishtro-runtime-00-35-000.png)

At `00:45.000`, the text layer has advanced while the background simulation is
still the same aquarium. This frame is useful because the long yellow font is
wide enough to expose the letter compositor, but not so wide that it hides the
left and right sprite margins.

![Fishtro corrected DOSBox-X runtime frame at 00:45.000 showing the wide yellow message over the aquarium](images/fishtro-runtime-00-45-000.png)

At `01:00.000`, the large white stacked text demonstrates the other main
message style. It covers the upper half of the scene, so it is a good visual
anchor for the high-priority text pass that runs over the persistent fish and
background layers.

![Fishtro corrected DOSBox-X runtime frame at 01:00.000 showing the large white stacked text overlay](images/fishtro-runtime-01-00-000.png)

At `01:30.000`, the large blue block-letter overlay is active while the same
aquarium continues underneath. This frame is useful for checking the text
renderer and palette choreography without relying on an external still.

![Fishtro corrected DOSBox-X runtime frame at 01:30.000 showing the large blue text overlay](images/fishtro-runtime-01-30-000.png)

At `01:50.000`, the sky is into the dusk part of the palette cycle with no
large text covering the center. This separates the palette machinery from the
message compositor: the background and sprites keep running even when the text
channel is between phrases.

![Fishtro corrected DOSBox-X runtime frame at 01:50.000 showing the dusk palette without a large text overlay](images/fishtro-runtime-01-50-000.png)

At `02:10.000`, the palette has shifted toward evening colours and the top
message explains that further information is on the end page. The fish and
small foreground objects are still moving inside the same persistent simulation.

![Fishtro corrected DOSBox-X runtime frame at 02:10.000 showing the evening palette and information text](images/fishtro-runtime-02-10-000.png)

At `02:30.000`, the yellow text layer and late purple palette show the
long-running message loop. This is the useful late-frame pair for the earlier
bright baseline: same state machine, different palette and message layer.

![Fishtro corrected DOSBox-X runtime frame at 02:30.000 showing the late purple palette and yellow text](images/fishtro-runtime-02-30-000.png)

At `02:40.000`, the late loop is still in the same scene but the text phrase
has advanced again. This closes the corrected visual set with a second purple
palette frame, proving that the public images are a continuous local run rather
than three unrelated Fishtro/Fistro sources.

![Fishtro corrected DOSBox-X runtime frame at 02:40.000 showing the late purple palette and continuing message loop](images/fishtro-runtime-02-40-000.png)

## Runtime-To-Code Concordance

The corrected Fishtro media set is directly tied to the verified
`FISHTRO.EXE` run described above. The stills and GIF were assembled from that
DOSBox-X capture only; this pass does not recapture, crop, pad, resize, or
otherwise touch those assets. The code mapping below is therefore about what
the existing frames prove, not about improving their geometry.

| Visual evidence | Code / data evidence | What it means |
| --- | --- | --- |
| Contact sheet, sequence GIF, and ten timestamped frames | Scene.org `fishtro.zip` hash, `FISHTRO.EXE` hash, DOSBox-X `486` / `Silence` setup path | The article is using one authoritative local runtime source, not a mixture of older Fishtro/Fistro screenshots. |
| `00:10.000` dark aquarium startup | Mode setup at `0B682h` / `0B695h`, screen reveal at `17169h`, palette scale/upload at `1712Ah` / `1713Fh` | The scene is already drawn before it is fully bright; the visible "arrival" is a palette reveal over prepared image data. |
| `00:12.000` bright no-text baseline | `17169h` copies the prepared 64,000-byte screen, builds row tables, then enters the palette/object update loop | The rock, speakers, sand, horizon, and fish field are the stable base scene that later text and palette states reuse. |
| `00:35.000` `FUTURE CREW PRESENTS:` title | Appended resource names include `fish.scr`, `skyfont.pal`, `skytext.pal`, `assembly.nfo`, and text blocks at payload offsets `075F20h` / `076770h` | The title is a scripted/text-layer state over the aquarium, not a separate bitmap-only title screen. |
| `00:45.000`, `01:00.000`, and `01:30.000` message overlays | Fish-script commands such as `wait`, `randomfish`, `addfish`, and `removefish`; object/text state around `17169h-17526h` | The message compositor and fish/object choreography share one long-running scene state. |
| `01:50.000`, `02:10.000`, `02:30.000`, and `02:40.000` dusk/purple phases | Palette rotation at `16DCEh`, brightness scaling at `1713Fh`, DAC upload at `1712Ah`, retrace waits in the timing block | The late colour changes are palette animation. The image bytes do not need to be redrawn as a new scene to produce the night-cycle look. |
| Persistent tiny fish and foreground objects | Payload resources `f1.bob` through `f13.bob`, plus the object-field routines at `171EFh`, `172A1h`, `172F1h`, `1737Dh`, and `173DCh` | Fishtro is data-driven: sprite/object sets and script timing drive the aquarium instead of a single hard-coded frame loop. |
| Stable horizontal layout across all frames | Unchained VGA setup at `0B695h`, 80-byte planar row decoder at `0B724h`, CRTC start / pel panning at `0B78Eh` | The intro uses Mode-X-style planar drawing and VGA display-start tricks, which explains the smooth old-PC presentation without large full-screen redraws each frame. |
| Runtime frame timing | Retrace/PIT scheduler around `0E706h-0E99Fh` | The visible script advances under a measured scheduler rather than a raw "draw as fast as possible" loop. |
| Silent capture path | Setup selected `Silence`; payload still contains `SCRM` at `051158h` and audio paths at `25E94h-266A8h` | The current visual timestamps are not music-synchronized evidence, but the binary does carry the Scream Tracker player and device back ends. |

The important bridge is that the runtime is not switching scenes every time the
colors change. The title plate at `00:35.000`, the later yellow/purple text
overlays, and the dusk palette states are all states of the same scripted
aquarium engine. The reveal routine sets up the palette and page, the timing
scheduler advances fish-script events, the object field keeps sprites moving,
and the DAC palette rotates on top. That is why the public frame set reads as
one continuous show instead of disconnected title screens.

## Archive And MZ Shape

The examined archive is:

```text
89e47ad09b7a9d86e1ad011441c8efd8e29b9ffbc028dd3dcd8036cb9c3b5fb3  fishtro.zip
```

Archive contents:

```text
FISHTRO.EXE  531835 bytes  1992-10-21 19:13
scene.org      2033 bytes  2000-11-05 17:36
```

Important hashes:

```text
9d5392acbfb6c37adab357191f92910590a99ea4e03494de5df1101ec8a2dbac  FISHTRO.EXE
37f815014a878fdf1f5b038149164901c6d9d41e8c06f9a99892af420b46aa4a  MZ load image
bed086fdc14e6fd81b4dd886d34915b0501798c7e51c63418f20ed9df83f0de3  appended payload
5ea9b08a0ce96b9bf763f4f247d98d748cde359bbbe2d8499b95c06d7daf21b1  runtime carve
```

The MZ header declares a much smaller executable than the physical file:

```text
e_cblp       = 129
e_cp         = 87
e_crlc       = 0
e_cparhdr    = 2
e_minalloc   = 0x2454
e_maxalloc   = 0x2454
e_ss:e_sp    = 0A7D:0074
e_cs:e_ip    = 0A7D:0006
header size  = 32 bytes
image size   = 44129 bytes
payload      = 487674 bytes appended after the MZ image
```

The two conspicuous facts are the fixed memory request and the huge appended
payload. The loader asks DOS for roughly the same minimum and maximum extra
allocation, then the running program consumes the rest of the file itself.

UNP did not change the file. That is a useful negative result: this is not a
normal LZEXE/PKLITE style case where the unpacked MZ can be recovered by a
standard tool.

## Payload Map

The appended payload is not just a text block. It contains resource names,
scripts, image data, and music.

Useful offsets inside the appended payload:

```text
000000  redistribution/information text
02DA77  fish-script text
051158  Scream Tracker module marker, "SCRM"
075F20  invitation/writer text block
076770  intro/writer text block
```

The fish-script block is especially revealing. It uses simple commands such as
`randomfish`, `addfish`, `removefish`, and `wait`. The script alternates waits
with fish insertions/removals, so the visual choreography is data-driven rather
than compiled as one fixed frame routine. Around the same string table the
runtime knows files named like:

```text
fish.scr
f1.bob ... f13.bob
fish.pal
skyfont.pal
skytext.pal
assembly.nfo
```

That points to a small resource VM: load pictures and palette chunks, parse a
script, animate fish sprites, display text, and synchronize the whole thing
with music/timing callbacks.

The `SCRM` marker at payload offset `051158h` identifies the embedded module as
Scream Tracker material. One of the display texts also describes the music as
using a seven-voice Scream Tracker 3.0 player. That matches the recovered audio
code: it has a fairly serious mixer/scheduler rather than a tiny beeper loop.

## Runtime Capture

The loaded disk image was too noisy for direct static reading, so I ran the
intro under DOSBox-X, interrupted it after startup, and searched the captured
guest memory for DOS allocation blocks and `FISHTRO` strings.

The useful DOS memory slice contains these allocation markers:

```text
007010  environment block for COMMAND.COM
0072F0  COMMAND.COM allocation
007CA0  child COMMAND.COM allocation
008130  FISHTRO allocation, owner 0813, size 2F42 paragraphs
008140  FISHTRO PSP
008240  start of the loaded FISHTRO image
```

The carved runtime image starts at physical offset `008240h` in the guest memory
slice and is `193312` bytes long. Its early entry area had already been used or
zeroed by the time of capture, but the installed code islands are intact. The
most useful recovered ranges are:

```text
0B682-0B7F6  VGA mode setup, unchained setup, row decoder, panning, pixel plot
0E706-0E99F  retrace/PIT timing and IRQ0 event scheduler
16DCE-1715C  palette rotation, DAC upload, brightness scaling
17169-17526  screen reveal and particle/object field
25E94-266A8  audio timing, DMA, PC speaker, and Sound Blaster style paths
2CA60-2D150  resource names, warning strings, configuration text
```

The counts in the runtime image are consistent with that map:

```text
INT 10h              11 occurrences
INT 21h              51 occurrences
INT 67h               6 occurrences
mov dx,03C8h          7 occurrences
mov dx,03DAh         17 occurrences
out dx,al           165 occurrences
in  al,dx           257 occurrences
rep outsb             4 occurrences
rep movsw             7 occurrences
iret                 51 occurrences
```

This is a mixed C/runtime plus hand-written hardware intro. The hardware loops
are small and direct; the higher-level loader/resource code brings in DOS,
memory, EMS, and configuration support.

## VGA Setup

There are two related mode routines. The smaller one at `0B682h` simply enters
mode `13h` and blackens the whole 256-entry DAC:

```asm
AX = 0013h
INT 10h
DX = 03C8h
AL = 0
OUT DX, AL        ; DAC write index
DX++
CX = 0300h
repeat CX times:
    OUT DX, AL    ; 768 zero components
```

The more important setup at `0B695h` starts the same way, then converts the VGA
from normal chunky `13h` into an unchained planar layout:

```text
03C4 index 04h: clear bit 3, set bit 2
03CE index 05h: clear odd/even behavior bit
03CE index 06h: clear chained memory bit
03D4 index 14h: clear doubleword scan mode bit
03D4 index 17h: set byte mode bit
03C4 index 02h: map mask = 0Fh
A000h: clear 8000h words
```

That makes the visible memory behave like a Mode-X style 320-wide display where
four pixels share one byte offset and the low two bits of X select the plane.
The code clears all planes by enabling map mask `0Fh` and writing `65536` bytes
as `32768` zero words.

The setup is a classic FC-era compromise: BIOS gives a known mode, then the
intro uses direct VGA ports for the features BIOS cannot express.

## RLE Row Decoder

The far routine at `0B724h` is a tight decoder for one 80-byte planar row. In
unchained 320-pixel mode, 80 bytes is exactly one scanline per plane:

```text
320 pixels / 4 planes = 80 byte offsets
```

Arguments on the stack:

```text
[bp+06]  compressed source offset
[bp+08]  compressed source segment
[bp+0A]  destination offset in A000h
```

The routine sets `DS:SI` to the compressed stream and `ES:DI` to `A000:dest`.
It then makes `row_end = dest + 80` and consumes signed control bytes until
`DI` reaches that end.

Pseudocode:

```text
row_end = dest + 80
start_si = si

while di < row_end:
    control = signed_byte(*si++)

    if control >= 0:
        count = control + 1
        copy count bytes from DS:SI to A000:DI
        si += count
        di += count
    else:
        count = -control + 1
        value = *si++
        fill count bytes at A000:DI with value
        di += count

return si - start_si
```

The inner copies are word-optimized. Literal copies use:

```asm
count = control + 1
word_count = count >> 1
rep movsw
if count was odd:
    movsb
```

Run fills use the same trick after duplicating the byte into both halves of
`AX`:

```asm
value in AL
AH = AL
word_count = count >> 1
rep stosw
if count was odd:
    stosb
```

The return value is the number of compressed bytes consumed. That makes the
decoder useful for a caller that steps through packed rows and wants to know
where the next row begins without rescanning.

## Display Start And Pel Panning

The word at `0B775h` is used as a fine display-start value. The far routine at
`0B78Eh` splits it into two pieces:

```text
coarse start = value >> 2
fine pan     = (value & 3) << 1
```

The coarse part goes to CRTC start registers `0Ch` and `0Dh`. The fine part
goes to VGA attribute unit register `13h` after waiting for vertical retrace:

```text
write CRTC start high/low
wait until retrace leaves active state
wait until retrace enters active state
write horizontal pel-pan value
reenable display by writing 20h to 03C0h
```

This gives smooth horizontal motion on top of byte-aligned page changes. It is
the same family of trick used for fluid scrollers and Mode-X virtual screens:
move most of the display with CRTC start, then use pel panning for the low
pixel phase.

The retrace wait at `0B7CDh` is the usual two-loop latch:

```text
while status_3DAh bit 3 is set:  wait
while status_3DAh bit 3 is clear: wait
```

That aligns the page/pan update to a clean frame boundary.

## Planar Pixel Writer

The helper at `0B7DBh` writes one pixel in the unchained layout. Inputs are
spread across registers: `AL` is color, `DL` contains the X low bits, `DX`
also contributes to the byte offset after shifting, and `BX` is part of the row
or object offset.

The useful operation is:

```text
color = AL
plane = X & 3
byte_offset = row_part + (X >> 2)
map_mask = 1 << plane
write map_mask to sequencer index 02h
A000[byte_offset] = color
```

That is the simplest possible single-pixel writer for unchained VGA. It is not
a fast span routine; it is for dots, particles, sprite edges, or occasional
per-pixel marks where changing the map mask per pixel is acceptable.

## Palette Machinery

The palette path is split into three small routines.

`1712Ah` uploads `0180h` bytes from `CS:79C9h` to DAC entries starting at zero:

```text
DX = 03C8h
write DAC index 0
DX = 03C9h
SI = 79C9h
CX = 0180h
rep outsb
```

`1713Fh` scales a `0300h` byte source palette at `CS:0604h` into the live
palette buffer at `CS:79C9h` using `DL` as an 8-bit brightness factor:

```text
for i in 0..02FFh:
    live_palette[i] = (base_palette[i] * DL) >> 8
```

The implementation uses the 8086 `mul dl` instruction and stores `AH`, so this
is exactly an integer multiply-by-brightness fade.

`16DCEh` is a 16-color rotation step. It increments a small counter and only
runs the rotation every fourth call. When it runs, it rotates sixteen RGB
triplets backward in memory, then copies a 48-byte subrange into the base
palette. The effect is a cheap cyclic water/sky style palette motion: no image
bytes move, only DAC entries.

The reveal routine at `17169h` combines these pieces:

```text
1. scale the palette with DL=0
2. upload black palette
3. copy 64000 bytes from a prepared screen segment to A000h
4. build scanline offset tables
5. fade in with 15 steps, adding 10h to DL each step
6. enter a frame loop:
   - full-brightness palette scale
   - palette rotation
   - retrace wait
   - DAC upload
   - update/draw object field
   - poll keyboard / scene end flag
```

The fade is cheap because the expensive screen copy happens once. After that,
the visual intensity and color motion are palette-only.

## Object Field At 173DCh

The block beginning around `171EFh` and `173DCh` is a self-contained particle or
small-object scene. It builds tables, loads object sets at timed frame counts,
then integrates and plots points directly into `A000h`.

First, `171EFh` builds a 200-entry scanline table:

```text
row_offset[0] = 0
row_offset[1] = 320
row_offset[2] = 640
...
row_offset[199] = 63680
```

It also builds two per-column/per-line helper tables around `0AD0h` and
`0D90h`. Those are used later as collision/boundary data for the moving points.

There are three object-list loaders:

- `172A1h`: reads `(x, y, color)` triples until `FFFFh`, converts positions
  into fixed-point-ish units, initializes velocities, and stores the object
  count in `CS:410Eh`.
- `172F1h`: similar, but centers/scales another coordinate system and derives
  initial velocity from the input.
- `1737Dh`: creates `03E8h` random objects using the pseudo-random routine at
  `17352h`.

The frame routine at `173DCh` uses a frame counter at `CS:7F7Ah` to switch
object sets:

```text
0000h  load object list at 1516h
044Ch  load object list at 24A0h
0898h  load object list at 2C14h
0D48h  create 1000 random objects
0DADh  begin fade out
0EACh  set scene-finished flag
```

The hot loop at `1745Dh` processes one object per two-byte index. For each
object it:

```text
1. fetches the previous screen offset;
2. clears that previous pixel to color 0 unless the object is inactive;
3. adds vertical velocity to Y;
4. adds horizontal velocity to X;
5. converts X to a row-table index;
6. tests the Y position against a boundary table;
7. reflects or damps velocity on collision;
8. converts fixed-position X/Y back to screen offset;
9. writes the object's color byte at A000[offset].
```

The inner update stores state in parallel arrays:

```text
4110h  X position
4A70h  Y position
53D0h  X velocity
5D30h  Y velocity
6690h  previous A000 offset, FFFFh means inactive
6FF0h  color
```

The loop uses direct byte writes, not planar map-mask writes, because this
scene is working in the already selected drawing layout and only plots small
objects. The expensive work is not multiplication; row lookup is done through
the prebuilt `row_offset` table.

This is a neat example of early-1990s demo physics: table-assisted integer
motion, one-byte clears, one-byte plots, and no framebuffer compositing layer.

## Timing Scheduler

The timing block around `0E706h` has two simple retrace waits:

```text
0E706h: wait for retrace low, then high
0E714h: wait for retrace high, then low
```

The larger path installs an IRQ0 scheduler. `0E760h` calibrates timing, unmasks
IRQ0, saves the old interrupt vector at `0:0020h`, installs the handler at
`0E877h`, programs PIT channel 0, and starts the first timed slice.

The calibration routine at `0E99Ah` calls `0E957h` twice per attempt. `0E957h`
programs PIT channel 0 to `FFFFh`, waits across retrace edges, latches the PIT,
and returns the count. `0E99Ah` repeats up to `20h` times until the difference
between two measurements falls inside a small range, then returns the negated
midpoint. In practical terms, it finds a stable PIT reload value tied to the
current retrace behavior.

The event-table compiler at `0E815h` converts scene timing data into scheduler
entries. Each entry stores:

```text
target frame/tick value
callback pointer
PIT interval
```

The interval is computed as:

```text
interval = ((next_time - current_time) * calibrated_interval) / divisor
```

The IRQ handler at `0E877h` is then small:

```text
if scheduler_active:
    reload PIT with current interval
    send PIC EOI
    if callback exists:
        optionally pulse DAC color 0 for debug timing
        call callback
        advance to next scheduler entry
    else:
        rearm from retrace
else:
    send PIC EOI only
```

This is why the intro can mix long scripted sections with stable VGA timing.
It is not merely polling the keyboard and drawing as fast as possible; it has a
measured timer layer.

## Audio Paths

The audio code around `25E94h` is larger than the VGA setup. It supports at
least these paths:

- PIT reads for fine timing;
- DMA-style buffer position tracking;
- EMS page mapping for audio/mix buffers;
- PC speaker output;
- Sound Blaster/direct DAC output;
- IRQ vector install/restore.

The timer read at `25E94h` latches PIT channel 0:

```text
CLI
OUT 43h, 00h
read low byte from 40h
read high byte from 40h
STI
return latched count
```

The service routine at `25EA3h` is the mixer scheduler. It:

```text
1. reads the PIT count and stores a timing delta;
2. checks whether audio is active;
3. for DMA modes, samples DMA channel registers to estimate play position;
4. computes distance from the last mixed ring-buffer offset;
5. ignores tiny deltas under 40h bytes;
6. rounds chunk sizes to 16-byte boundaries;
7. saves EMS page state if EMS is in use;
8. calls the mixing/update routines at 274B3h and 275D4h;
9. refills more data if the queued count is exhausted;
10. restores EMS page state;
11. optionally calls a higher-level tick callback.
```

The debug color writes inside this routine use the VGA attribute unit through
port `03C0h`. They mark different audio service phases with small color writes
when a flag allows it. That is a very demoscene way to profile IRQ timing on a
real CRT: let the raster show you how long the mixer took.

The EMS helpers are straightforward:

```text
2608Fh  INT 67h AH=44h  map four logical pages
260C0h  INT 67h AH=47h  save page map
260D2h  INT 67h AH=48h  restore page map
```

The PC speaker ISR at `2614Bh` advances a ring pointer, masks it by the ring
size, reads a sample byte, translates it through a table at `8E45h`, and writes
the result to PIT channel 2:

```text
ring = (ring + 1) & ring_mask
sample = buffer[ring]
speaker_value = translate[sample]
OUT 42h, speaker_value
```

It then decrements a small subcounter. When the subcounter expires, it reloads
it and may redirect the interrupted return through a stored far return frame.
That lets the sample ISR piggyback higher-level audio service at a lower rate.

The direct DAC / Sound Blaster style ISR at `261A5h` is the sibling path:

```text
ring = (ring + 1) & ring_mask
sample = buffer[ring]
DX = configured output port
OUT DX, sample
```

The setup at `26200h` programs PIT channel 2 and enables speaker bits through
port `61h`. The setup around `2621Dh` prepares a Sound Blaster style path:

```text
configured base port -> 826Ah
configured IRQ       -> vector slot and PIC mask
reset/probe DSP
program DMA channel 1 registers
install IRQ handler
unmask IRQ line
```

The DSP/probe code waits for ready bits, checks for the `AAh` reset response,
and writes commands such as `D1h`, `D3h`, `40h`, and `14h`. The DMA setup uses
ports `0Ah`, `0Bh`, `0Ch`, `02h`, `03h`, and page port `83h`, consistent with
8-bit DMA channel 1.

So the embedded Scream Tracker module is not just stored for reference. The
intro carries an actual software playback system with multiple output devices.

## What The Inner Loops Tell Us

The important recovered loops show the design philosophy clearly:

- image rows are decoded as 80-byte planar chunks, so packed art can be drawn
  into unchained VGA without a chunky conversion pass;
- horizontal motion is split into CRTC start plus pel panning, giving smooth
  motion with minimal byte movement;
- fades and water-like motion are palette operations, not screen redraws;
- scripted fish timing is data-driven through the appended `fish.scr` block;
- particles use parallel integer arrays and a row-offset table, avoiding costly
  multiply-by-320 work in the frame loop;
- audio has its own timing and refill layer, which is why the intro can run a
  Scream Tracker style song while still doing synchronized VGA updates.

`Fishtro` is fancy because it is already organized like a miniature demo
engine: resource archive, script, module player, timing scheduler, sprite/object
state, palette effects, and low-level VGA helpers. The fish idea is playful,
but the technical shape is serious Future Crew engineering from just before
the larger 1992-1993 PC demo wave.
