Analysis model: gpt-5.5 xhigh, sol high

Last edited: 2026-08-26

Floorshow by Digital Stimulation (1991) - Technical Dissection

Floorshow is a 29 June 1991 MS-DOS 32K intro whose apparently simple single screen is unusually economical. The logo, mountains, and checkerboard are one RLE-decoded Mode 13h background. Thirty-eight stars alter isolated black pixels. The floor moves without moving a single floor pixel: four pairs of VGA palette entries are exchanged on every retrace. A 16-row memory strip supplies the only large per-frame copy, a fixed-width scroller shifted two pixels at a time.

Floorshow direct runtime with the Digital Stimulation logo, starfield, palette-cycled floor, and two-pixel scroller

The GIF is the continuous, uncropped, silent capture interval 00:06..00:18. It covers the production title and coding credits before the later historical contact portion of the scroll. It is sampled at 35 fps from a 70.086 fps direct capture, so it preserves the direction and phase of the floor cycle while remaining practical as an inline image.

Release year: 1991

Identity And Artifact Boundary

Demozoo records the release date as 29 June 1991 and credits Dawnrazor with code and graphics, plus Excessive Freddie and Peeping Tom with code. The archive contains one file:

floorshow.zip   19,093 bytes
DIGITAL.EXE     19,592 bytes
33991e42131904a4ceb0685c1bc6120c62caabad15a834dce000cf51664227f1  floorshow.zip
9cc6502d80f70d559870789400f00725d40878474db2e4d0b875d297ff4c4adf  DIGITAL.EXE

The ZIP's 2019 member timestamp and Scene.org's 2022 archive timestamp are preservation dates, not release-date evidence. Runtime capture used the exact 19,592-byte archived executable. The restored image discussed below is a local analysis derivative and was not substituted for runtime. The 847-byte embedded scroll eventually reaches old personal contact details; those fields are not transcribed and the published excerpt ends well before them.

PKLITE Carrier And Restored Entry

UNP 4.12 identifies the carrier as PKLITE V1.03 <L> and reconstructs a 52,288-byte executable. The transformation is independently visible in the MZ headers:

Field Archived carrier Restored image
File bytes 19,592 52,288
Header bytes 112 160
Relocations 0 32
Load-image bytes 19,480 52,128
Entry CS:IP = FFF0:0100 0000:0584
Stack 04C9:0400 0E5F:4000
Minimum allocation 0D9Dh paragraphs 05A5h paragraphs

The restored SHA-256 is:

981eeced61fd5c4a3e0f7bb1fdd54e2a6b80ad2c1026d94848b8dfe15845c774

The packed entry uses the deliberate FFF0h:0100h wrap to execute at the first byte of the load module. It verifies room, establishes a high stack, and copies 0123h words from PSP:0148h to a high segment. Because the packed module begins at PSP offset 0100h, that source is module offset 0048h: the 582-byte moved block starts with STD and contains the decoder and its prefix tables.

The moved decoder writes the original image at ES:0100h. Its common branch is small enough to state directly:

next_token:
    shr  bp,1              ; LSB-first bit reservoir
    call reload_if_empty   ; LODSW, BP=word, DL=16
    jc   match_token
    movsb                  ; one literal byte
    jmp  next_token

match_token:
    ; prefix bits select length and distance classes from CS:0208,
    ; CS:0213, CS:021E, and CS:022E in the moved decoder
    mov  si,di
    sub  si,bx             ; BX = backward distance
    rep  movsb             ; forward, overlap-safe match expansion

Long streams normalize source and destination segments when offsets approach a 64K boundary. The terminal class then reads grouped relocation offsets, adds the reconstructed load segment to each target, restores SS:SP and CS:IP from the stream, zeros the working registers, and returns far to 0000:0584. The article therefore uses restored offsets for the effect code, but preserves the carrier's size, entry geometry, and decoder as a distinct outer layer.

Direct Runtime And Timing

DOSBox-X 2024.03.01 ran the untouched release on a VGA-only, 286-compatible profile at 3,000 fixed cycles with 4 MB RAM. XMS, EMS, UMB, Sound Blaster, GUS, MIDI, and host audio were disabled. DX-CAPTURE produced a ZMBV stream with a silent PCM wrapper:

Capture duration:       44.759102 seconds
Captured video frames:  3,137
Capture canvas:         640x400
Capture cadence:        2,190,197 / 31,250 = 70.086304 fps
Guest mode:             BIOS mode 13h, 320x200x256
Input during excerpt:   none
Published audio:        none

The 640x400 canvas is DOSBox-X's exact doubled presentation of the 320x200 guest image. A two-second sample contains 140 frames and 140 distinct decoded frame hashes. That agrees with the code's one complete update between vertical retrace starts: unlike a loop recorded at 70 Hz but visibly changing at 35 Hz, Floorshow presents a new state on every captured frame.

This is the exact uncropped frame at capture time 00:12:

Floorshow exact frame at 00:12 showing the fixed logo and mountains over the animated checker floor and coding-credit scroller

Startup: Palette Copy And Exact 64,000-Byte RLE

The restored runtime establishes DS = 0167h, selects BIOS mode 13h, and clears A000:0000..F9FF. Routine 004Dh first copies the complete 768-byte palette at DS:0352 to a mutable shadow at DS:CA16. The compiler emits a 32-bit loop counter and calls its long-multiply helper for 3*i, but the effective operation is simply:

for (uint16_t i = 0; i != 256; ++i) {
    shadow[3*i + 0] = initial_palette[3*i + 0];
    shadow[3*i + 1] = initial_palette[3*i + 1];
    shadow[3*i + 2] = initial_palette[3*i + 2];
}
bios_set_dac_block(0, 256, initial_palette);  // INT 10h, AX=1012h

The same routine decodes DS:0652..70ED, exactly 27,292 bytes, directly into the 64,000-byte Mode 13h framebuffer. BEh is the run marker. Its count is stored high byte first, despite the little-endian CPU:

while (src != end) {
    uint8_t b = *src++;
    if (b != 0xBE) {
        *dst++ = b;
    } else {
        uint16_t count = ((uint16_t)src[0] << 8) | src[1];
        uint8_t color = src[2];
        src += 3;
        memset(dst, color, count);
        dst += count;
    }
}

The release stream closes exactly, with no inferred padding:

Literal commands / bytes: 10,276 / 10,276
Run commands:              4,254
Run output bytes:          53,724
Total decoded bytes:       64,000
Decoded-index SHA-256:     cef8fb8de14e1ef4c28c305b262c4265655092fe25437b7aa418916a65371afe

Those 64,000 indices own the logo, mountain silhouette, checker geometry, and initial lower strip. The steady loop never redraws that full image.

Thirty-Eight Stars With Collision-Safe Erasure

Routine 02C6h initializes 38 five-byte records at DS:C958 onward. Index zero is unused:

struct Star {
    uint16_t x;       // 1..320
    uint8_t speed;    // 1..5
    uint8_t drawn;    // whether the old pixel belongs to this star
    uint8_t color;    // 8, 7, or 15
};

Each x is 1 + random(320). Each speed is 1 + random(5). Speeds 1 and 2 use color 8, speeds 3 and 4 use color 7, and speed 5 uses color 15. The update at 03C7h..0530h visits all 38 records before any scroller work:

for (uint8_t i = 1; i <= 38; ++i) {
    Star *s = &stars[i];
    uint16_t old = (2*i - 1)*320 + (s->x - 1);

    if (s->drawn)
        vram[old] = 0;

    s->x += (s->speed + 1) >> 1;       // 1,1,2,2,3 px/retrace
    if (s->x > 320)
        s->x = 1;

    uint16_t next = (2*i - 1)*320 + (s->x - 1);
    if (vram[next] != 0) {
        s->drawn = 0;
    } else {
        vram[next] = s->color;
        s->drawn = 1;
    }
}

Star i is confined to row 2*i-1, so the field occupies odd rows 1 through 75. The collision test is the important ownership rule: a star is plotted only over palette index zero. Consequently, clearing its previous byte back to zero cannot erase the silver/red logo. When a trajectory crosses nonzero artwork, the star disappears, continues advancing, and reappears only on black. The conditional work is at most 38 old-pixel clears, always 38 collision reads, and at most 38 new plots per retrace; there is no star-background save buffer.

