Analysis model: gpt-5.5 xhigh, sol high Last edited: 2026-08-25

Slideshow I by Future Crew - Technical Dissection

Scope

This covers Slideshow I by Future Crew, released in June 1990 for MS-DOS. Pouet lists it as an early Future Crew slideshow, and the scene.org package contains one executable, one music/sample package, and nine packed slide files. The interesting parts are not only the VGA pictures. The program is a Microsoft C real-mode application wrapped in two executable compressors, with hand-written assembly for palette/frame transfer and a four-channel sampled audio interrupt player.

Sources and artifact:

Hashes from the examined archive:

909979753ecd30d82e4d786e3441bf7445fd6ae183569570a5fc4a57c943e202  fcslide1.zip
11162f1777cb11544aec12d781ba06dc6112772366084081a716c309ad4db1d9  FCSLIDE1.EXE packed
343ad92ec41bd4cc1f8f613301c80d8e4f306fe4c7cf5466e566d8fe9897b5e1  FCSLIDE1.EXE restored
70e062f333aa4648c2a5dfac052fe54e8aa5142f4ea597eb909e16854e371ed2  FCSLIDE1.FC0
94bc8d30588223b69fcd4ef71065f404597ac7cf54842225abcfbe47fdd46216  FCSLIDE1.FC1
3bfe13e172ef526fc005653036639915142afaea8b1b416e77129d97cee3a3ca  FCSLIDE1.FC2
9fc8bbee52d7dfdb2de1723dc21bcbabcdce23633af7e849db5655772378d259  FCSLIDE1.FC3
fb1c9a46af0a3066f8480b146083e094f5febf64091f65de8779d574a7fcc4b5  FCSLIDE1.FC4
3619835e83195ba893989e70e157ec2a71ba7bba6b233cbd65199f6bac6d4ecd  FCSLIDE1.FC5
366893c5e3786db794d749a2ca53e5ed035e9859f1ab4931a8a2995838d177a5  FCSLIDE1.FC6
781fb946681f42b5cec15ac10ac0d452a4619348b3a7f47194364715fc47ebae  FCSLIDE1.FC7
55a9984a32018072622fcd632a5f26e2a83a752c338c90326d86880c7be3ee53  FCSLIDE1.FC8
e2a0a3b27f33b48a10af89c53383f6ce69b77b2363699a43c074ea0f9ae62aa8  FCSLIDE1.FC9

The original README and contact screen contain historical BBS/contact details. Those are not reproduced here.

Archive Layout

The archive is deliberately split:

File Size Role
FCSLIDE1.EXE 38,331 Packed real-mode player
FCSLIDE1.FC0 187,949 Music/player data and sample/instrument members
FCSLIDE1.FC1 .. FCSLIDE1.FC9 6,493 .. 30,102 Nine packed slide assets
README 2,777 Requirements and user instructions

The README says VGA/MCGA is required for pictures and about 580 KB of free memory is required for the full run. It also says that, if VGA is missing, the program can still play music on the text screen. That matches the executable: there is a VGA flag branch around the main display path, but the FC-SOUND setup is still reachable.

The slide filenames are embedded as a fixed table:

fcslide1.fc1
fcslide1.fc2
fcslide1.fc3
fcslide1.fc4
fcslide1.fc9
fcslide1.fc6
fcslide1.fc7
fcslide1.fc8
fcslide1.fc5

That is the order used by the loader, so the slideshow order is not purely numeric.

Restoring The Executable

FCSLIDE1.EXE is an MZ executable packed twice. The outer layer is LZEXE v0.91. After removing that, the image is still a compact loader using the same KVETCH-style block format seen in several early Future Crew releases. A second UNP pass restores the real analysis target.

Final restored MZ shape:

file size:       162,992 bytes
header size:       2,080 bytes
loaded image:    160,912 bytes
relocations:         510
entry point:     CS:IP 0C54:0010
stack:           SS:SP 2BFE:0400
min alloc:       0542h paragraphs

The final entry is Microsoft C startup code, not a hand-written intro entry. It checks DOS version, sizes the program memory block, clears/initializes C runtime state, and far-calls the application main routine:

0c550: mov ah,30h
0c552: int 21h              ; DOS version
0c554: cmp al,02h
0c558: int 20h              ; abort below DOS 2
...
0c5ef: call far 000b:0008   ; main program

The useful split after restoration is:

