Analysis model: gpt-5.5 xhigh

Deadbeat BBS by Shadow Productions - Technical Dissection

Deadbeat BBS is a Shadow Productions MS-DOS BBStro for The DeadBeat BBS. Demozoo lists it as a 1992 MS-DOS advert, and Pouet lists it as a January 1992 MS-DOS 40k / bbstro production by Shadow Productions. The Hornet 1992 mirror preserves the package as deadbeat.zip.

Release year: 1992

The short version: this is a 33 KB packed MZ executable that expands to a much larger raw real-mode image. The visible executable is a PKLITE-family carrier. After unpacking, the useful evidence is a set of planar VGA kernels: sequencer map-mask programming, graphics-controller mode changes, narrow strip restores, plane-by-plane copies, OR-composited overlays, and tiny 3-byte-wide bob/sprite copies. That matches the public visual identity of the intro: stacked bands, logo material, bouncy text objects, bottom scrollers, and raster-like color activity.

This writeup deliberately omits old BBS contact details. It uses only the public low-resolution Pouet screenshot and generated diagnostic images.

Sources

Visual References

The public Pouet screenshot is a small 211x132 JPEG. It shows the board-title layout and confirms that the intro is a multi-band VGA screen rather than a plain text advert. It is too small here to reproduce old board contact details, and this analysis does not transcribe them.

Deadbeat BBS public Pouet screenshot

The next two images are generated diagnostics, not runtime screenshots. The byte map comes from the depklite raw output. It makes the dense front code, mostly-zero workspace, and late resource/blitter tail visible.

Deadbeat BBS depacked raw image byte map

The kernel map summarizes the packed-wrapper and planar-VGA routines discussed below.

Deadbeat BBS planar VGA kernel map

Archive Evidence

The examined archive is the Hornet mirror package:

7121ca5937bf9a6a6f824f7705e8feb60cd14187651ccc05f6caae52e5df9f6d  deadbeat.zip

Hornet's index line is:

deadbeat.zip      33106 ***   BBS Dead Beat by Shadow Productions

Extracted contents:

DEADBEAT.EXE  33336 bytes

The executable hash is:

58f2f1ceb59581ffef7ec155835706e30d9222bbb7aeecdf8af1beb4660b5714  DEADBEAT.EXE

There is only one visible plaintext string in the packed executable:

Need mo' mem!    $

That is the memory-failure message in the unpacking carrier, not the final display text.

Packed MZ Header

The MZ header is small and typical of a packed real-mode executable:

file size       33336 bytes
MZ image size   33336 bytes
e_cblp          56
e_cp            66
e_crlc          1
e_cparhdr       10 paragraphs = 160 bytes
load image      33176 bytes
e_minalloc      12533 paragraphs
e_maxalloc      65535 paragraphs
entry           CS:IP FFF0:0100
stack           SS:SP 0824:0200
reloc[0]        segment 0000, offset 0007

The FFF0:0100 entry is the tell. In a DOS MZ image, CS:IP is relative to the load segment. FFF0:0100 wraps execution into the beginning of the loaded program body, where the unpacker stub lives. The final program's real entry is restored later by the carrier after decompression and relocation repair.

Runtime Capture Boundary

I tried a headless DOSBox-X capture with the executable mounted directly and video capture enabled. DOSBox-X aborted with allocator corruption after producing two tiny AVI fragments. The recovered frames were black. Those frames are not useful evidence and are not published here.

That means this pass is not a timestamped animation reconstruction. The analysis below is static: packed header, unpacker structure, depacked raw image, opcode patterns, and public-screen visual correlation.

The existing visual files were not regenerated, cropped, padded, resized, or touched in this concordance pass.

Runtime-To-Code Concordance

The available visual evidence is intentionally bounded: one public low-resolution Pouet screenshot plus two generated diagnostics from the depacked image. That is enough to connect the screen architecture to code, but not enough to assign every moving object to an exact frame timestamp.

The public screenshot shows a layered 16-color VGA board advert rather than a text-mode notice: stacked top/bottom bands, a central board-logo area, small moving text/bob material, and raster-like color activity. The depacked image matches that model through planar VGA kernels instead of a single chunky mode-13h frame copier.

visual evidence                         code evidence
public stacked VGA screen               sequencer/graphics-controller writes
central logo/backing material           0x11D7 four-plane bulk upload
small vertical/bob-like objects         0x0B24 column painter, 0x1202 bob copy
moving-object background repair         0x0D20 ten-entry restore strip list
overlay/glyph edge composition          0x0DD5 OR-composite blitter
short band/asset strip uploads          0x0CE0 plane-strip transfer
compact backing/mask refresh            0x0FB6 plane upload and fill
large zeroed workspace in byte map      BSS-like buffers for restore/update work
late dense tail in byte map             visual tables, plane data, and blitters