The Scroller's 5,088-Byte Shift And 32-Byte Injection

The scroller owns a zero-initialized 5,120-byte buffer at DS:B544, which is just beyond the restored load image in BSS. It represents 16 rows of 320 bytes. For every row, 05F2h..0641h copies bytes x=2..319 down to x=0..317:

mov  cx,013Eh          ; 318 bytes
mov  si,row_base+2
mov  di,row_base
rep  movsb

The loop executes 16 times, so each frame performs exactly 5,088 source-byte reads and 5,088 buffer writes. Forward copying is safe because the destination is below the overlapping source. Columns 318 and 319 are then replaced from the current glyph.

The message cursor ranges from 1 through 847. Character lookup subtracts 1Fh, then the code subtracts one more before multiplying by 0110h; ASCII space therefore selects glyph record zero. Each record has a 272-byte stride, or seventeen 16-byte columns, although only columns 0 through 15 are emitted. The phase byte takes the values 1,3,5,...,15:

glyph = message[cursor] - 0x20;
base = font + glyph*272;

for (row = 0; row != 16; ++row) {
    strip[row*320 + 318] = base[(phase-1)*16 + row];
    strip[row*320 + 319] = base[ phase   *16 + row];
}

phase += 2;
if (phase > 15) {
    phase = 1;
    if (++cursor > 847) cursor = 1;
}

Thus one 16-pixel character takes eight effect frames and the full message takes 847 * 8 = 6,776 retraces, about 96.68 seconds at the measured cadence. The per-frame glyph path reads 32 font bytes and writes 32 strip bytes.

After the retrace gate, one 5,120-byte far copy sends the complete strip to A000:D480. Since D480h / 320 = 170, the scroller occupies visible rows 170 through 185. This copy, not a page flip or whole-screen blit, is the largest VRAM transfer in the steady loop.

The Floor Is A Sixteen-Frame Palette Machine

Routine 0297h reads the BIOS data area's CRTC base at 0000:0463, adds six, waits first for vertical-retrace bit 3 to clear, and then for it to set. Every main iteration therefore crosses one vertical-retrace start before presenting the updated strip and palette.

The floor phase runs from 0 through 7. Four calls to 021Ch exchange these three-byte entries in the shadow palette:

C0h+phase <-> E0h+phase
C8h+phase <-> E8h+phase
D0h+phase <-> F0h+phase
D8h+phase <-> F8h+phase

Each call copies the first RGB triple to a four-byte stack temporary, copies the second triple over the first, copies the temporary over the second, and then programs both DAC indices through ports 03C8h/03C9h. Four swaps mean eight DAC-index updates and 24 component writes per frame. No framebuffer byte is touched by this effect.

Over eight frames, every palette index from C0h through FFh participates once. The following eight frames revisit the same pairs and exchange them back, so the complete palette state repeats after 16 retraces: approximately 0.2283 seconds, or 4.38 complete cycles per second. The static checkerboard was packed with those index bands already assigned to its perspective tiles. Sequentially swapping the bands makes the highlight travel through the floor while the checker geometry remains byte-for-byte fixed.

One Complete Steady-State Iteration

The main loop at 05EFh..0788h now has an exact ownership and presentation order:

1. Update 38 sparse stars directly in rows 1..75.
2. Shift 16 scroller rows left by two pixels: 5,088 byte copies.
3. Inject two columns: 32 font reads and 32 strip writes.
4. Wait for the next vertical-retrace start.
5. Copy 5,120 strip bytes to VRAM rows 170..185.
6. Swap four floor palette pairs and program eight DAC entries.
7. Advance the 0..7 floor phase.
8. Poll the keyboard; no key branches back to step 1.

On a key, the program restores text mode 3 and exits through its runtime. The fixed backdrop is never recopied in the steady state, the floor is never rasterized in the steady state, and the stars erase only pixels they previously proved were black. Floorshow's entire visible motion is therefore split among three deliberately narrow resources: sparse direct pixels, one 16-row strip, and eight changing DAC entries per retrace.