0000:0001  tiny VGA palette/frame blitters
000B:0008  C main program and slideshow control
010A:xxxx  FCPACK member reader/decoder helpers
01D5:xxxx  FC-SOUND interrupt player and hardware output paths
0C54:xxxx  Microsoft C runtime and DOS file/heap/string helpers
12BB:xxxx  linked video-mode support library

The large runtime blocks are important to identify, because otherwise a linear disassembly makes the program look much more mysterious than it is. The actual demo-specific inner loops are much smaller.

Direct Silent Runtime

The revision used the untouched packed release under DOSBox-X 2024.03.01 with emulated VGA and a fixed 16,000-cycle 286. The program has no no-sound switch, so menu choice 3 kept its PC-speaker timer/player path alive while DOSBox-X host audio was completely disabled (nosound=true, PC speaker off, no SB/GUS/MIDI). Nothing was heard, recorded for publication, or auditioned. DOSBox-X ran with -silent; routine SDL and code-page diagnostics went to ignored logs.

The installed build lacks H.264 capture and produced AVI/ZMBV. The principal sequence has a 1.498-second 720x400 mode handoff and a 240.361-second 640x400 mode-13h segment. Scheduled keys exercise all nine slide files and a wrap attempt. A key that arrived while the WAIT gate was active was discarded, and the final queued Escape met the same boundary, so that long emulator run was stopped after the evidence interval. A separate 28.336-second run exercised normal Escape cleanup. Published media contains pixels only and retains the full doubled 320x200 guest framebuffer without crop or resize.

Observed safe slide states in the long segment are:

Time Resident file Visible state
00:05.000 FC1 first Future Crew picture, full color
00:15.000 FC2 Slideshow I title
00:51.000 FC4 disk-in-hand picture
01:03.000 FC9 member-name picture
01:15.000 FC6 blue/yellow FC emblem
01:27.000 FC7 purple illustrated scene
01:39.000 FC8 sunset picture
01:51.000 FC5 final Future Crew logo

The third slide is intentionally not published because it consists of obsolete contact information. Runtime sequencing establishes pixel ownership and input gating; it is not evidence for audible output quality.

Slideshow I first slide at 00:05.000

The complete 640x400 DOSBox-X framebuffer at 00:05.000 is the direct owner for decoded FC1: one 768-byte palette and one 64,000-byte indexed frame. The small WAIT-shaped pixels at the upper left are part of the slide bitmap, not a text overlay; palette index 255 controls whether they are visible.

Restored Address Map

The reproducible two-pass UNP restoration has this physical mapping:

restored file             00000h..27CAFh  162,992 bytes
MZ header                 00000h..0081Fh    2,080 bytes
510 relocation entries   0001Ch..00813h
load image                00820h..27CAFh  160,912 bytes
logical image             00000h..2748Fh

For an unrelocated logical segment:offset:

load linear = segment * 16 + offset
file offset = 0820h + load linear

The C runtime establishes DS=SS=25EDh. Key demo functions are:

Logical address File offset Role
0000:0001 0821h retrace-aligned 768-byte DAC upload
0000:005F 087Fh active linear 64,000-byte framebuffer copy
0000:0090 08B0h unreachable nine-phase copy kernel
000B:0008 08D8h startup, allocation, loading and VGA probe
000B:07D8 10A8h persistent graphics/text controller
000B:0928 11F8h FC0 sample-member loader
000B:0AB6 1386h per-slide visual scheduler
000B:0E13 16E3h 32-step palette interpolator
010A:0002 18C2h dictionary initialization
010A:005A 191Ah counted-block and bit-code reader
010A:01F2 1AB2h LZW decoder
010A:0492 1D52h file/memory source fetch
010A:055D 1E1Dh output flush and bounds check
010A:0637 1EF7h file-backed member selector/decoder
010A:0991 2251h initial resident-slide decoder
010A:0B1B 23DBh subsequent resident-slide decoder
01D5:0CAF 0321Fh timer/keyboard-vector installer
01D5:9969 0BED9h order selector and pattern-pointer builder
01D5:A26C 0C7DCh installed PC-speaker mixer ISR
01D5:A3A8 0C918h installed Sound Blaster mixer ISR
01D5:A4F4 0CA64h deferred four-lane row scheduler
01D5:A547 0CAB7h installed LPT/Covox mixer ISR

FCPACK10 Member Framing

Every member starts with a 16-byte header:

00..09  "FCPACK10\r\n"
0A      normally 00h
0B      method: 00h raw, nonzero compressed
0C..0F  little-endian payload length

The decoder does not validate the ten-byte magic. It discards the first twelve bytes, retains byte 0Bh, then reads the length. Member zero selects the first payload; higher indices skip length bytes and repeat. The memory wrapper only advances its 16-bit source offset while skipping, which is safe for the slide files because each selects member zero.

For FC1, the header ends:

00 01 53 40 00 00
   ^^ compressed method
      ^^^^^^^^^^^ 4053h = 16,467 payload bytes

The leading payload byte FCh is not an LZW code. Compressed payloads are a continuous bitstream transported as counted blocks:

[count byte][count data bytes] ... [00h terminator]

Most blocks carry 251 or 252 bytes. Residual bits persist across block and dictionary-clear boundaries.

Byte-Exact LZW Path

The base width is eight bits:

initial code width  9
clear code          256
end code            257
first dictionary    258
first width limit   512
maximum entries     4096 / 12-bit codes

Codes are assembled least-significant bit first. A clear restores width 9 and next=258, consumes repeated clears, and then emits the first non-clear code without adding a dictionary entry. An immediate end finishes. A first code >=next is coerced to literal zero.

The normal dictionary path is:

code = get_code(width);

if (code == CLEAR) {
    width = 9;
    limit = 512;
    next = 258;
    do code = get_code(width); while (code == CLEAR);
    if (code == END) finish();
    if (code >= next) code = 0;
    previous = first_char = code;
    emit(code);
    continue;
}

if (code == END)
    finish();

walk = code;
if (walk >= next) {
    if (walk > next) diagnostic_counter++;
    walk = previous;             // normal KwKwK fallback for ==next
    push(first_char);            // same fallback for malformed >next
}

while (walk >= 258) {
    push(suffix[walk]);
    walk = prefix[walk];
}

first_char = walk;
push(first_char);

if (next < 4096) {
    suffix[next] = first_char;
    prefix[next] = previous;
    next++;
    if (next == limit && width < 12) {
        width++;
        limit <<= 1;
    }
}

previous = code;
while (stack_not_empty())
    emit(pop());

Workspace ownership is exact:

suffix[code]       byte at workspace +18C0h
prefix[code]       word at workspace +4106h + code*2
reverse stack      25ED:2ECEh upward
staging buffer     15FE:FDE8h..FEE7h, 256 bytes

010A:055D flushes complete or end-terminated partial staging blocks into the caller buffer one byte at a time and checks the output ceiling before each store. Overflow returns -1 without writing beyond the destination. Source EOF returns directly and discards an incomplete staging block.

There is one benign valid-file quirk: a zero block makes 010A:005A consume the old block buffer's stale first byte once before the next source read reaches EOF. All nine slides have already committed their complete output at that point. Their FD00h result is exactly 253 complete 256-byte blocks, so no stale tail reaches the displayed image.

Decoded Slide Ledger

Every slide decodes byte-for-byte to:

0000h..02FFh  768-byte VGA palette, 256 RGB triplets, components 0..63
0300h..FCFFh  64,000 indexed pixels, 320x200 row-major
total         FD00h / 64,768 bytes
File Packed payload Counted blocks Clears Decoded SHA-256
FC1 16,467 66 + zero terminator 5 62d1c2eb4df116742cf3feca7376a416eb88fc98cfb14ae9838fa3be3e64ef72
FC2 6,477 26 + zero terminator 2 f6796f49152c0c4f4a53cd141c7d464928335891758d4bed1dd02f049a033f16
FC3 20,852 83 + zero terminator 6 1ceb1cc279ca018eda5813aef14fedb201d1a22405744d0472a214ec631428d3
FC4 30,086 120 + zero terminator 9 06e94b19a9bd578b26e47173f20d908813c26ae231663aaf17aed8b5e3182975
FC5 12,548 50 + zero terminator 4 c07a4704685d0c2c608f4e0483b84f6075344a9612abaf8c7cd1c798a85735d2
FC6 20,376 81 + zero terminator 6 7405c449999fecf4a592448d656f3376c182bfb1450d836ae2d377c197960c85
FC7 17,799 71 + zero terminator 5 325bde5ada805d66a275b1522460a8bea4034c3842d3f02acda2ddd0186d4d2f
FC8 27,478 109 + zero terminator 8 96af9d92131335439d2ee9c32d56097caf967f9e5d194721a17dc39420839c75
FC9 6,798 27 + zero terminator 2 204df6788317dc54359f96fd25b277c983869172b2a10a8889f6049818511d23