The strongest bridge is the plane selection. The renderer repeatedly programs 03C4h/03C5h with masks 1, 2, 4, and 8, rewinds the destination, and copies the next source plane into the same screen location. That is exactly the storage pattern expected for the 16-color screen in the public screenshot. A chunky VGA renderer would not need to cycle map masks around each strip.

The 0x0CE0 and 0x11D7 routines explain different scales of the same visual system. 0x0CE0 moves a narrow 0x26-byte strip per plane, which fits band fragments or small planar assets. 0x11D7 moves 0x0BDE words per plane to a fixed destination, which is large enough for a major logo or backing layer. In the screenshot those roles correspond to the dense central board area and the stable screen bands rather than to the tiny moving objects.

The moving-object evidence is the restore/draw pair. 0x0D20 walks ten short restore records and copies 0x26 bytes for each one. 0x1202 then copies five 3-byte-wide, 16-row objects from a position table at D620h..D628h. That is the classic bob discipline: erase the old strip, advance the position, then draw the small object in the new place. The public screenshot's small floating text elements are the right visual scale for that machinery.

The 0x0B24 column painter and 0x0DD5 OR-composite path fill in the edge cases. 0x0B24 writes repeated STOSW columns with an 80-byte scanline stride, so it is screen-space planar drawing rather than data unpacking. 0x0DD5 ORs a leading byte into the destination before copying two words, which is consistent with masked glyph/logo edges where the overlay must merge into an existing band instead of replacing it wholesale.

What this concordance does not prove is exact timing. There is no reliable local video capture in this pass, and no clean trace through the post-PKLITE entry. The code-to-screen mapping is therefore architectural: the visible layered VGA screen is backed by exact planar upload, restore, bob, and composite kernels, but the individual animation phases still need a debugger trace to name with frame-level certainty.

PKLITE-Family Carrier

The entry stub has the shape of a late-entry PKLITE-family MZ unpacker rather than application code.

At the front, the carrier checks the available allocation, switches to its own scratch stack, and copies a small routine from the packed image into low memory. The visible form is:

high-memory check
stack switch
copy 0122h words from DS:0144 to ES:0000
far return into the copied helper

That split matters because the unpacker has to overwrite the packed image with the expanded image. Moving a helper away from the compressed source lets it survive while the output region is being rebuilt.

Bit Reservoir

The compressed stream is driven by a 16-bit reservoir in BP, with DL used as the bit countdown. The core pattern is:

shift BP left
if reservoir is empty:
    LODSW
    XCHG BP,AX
    reset DL to 10h
branch on carry bit

This is a classic LZ bitstream shape. The stream is read forward with LODSB and LODSW, while output is written through ES:DI.

Literal Path

The fast path is the literal copy:

carry clear:
    MOVSB
    shift/reload reservoir
    continue

In other words, a zero control bit means "copy the next packed byte directly to the expanded image." Literals cost almost no decode work: one source byte, one destination byte, and a reservoir advance.

Match Path

The set-control-bit path decodes a back-reference. The observed routine builds fields by repeatedly rotating bits into a register and looking up thresholds in small tables around carrier offsets 0206h, 0211h, and 022Ch.

The eventual copy path is the important part:

LODSB
MOV  BL,AL
PUSH SI
MOV  SI,DI
SUB  SI,BX
CLI
REP  MOVSB      ; ES:DI <- ES:SI
STI
POP  SI
JMP  decode_next_token

This is an in-place LZ copy. The match source is not the packed input stream; it is earlier expanded output. SI = DI - distance, then REP MOVSB grows the already-expanded data. Interrupts are briefly disabled around the copy because the routine is using segment assumptions that it does not want an interrupt handler to disturb.

Segment Normalization

The unpacker cannot treat the output as one flat 32-bit address. It is real mode, so far pointers have to be periodically normalized. The carrier has an escape path that adjusts DI around a 2000h-sized window, carries the high bits into ES, and performs a similar normalization for the packed source pointer.

The practical effect is:

if DI crosses the carrier window:
    fold high output offset bits into ES
    keep DI small
if SI crosses the packed-source window:
    fold high source offset bits into DS
    keep SI small

Without this, a long depack run would wrap SI or DI inside the same segment and corrupt either the source stream or expanded program.

Relocation And Return

The tail reads a small relocation stream, adds the loaded base paragraph to each restored fixup, restores the final SS:SP, pushes the final CS:IP, zeroes the general registers, and returns far into the application.