That closes the old external-decoder gap: every slide is reproducible to an exact digest and layout.

Startup, Loading And Buffer Lifetimes

000B:0008 performs this order:

load all nine packed slides into individual far-heap blocks
decode FC0 member 0 into reusable 15FE:0000
copy its first 4470h bytes into the resident FC-SOUND area
allocate/load every active FC0 sample member
build sound and palette tables
probe VGA and read the nine-choice output menu
if VGA: set mode 13h, decode and present slide 1
else: print the text-only notice
install FC-SOUND and synchronously enter the persistent controller
on return: unhook FC-SOUND, restore the prior video mode, return to DOS

The nine filename records begin at 25ED:0042h and deliberately order the slides as:

FC1, FC2, FC3, FC4, FC9, FC6, FC7, FC8, FC5

Each slide-load iteration opens in binary mode, seeks to determine size, adds 16, allocates 16 * (floor((size+16)/16)+1) bytes, then asks fread for size+16 bytes. That leaves 18..29 allocated bytes beyond each examined file, but the short read is not checked. Missing-file handling prints an error and then incorrectly continues with a null FILE *; fseek, ftell, and mode-set returns are also ignored.

Important owners are:

25ED:40E6h onward  nine far pointers to packed resident slide files
15FE:0000h..02FFh  decoded palette
15FE:0300h..FCFFh  decoded pixels
25ED:15C0h..18BFh  current palette
25ED:28C0h..2BBFh  target palette
25ED:2BCEh..2ECDh  interpolated upload palette
A000:0000h..F9FFh  visible framebuffer

15FE:0000h first holds decoded FC0 member 0, then is reused for every slide. The packed slides and sample blocks are not explicitly freed; normal process termination reclaims them. VGA detection happens only after all picture and sound assets have been loaded, so the text-only branch still pays the large memory cost.

FC0 Chained Package

FC0 has twelve member headers. Members 1..11 are unsigned 8-bit samples; member 0 is compressed player/song state:

# Header Payload Method Declared bytes
0 000000h 000010h compressed state/sequence 3,100
1 000C2Ch 000C3Ch raw sample 5,530
2 0021D6h 0021E6h raw sample 25,088
3 0083E6h 0083F6h raw sample 6,500
4 009D5Ah 009D6Ah raw sample 3,446
5 00AAE0h 00AAF0h raw sample 8,784
6 00CD40h 00CD50h raw sample 31,326
7 0147AEh 0147BEh raw sample 30,722
8 01BFC0h 01BFD0h raw sample 20,480
9 020FD0h 020FE0h raw sample 17,468
10 02541Ch 02542Ch raw sample 23,775
11 02B10Bh 02B11Bh raw sample, physically short 13,566

Headers through member 10 begin exactly at the previous declared end. Member 11 declares an end at 02E619h, but FC0 ends at 02DE2Dh: its sample payload has only 11,538 available bytes and is 2,028 bytes short. The raw extractor's short result is ignored before the conversion loop touches the requested range.

Member 0 commits 33,792 decoded bytes before its EOF tail, but main copies only 4470h/17,520 bytes to 01D5:4F7Bh. That used prefix is:

4F7Bh..4F8Ah  16-byte song header
4F8Bh..538Ah  32 instrument slots * 32 bytes
538Bh..53AAh  32-byte metadata/reserved area
53ABh..53EAh  64-byte order stream
53EBh..93EAh  16 patterns * 1024 bytes

Each pattern is 64 rows * 4 channels * 4 bytes. Event address is:

53EBh + pattern*0400h + row*0010h + channel*4

Order bytes 00h.. select a pattern. FFh restarts at 53ABh; FEh also raises the completion/key flag and disables two player-state flags. Pattern and order values have no malformed-data bounds checks.

VGA Probe And Active Frame Copy

The VGA probe uses INT 10h/AH=1Ah but does not check the returned AL=1Ah signature. It accepts only display-combination code BL=7 or 8. Graphics mode is set through 12BB:000Dh with 13h; passing FFFFh later restores the saved prior mode.

The only reachable framebuffer kernel is 0000:005F:

mov es,0a000h
mov si,[source.offset]
mov ds,[source.segment]
xor di,di
add si,0300h
mov cx,000ah
chunk:
    push cx
    mov cx,0c80h
    cld
    rep movsw
    pop cx
    loop chunk

Exact transfer:

10 chunks * 0C80h words * 2 = FA00h / 64,000 bytes
source 15FE:0300h..FCFFh
dest   A000:0000h..F9FFh

It is ascending, opaque and linear. There is no retrace wait, page flip, transparency, clipping, per-row stride or interrupt masking. Palette blackness hides the replacement.

The Unreachable Nine-Phase Kernel

0000:0038 wraps the unusual copier at 0000:0090, but normal Slideshow I never reaches it. Its effective address order is:

for (phase = 0; phase < 9; phase++)
    for (j = 0; j < 7120; j++)
        dst[2*phase + 9*j] = src[2*phase + 9*j];

Phase residues modulo nine are 0,2,4,6,8,1,3,5,7. It performs 64,080 distinct writes: 63,996 visible bytes, misses visible offsets 1,3,5,7, and reads/writes 84 bytes beyond the frame at FA00h..FA57h.

The call sits inside 000B:0E13 behind mode==1 && step==32; that loop runs only while step<32, and every real caller passes mode zero. It is therefore dormant code, not a shipped reveal effect. The direct runtime agrees: spatial pixels change only while black, and the visible transition is entirely DAC palette motion.

DAC Publisher And Palette Inner Loop

0000:0001 waits for retrace-low then retrace-high, sets DAC index zero, and streams 768 bytes to 3C9h:

while (inb(0x3da) & 8) {}
while (!(inb(0x3da) & 8)) {}
outb(0x3c8, 0);
cli();
for (i = 0; i < 768; i++)
    outb(0x3c9, palette[i]);
sti();

The transfer starts at a retrace rising edge, but there is no end-before-blank check or timeout. STI unconditionally enables interrupts rather than restoring incoming IF. Components are already six-bit values; the publisher does not clamp, mask or shift them.

000B:0E13 calculates 32 intermediate palettes, steps 0..31:

for (step = 0; step < 32; step++) {
    for (i = 0; i < 768; i++) {
        if (target[i] >= current[i])
            temp[i] = current[i]
                    + floor((target[i]-current[i]) * step / 32);
        else
            temp[i] = current[i]
                    - ceil((current[i]-target[i]) * step / 32);
    }
    upload_768_at_retrace(temp);
}
memcpy(current, target, 768);

The downward-path ceiling comes from signed multiplication followed by clearing DX and unsigned DIV 32. Step 32 is never shown. Later stage-zero uploads or an explicit exact upload close the endpoint.

Slideshow I first-slide black-to-gray-to-color transition

This continuous 00:00.250-00:02.000 excerpt from the short main segment is the exact owner for the first-slide transition. Pixel addresses remain fixed; the visual path is black, grayscale, then color through repeated DAC uploads.

Per-Slide Scheduler And WAIT Handshake

000B:0AB6 builds grayscale one palette entry at a time:

gray = floor(30*R/100) + floor(59*G/100) + floor(11*B/100);

The three terms truncate independently. A new-slide clamp-to-63 assignment is made after the byte was already stored, so it has no effect.

The first presentation is:

upload black
copy the complete first framebuffer while black
32 uploads black -> grayscale(first)
32 uploads grayscale(first) -> color(first)
upload exact color, with palette entry 255 = (32,32,32)

Every later presentation is:

32 uploads current color -> grayscale(current)
32 uploads grayscale(current) -> black
copy the complete new framebuffer while black
32 uploads black -> grayscale(new)
32 uploads grayscale(new) -> color(new)
upload exact color, with palette entry 255 = (32,32,32)

At nominal 70 Hz, that is approximately 66 retrace uploads/0.94 seconds for the first slide and 129 uploads/1.84 seconds thereafter. Port-write time and the first retrace phase add small variation.

WAIT is not drawn by code. Every slide contains the small shape in its pixel plane using index 255. At presentation end, the scheduler uploads entry 255 as gray (32,32,32), then sets the in-memory current and target copies of entry 255 to black without another upload. WAIT therefore remains visible while the controller pre-decodes the next slide. Once decoding returns, 000B:0843 uploads the buffered target palette and hides it.

Only then does the controller drain every pending key and start accepting a new one. This is the precise hand-off behind the release note's warning to wait for WAIT to disappear.