The carrier therefore performs four jobs:

1. verify memory
2. expand the compressed program body
3. rebuild relocation-sensitive words
4. transfer to the real entry point

depklite can recover the raw expanded image:

c241a99365a6a81f12c6ddbb759e912989d41490c5421af6c48817c3ab386034  DEADBEAT.dep.EXE
230526 bytes

The recovered stream is raw load-image material, not a repaired MZ file. Its first bytes are not MZ.

Depacked Image Layout

The raw depacked stream is mostly not dense code. Its 8 KiB entropy profile is:

00000-02000  entropy 5.95  mixed code/table area
02000-04000  entropy 4.42  structured table area
04000-26000  mostly zero
26000-28000  very low entropy
28000-2A000  mostly zero
2A000-2C000  entropy 3.04
2C000-2E000  entropy 5.58
2E000-30000  entropy 5.48
30000-32000  entropy 3.52
32000-34000  entropy 4.74
34000-36000  entropy 3.65
36000-38000  entropy 5.02
38000-3847E  entropy 5.55

That layout is plausible for an intro that carries packed artwork/tables and cleared work buffers inside a single expanded image. The front area contains setup and smaller tables. The long zero region is probably workspace or BSS-like storage that was cheap to represent inside the compressed executable. The late tail contains the more visually interesting data and blitter routines.

Static opcode scans in the depacked image found:

VGA sequencer port 03C4h setup sites  6
VGA graphics-controller 03CEh sites   7
REP MOVSB sites                       22
REP MOVSW sites                        4
STOSB sites                           46
STOSW sites                           74
INT 08h-like vector reference          1
direct INT 10h mode-13h pattern        0
direct A000h immediate pattern         0
direct DAC-port pattern                0
direct retrace-port pattern            0

The absence of an obvious INT 10h, AX=0013h does not mean "no VGA." The recovered stream is not symbolized, can be misaligned if disassembled from the wrong byte, and the code clearly programs planar VGA registers directly. The useful evidence is the repeated 03C4h / 03CEh port programming and the plane-specific copy loops.

Screen Model

The public screenshot and Pouet's old technical discussion describe a stacked 16-color VGA intro with:

top scroller / band
central Deadbeat board logo area
moving bob-like text objects
bottom scroller / wave band
raster/copper-bar-like color activity
shadow/production overlays

The depacked code supports that kind of architecture. The renderer is not a single chunky 64 KB mode-13h framebuffer copy. Instead, it looks like a planar pipeline:

set VGA sequencer map mask
copy or fill one plane
rewind destination
copy/fill next plane
restore old sprite/background strip
copy narrow moving object at new position
OR-composite masked logo or glyph material
repeat for several bands/objects

That is a natural choice for 1992 16-color VGA effects. It lets the intro keep several independent bands on screen, use hardware-friendly 80-byte scanline strides, and update small moving objects without repainting the full display.

VGA Register Use

The two important VGA ports in the recovered loops are:

03C4h  Sequencer index port
03C5h  Sequencer data port
03CEh  Graphics controller index port
03CFh  Graphics controller data port

For planar 16-color VGA, the sequencer map mask selects which of the four bitplanes receives CPU writes. Writing masks 1, 2, 4, and 8 in sequence lets the code upload a four-plane picture or font from four contiguous source blocks. Writing mask 0Fh enables all planes for operations where the same word or pattern should hit every plane.

The graphics-controller mode register changes how CPU writes combine with VRAM. The deadbeat loops use it around restore and strip-copy paths. That is why the code can switch between normal copies, fills, and masked/OR-style composition without changing the high-level effect structure.

Kernel 0x0B24 - Vertical Column Painter

The first strong VGA kernel appears around depacked offset 0x0B24:

BA C4 03      MOV DX,03C4h
B8 02 0F      MOV AX,0F02h
EF            OUT DX,AX
BA CE 03      MOV DX,03CEh
B8 05 00      MOV AX,0005h
EF            OUT DX,AX
...
B9 06 00      MOV CX,0006h
...
BD 50 00      MOV BP,0050h
AB            STOSW
ADD DI,BP
AB            STOSW
ADD DI,BP
... repeated for 16 rows ...
LOOP ...

0F02h sent to the sequencer index port means index 02h, data 0Fh: all four planes enabled. 0050h is decimal 80, the byte width of a planar 320-pixel scanline. The repeated STOSW and DI += 80 pattern paints a vertical 2-byte slice down the screen.

High-level shape:

select_all_vga_planes();
set_graphics_controller_mode_5(0);

for (int column = 0; column < 6; column++) {
    uint16_t *p = destination_for_column(column);

    for (int row = 0; row < 16; row++) {
        *p = ax_pattern;
        p = (uint16_t *)((uint8_t *)p + 80);
    }
}

This is a compact bob/letter column painter. The 16-row height matches small font or bob elements, and the 80-byte stride ties it directly to planar VGA scanlines.

Kernel 0x0CE0 - Plane-Strip Transfer

Around 0x0CE0, the code writes a single plane at a time:

MOV DX,03C5h
MOV AL,01h
OUT DX,AL
MOV CX,0013h
REP MOVSW
SUB DI,0026h
ADD SI,09B4h
SHL AL,1
OUT DX,AL
... repeat ...

The destination is rewound by 0x26 bytes after each plane copy. The source is advanced by 0x09B4, which points at the same strip in the next source plane. 0x13 words is 0x26 bytes.

High-level shape:

uint8_t mask = 1;

for (int plane = 0; plane < 4; plane++) {
    vga_seq_map_mask(mask);
    copy_words(dst, src, 0x13);

    dst -= 0x26;
    src += 0x09B4;
    mask <<= 1;
}

This is the cleanest evidence for four-plane asset layout. It is not copying a chunky bitmap. It is uploading one strip into plane 0, then the corresponding strip into plane 1, then plane 2, then plane 3.

Kernel 0x0D20 - Restore Strip List

At 0x0D20, the renderer switches graphics-controller mode and walks a short list:

MOV DX,03CEh
MOV AX,0105h
OUT DX,AX
...
MOV DX,000Ah
loop:
    LODSW
    MOV BP,AX
    LODSW
    MOV DI,AX
    ...
    MOV CX,0026h
    REP MOVSB
    ...
    DEC DX
    JNE loop

There are ten records. Each record feeds a destination and copies a 0x26-byte strip. This looks like a background-restore list for moving objects:

set_graphics_controller_write_mode_path(1);

for (int i = 0; i < 10; i++) {
    uint16_t src_or_state = next_word();
    uint16_t dst = next_word();

    restore_strip(dst, src_or_state, 0x26);
}

Why restore first? A bob-style renderer usually preserves the background under each moving object. Per frame, it restores the old rectangle, advances the object's sine/cosine position, then draws the object at the new location. Ten short strips are enough for a handful of bouncing letters or logo fragments.

Kernel 0x0DD5 - OR-Composite Blitter

The 0x0DD5 region uses a row pattern that repeats many times:

BB 5C 00        MOV BX,005Ch
MOV DX,DI

row:
    LODSB
    OR ES:[DI],AL
    INC DI
    MOVSW
    MOVSW
    ADD DI,BX
    ... repeated rows ...

This is not a plain copy. The first byte of each row is ORed into the existing destination byte, then two words are copied. The row advance is 0x5C decimal 92. Because each row also consumes five destination bytes before the advance, the total movement is near a 97-byte row pitch for that local object coordinate system. The exact visible width depends on how the routine is entered and where DI starts.

High-level shape:

for (int row = 0; row < object_height; row++) {
    dst[0] |= *src++;
    dst++;

    *(uint16_t *)&dst[0] = *(uint16_t *)&src[0];
    src += 2;
    dst += 2;

    *(uint16_t *)&dst[0] = *(uint16_t *)&src[0];
    src += 2;
    dst += 2;

    dst += 0x5c;
}

That is suitable for masked glyph or logo overlay work. The OR byte lets a partial edge or mask merge into the existing plane data, while the word copies move denser interior pixels.

Kernel 0x0FB6 - Plane Upload And Fill

Another plane-oriented routine begins around 0x0FB6:

MOV DX,03C4h
MOV AL,02h
OUT DX,AL
INC DX

MOV AL,01h
OUT DX,AL
MOV CX,00C0h
REP MOVSB

SHL AL,1
OUT DX,AL
MOV CX,00C0h
SUB DI,CX
REP MOVSB

... repeat through masks ...

MOV AL,0FFh
REP STOSB

This has the same core idea as the strip transfer, but the block size is 0x00C0 bytes and the final phase is a fill. The routine writes one plane, rewinds the destination, writes the next plane, and eventually fills a selected region.

High-level shape:

out(0x03c4, 0x02);          // sequencer map-mask index

for (uint8_t mask = 1; mask < 0x10; mask <<= 1) {
    out(0x03c5, mask);
    copy_bytes(dst, src, 0x00c0);
    dst -= 0x00c0;
}

fill_bytes(dst, 0xff, count);

This is probably used for a compact logo piece, screen band, or backing mask. The 0xC0 byte size is too deliberate to be a random memory move.