Slideshow I member slide at 01:03.000

The full frame at 01:03.000 is the fifth logical presentation, loaded from FC9 because the resident order is nonnumeric. It is static after the palette sequence completes.

Controller And Input Latency

The graphics loop at 000B:07D8 is:

for (;;) {
    decode(packed[next_index], decoded, 0xFD00);
    next_index++;
    if (next_index >= 9) next_index = 0;

    upload_palette(target);       // entry 255 black: hide WAIT
    while (kbhit()) getch();      // discard fade/decode keys

    while (!kbhit()) {
        for (i = 0; i < 100; i++) {
            delay_value *= 2.0;
            delay_value /= 2.0;
        }
        service_music();
    }

    key = getch();
    if (key == 27) {
        memset(target, 0, 768);
        interpolate_palette();    // 32 near-black steps, no exact step 32
        return;
    }
    present(decoded);
}

The busy-loop value starts as the embedded double 3.1415; its 100 multiply/divide pairs have no intended net effect. There is no BIOS-time delay, so post-WAIT poll latency depends on CPU/FPU emulation and one music-service call. Transitions cannot be interrupted. An extended key's leading zero counts as an ordinary next-slide key.

The text-only controller has no decode, WAIT, flush or fade loop: it repeatedly services music and blocks for keys until Escape. Because all assets were loaded before VGA detection, this fallback is not memory-light.

Sound Menu And Exact Rates

The nine menu choices select:

Choice Backend PIT reload IRQ rate Initial row divider
1 speaker/table 9767h 0078h 9,943.18 Hz 950
2 speaker/table 9665h 005Ah 13,257.58 Hz 1,300
3 speaker/table 9563h 004Bh 15,909.09 Hz 1,550
4 LPT1 0078h 9,943.18 Hz 950
5 LPT1 004Bh 15,909.09 Hz 1,550
6 LPT2 0078h 9,943.18 Hz 950
7 LPT2 004Bh 15,909.09 Hz 1,550
8 Sound Blaster 0078h 9,943.18 Hz 950
9 Sound Blaster 004Bh 15,909.09 Hz 1,550

Rates use a 1,193,182 Hz PIT input. Initial row service is about 10.20..10.47 Hz depending on branch. The runtime used choice 3 only to preserve this guest timing while host audio remained disabled.

Instruments, Rows And Effects

Main tests instrument slots 1..31; eleven are marked active and map to FC0 members 1..11. Recovered 32-byte instrument fields are:

+00 byte  nonzero = present
+0E word  normalized sample segment; offset is zero
+10 word  terminal sample offset after subtracting 16
+12 word  loop/restart offset
+14 word  loop end, or FFFFh for one-shot
+16 byte  default volume
+18 word  base-rate value used by pitch conversion

For each active slot, 000B:0928 subtracts 16 from the terminal field, allocates/loads the corresponding FC0 member, then converts bytes 0..terminal in place with sample[i]-=80h. Extractor status is ignored. Allocation failure prints an error and exits with -2 before sound hardware ownership begins.

Four-byte row events are:

byte 0  note; FEh stop/silence, FFh no new note
byte 1  instrument in bits 3..7; low volume bits in 0..2
byte 2  high volume bits in 4..7; effect in low nibble
byte 3  effect parameter

Recovered effects:

1  row divider = parameter * floor(sample_rate/50), unless parameter zero
3  break/restart pattern through FFEFh pointer sentinel
4  set volume directly from parameter
5  pitch slide down by parameter*233 fractional units
6  pitch slide up by parameter*233 fractional units
7  change/use instrument without retriggering position

Pitch becomes a 16.16 byte step:

scaled = note_table[note] * instrument_base_rate;
scaled /= 10000;
integer_step  = scaled / sample_rate;
fraction_step = ((scaled % sample_rate) << 16) / sample_rate;

An overflow-avoidance branch skips /10000 if the product high word exceeds 270Fh; valid sequence data is not expected to take it.

Volume Table And Mixer Inner Loop

Startup builds 65 pages of 256 signed contributions at 01D5:0E75h:

for (volume = 0; volume <= 64; volume++)
    for (raw = 0; raw < 256; raw++)
        table[volume][raw] = trunc_toward_zero((int8_t)raw * volume / 256);

At volume 64 one channel contributes -32..31; four valid lanes total -128..124. There is no later clipping or saturation. The range is designed to fit in the signed byte accumulator, which is converted by output=mix+80h.