Kernel 0x11D7 - Four-Plane Bulk Upload

The larger upload path around 0x11D7 is:

MOV DX,03C4h
MOV AL,02h
OUT DX,AL
INC DX

MOV AL,01h
MOV SI,2226h
OUT DX,AL
MOV DI,4E20h
MOV CX,0BDEh
REP MOVSW

SHL AL,1
CMP AL,10h
JNE plane_loop

0x0BDE words is 6076 bytes per plane. Four planes make about 24 KB of plane data. This is not a tiny character blit. It is a bulk upload of a larger visual block to a VGA memory offset.

High-level shape:

out(0x03c4, 0x02);          // map-mask index

for (uint8_t mask = 1; mask != 0x10; mask <<= 1) {
    out(0x03c5, mask);
    si = 0x2226 + source_plane_offset(mask);
    di = 0x4e20;
    copy_words_to_vram(di, si, 0x0bde);
}

The likely use is a major logo/background plane upload. In the public screen, that would correspond to the central board/logo layer or a large backing band.

Kernel 0x1202 - Tiny Bob Copy

The small-object path around 0x1202 is one of the most revealing loops:

BX = D620h
DX = 0008h
DS = DX

object:
    DI = [BX] >> 3
    SI = DI + 0028h
    BP = 004Fh
    AX = 0003h

    repeated 16 times:
        CX = AX
        REP MOVSB
        ADD SI,BP
        ADD DI,BP

    ADD BX,2
    CMP BX,D62Ah
    JNE object

XOR AX,AX
MOV DX,03CFh
OUT DX,AL

This copies 3 bytes per row for 16 rows. The row skip is 0x4F, which is 79; after copying 3 bytes, the total movement per row is 82 bytes. Depending on the initial alignment and plane mode, that is a narrow 24-pixel-ish planar object stepping down a screen-like pitch.

High-level shape:

for (uint16_t *slot = (uint16_t *)0xd620; slot != (uint16_t *)0xd62a; slot++) {
    uint16_t di = *slot >> 3;
    uint16_t si = di + 0x28;

    for (int row = 0; row < 16; row++) {
        copy_bytes(di, si, 3);
        si += 0x4f;
        di += 0x4f;
    }
}

out(0x03cf, 0);

There are five table entries from D620h through D628h. That aligns well with the visual idea of several independent moving letter bobs. The public description of the intro mentions multiple bouncing text objects in the center; this loop is exactly the scale and shape one expects for that job.

Likely Per-Frame Order

The static kernels suggest a frame order like this:

1. Wait for a display-safe time or band boundary.
2. Update hardware scroll or band offsets.
3. Restore strips under the previous bob positions.
4. Advance sine/cosine position table entries.
5. Draw narrow moving objects through the tiny bob kernel.
6. Upload or refresh plane-specific logo/band material when needed.
7. OR-composite masked glyph/overlay edges.
8. Update palette/raster state for the next visual band.

Only steps 3 through 7 are strongly visible in the recovered static code. The wait/palette/band scheduling is inferred from the public visual appearance and the known behavior of the intro rather than from a clean local trace. A proper timed reconstruction would need a reliable emulator capture or a debugger trace through the real entry after the PKLITE carrier returns.

Why It Looks Rich For A 40K BBStro

The trick is not a huge full-screen engine. It is a pile of narrow, specialized paths:

large static layer       four-plane bulk upload
small vertical details   STOSW + 80-byte stride column painter
moving bobs              3 bytes x 16 rows from position table
masked overlays          OR byte + word copy row compositor
background repair        ten short 0x26-byte restore strips
plane assets             sequencer map-mask cycling

That division is efficient on a 1992 PC. Full 320x200 16-color planar redraws are awkward. Updating only the strips and objects that changed is much cheaper, and plane-select writes keep the data layout compact.

The result is a board advert that behaves more like a miniature demo part than a static BBS screen. The top/bottom scrollers and center moving objects can be animated independently, while large logo/backing material stays mostly fixed.

Limits And Next Steps

This analysis is deliberately conservative:

proven:
  packed MZ header
  PKLITE-family bit-reservoir LZ carrier
  raw depacked stream size and hash
  planar VGA register programming
  exact strip/copy/fill kernel shapes

inferred:
  which specific visual object each kernel draws
  exact per-frame ordering
  palette/raster timing
  effect timestamps

not used:
  black frames from failed headless DOSBox-X capture
  old board contact details

The next useful technical pass would be an interactive debugger run after the carrier's far return. Breakpoints on 03C4h, 03CEh, 03CFh, and VRAM writes would let the exact screen bands and object roles be named without guesswork.