Installed mixer entries are A26Ch speaker, A3A8h Sound Blaster and A547h LPT. Channel state is held as parallel arrays:

94FFh+2*n  loop/restart offset
9507h+2*n  fractional phase
950Fh+2*n  fractional step
9517h+2*n  integer step
951Fh+2*n  row scheduler's saved offset
9527h+2*n  row scheduler's saved segment
952Fh+2*n  active instrument/base rate
9537h+2*n  sample end
953Fh+2*n  volume-table page, valid 0..64
954Bh+2*n  active instrument-record pointer
9553h+4*n  live far sample pointer

The per-IRQ lane kernel is:

uint8_t mix = 0;
for (channel = 0; channel < 4; channel++) {
    pos = live[channel].offset;

    if (pos >= end[channel]) {
        if (loop[channel] == 0xffff)
            continue;
        pos = loop[channel];
    }

    pos += integer_step[channel];
    old_phase = phase[channel];
    phase[channel] += fraction_step[channel];
    if (phase[channel] < old_phase)
        pos++;

    live[channel].offset = pos;
    raw = read_u8(live[channel].segment, pos);
    mix += table[volume[channel]][raw];
}
output = mix + 0x80;

The endpoint test occurs before stepping. Consequently byte zero and an exact loop-start byte are normally skipped; a large step can fetch once beyond the nominal endpoint because there is no post-step test. Offset arithmetic never carries into the segment. There is no interpolation or multiply in the ISR.

Output Backends

PC speaker uses one selected 256-byte conversion table at 9869h; its value ranges are 2..120, 1..90, or 1..75. XLAT converts the biased mix and the ISR writes one count byte to PIT channel 2 at port 42h.

LPT1/LPT2 bases come from BDA 0000:0408h/040Ah. The ISR writes one biased sample directly to the selected base: no strobe or control-port pulse. An empty BDA slot causes output to port zero.

Sound Blaster is hardcoded to base 220h. Setup toggles reset at 226h, never checks for the normal AAh response, and waits for 22Ch with no timeout. It sends D1h once, then every high-rate timer IRQ sends direct-DAC command 10h and one mixed byte. There is no DMA and no SB IRQ.

PIT channel-2 programming and port-61 enable happen unconditionally after sound setup—even for LPT and Sound Blaster modes. An older LPT1-only ISR at 01D5:A128h is present but never selected.

Timer Redirection, Not BIOS Chaining

This corrects the earlier article's largest sound-path error. 01D5:0CAF saves old INT 08h and INT 09h, installs its keyboard handler and one mixer ISR, then programs PIT channel 0 to the selected high rate. The keyboard ISR at 01D5:0D33h reads port 60h, sets two key flags on make codes, and far-jumps to the prior keyboard handler.

The timer ISR does not call or chain the old INT 08h while playing. When its row divider expires, it:

reloads the divider
sends PIC EOI
restores mixer registers
pops interrupted IP, CS and FLAGS into A264h, A262h and A266h
builds an IRET frame targeting 01D5:A4F4h
IRET

A4F4h services all four row lanes, then pushes the saved original CS:IP and uses RETF to resume the interrupted program. It runs with the interrupted IF state restored, so a later sample IRQ can pre-empt row work.

BIOS/DOS clock ticks are therefore suspended for the whole playback interval; lost ticks are not compensated. The saved old timer vector is used only for shutdown restoration.

Exit And Failure Boundaries

Normal FC-SOUND shutdown at 01D5:0C77h restores old INT 08h and INT 09h, programs PIT channel 0 mode 3 with divisor zero/65,536, and clears port 61h bits 0 and 1. The slideshow then restores its prior video mode.

It does not restore previous PIT channel-2 programming or port-61 state, repair lost BIOS ticks, send Sound Blaster D3h, reset the DSP, or explicitly center LPT output. Sound Blaster readiness loops can hang before hook installation. The suspicious fclose at 000B:0AAAh also uses local far-pointer slots not assigned by that helper, while the file-backed decoder already closed its own stream.

Why This 1990 Engine Matters

The visible content is static, but the implementation is a compact reusable multimedia system:

The important revision is that code presence is no longer confused with live behavior. The stride-9 copier is unreachable, the old BIOS timer is not chained, WAIT is not drawn by a text routine, and all nine slide streams now decode to exact verified bytes. No demo audio was auditioned or published.