Analysis model: gpt-5.5 xhigh

# U.S.S. Stinger Cracktro by Miami Cracking Machine - Technical Dissection

`U.S.S. Stinger Cracktro` is a 19 June 1989 MS-DOS cracktro by Miami Cracking
Machine. Demozoo lists it as a cracktro for MS-DOS and tags it as
`no-credits-given`.

Release year: 1989

This is a source-limited pass. Demozoo lists a Defacto2 download and external
record, but the Defacto2 download is Cloudflare-challenged from this
environment, so I did not acquire a verified executable. The analysis below is
bounded by the public Demozoo metadata and three public screenshots. It does
not claim exact file offsets, exact table bytes, exact slope constants, or a
recovered binary trace.

One of the public screenshots contains old BBS/contact rows. This article uses
a redacted derivative and does not transcribe those details.

## Sources

- Demozoo production page:
  https://demozoo.org/productions/362651/
- Defacto2 external record:
  https://defacto2.net/f/b02b5f2
- Defacto2 download listed by Demozoo, not acquired here:
  https://defacto2.net/d/b02b5f2

Demozoo records:

```text
Title:        U.S.S. Stinger Cracktro
Group:        Miami Cracking Machine
Type:         Cracktro
Platform:     MS-Dos
Released:     19 June 1989
Tags:         no-credits-given
Advert for:   several BBS boards, not transcribed here because the entries are
              old contact-style records
```

Screenshot hashes used while preparing the public-safe images:

```text
6a85c9ca41a4f2d04439286523c9897b2fe4d313114f46c9caffc1f09cb5dd96  contact/exit screenshot, held only in scratch
0ec5f913e38c383fcea76ca9eeedf2ce3c993bc291b2b56c0a1cb7877ffc4066  images/uss-stinger-mcm-ega-title.png
74e9b680b1e494bdfc05e986a3bf36f44d0b425c9722a82a501bab1be5ce460d  images/uss-stinger-mcm-menu-selector.png
1d3f628909b51b079aaebf40a3a276d8e98206b099142ea86e493d248a814926  images/uss-stinger-mcm-contact-redacted.png
019c795589bda86d85ab9eae536c68ba66b0c71b7a89d9a037e8b90754befa8c  images/uss-stinger-mcm-flow-map.png
```

## Visual References

| Stage | Image | Notes |
| --- | --- | --- |
| selector | ![U.S.S. Stinger menu selector](images/uss-stinger-mcm-menu-selector.png) | 80x25 text-mode selector offering Monochrome, CGA, EGA, and Tandy 1000 output paths. |
| EGA title scene | ![U.S.S. Stinger EGA flying-card MCM title scene](images/uss-stinger-mcm-ega-title.png) | 640x350 EGA-style title frame with repeated perspective `MCM` placards, chromatic edge offsets, and a small `Presenting...` string. |
| exit/contact page, redacted | ![U.S.S. Stinger redacted exit text page](images/uss-stinger-mcm-contact-redacted.png) | 80x25 text-mode page after the title path. The old contact rows are masked. |

![U.S.S. Stinger visible pipeline and inner-loop model](images/uss-stinger-mcm-flow-map.png)

## Visual-To-Code Concordance

This is source-limited, so the concordance is bounded by public screenshots and
the generated pipeline model. It does not claim exact executable offsets. It
does tie each published visual artifact to the most constrained renderer model
that the evidence supports.

Visual-to-mechanism map:

```text
menu selector still        80x25 text mode, B800h character/attribute cells,
                           BIOS keyboard branch to mono/CGA/EGA/Tandy paths
EGA title still            INT 10h mode 10h, planar A000h, table-driven
                           perspective card spans, logo/fringe blits
redacted exit page         return to 80x25 text mode, row-fragment writer,
                           key gate and DOS/loader return
pipeline map              selector -> EGA mode-10h title -> text exit page
```

The selector screenshot proves a text-mode branch surface. Its geometry is
`640x400`, which matches 80 columns by 25 rows with an 8x16 font. The displayed
Monochrome/CGA/EGA/Tandy choices make a BIOS-keyboard dispatch loop the most
bounded model: read a key, normalize it, and branch to one of four renderer
paths. The `C` path is the one supported by the public EGA title screenshot.

The title screenshot proves a graphics-mode path rather than another text page.
Its `640x350` geometry matches EGA mode `10h`: 80 bytes per scanline per plane,
four bitplanes at `A000h`, and 28000 byte positions per plane. That geometry
rules out ordinary mode-13h chunky VGA and supports the planar set/reset +
bit-mask span model described below.

The repeated perspective `MCM` cards constrain the likely inner loop. A
table-driven card pass can describe every visible card with top/bottom x
coordinates, y/height, logo variant, and edge flags. Each card then becomes a
trapezoid span-fill problem:

```text
for each scanline:
    interpolate left/right x
    convert x range to EGA byte address and edge masks
    fill left edge, full middle bytes, and right edge
```

The chromatic red/cyan/yellow fringes are consistent with reusing the same mask
or edge writer several times with one-pixel offsets and different EGA
set/reset colours. The screenshot alone cannot prove whether the `MCM` logos
are pre-rendered variants or runtime-scaled, so the article keeps both options
bounded; it only claims the required class of operation: planar mask blits over
filled cards.

The redacted exit screenshot proves the run returns to text mode after the EGA
title path. Its `640x400` geometry again matches 80x25 text cells. The visible
layout is naturally represented as a list of row fragments with attributes,
written to `B800h` and followed by a key wait. The redaction boundary is
important: the screenshot is used to prove the exit-page structure, not to
publish the historical contact rows.

So the public evidence supports one visible pipeline:

```text
text selector -> EGA flying-card renderer -> text exit/contact page
```

It does not prove the exact executable bytes, whether the other renderer paths
are complete, or whether the EGA title animates before the captured still. Any
future binary acquisition should replace this bounded concordance with exact
offsets, table bytes, and branch targets.

## What The Screenshots Prove

This one is technically richer than the earlier MCM loaders in this pass.
`Speed Ball Loader` and `Dr Dooms Revenge Loader` only prove text-mode
loader/prompt surfaces. `U.S.S. Stinger Cracktro` proves a three-part visible
pipeline:

1. a text-mode video selector;
2. a 640x350 EGA title renderer;
3. a text-mode exit/contact page.

The selector and exit screenshots are 640 by 400 pixels. Their glyphs align to
80 columns by 25 rows:

```text
80 columns * 8 pixels  = 640 pixels
25 rows    * 16 pixels = 400 pixels
```

That is normal colour text mode with character/attribute cells.

The title screenshot is 640 by 350 pixels. That is the canonical EGA high
resolution 16-colour mode:

```text
INT 10h AX=0010h
logical pixels:       640 * 350
bytes per scanline:   640 / 8 = 80 per plane
bytes per plane:      80 * 350 = 28000
video segment:        A000h, planar EGA
```

The selector explicitly offers `C` for EGA, and the public title still has the
right 640x350 geometry, so the safest model is:

```text
selector key C -> EGA mode 10h -> flying-card title scene -> exit text page
```

The screenshots do not prove the monochrome, CGA, or Tandy implementations,
but they prove the program was written as a multi-renderer cracktro rather than
a single hard-coded text page.

## Selector Text Page

The selector is sparse:

```text
Menu Selector
An MCM Production.

Enter 'A' for Monochrome
Enter 'B' for CGA
Enter 'C' for EGA
Enter 'D' for Tandy 1000
```

The direct text-mode memory model is:

```text
segment = B800h for colour text
offset  = (row * 80 + column) * 2
byte 0  = character
byte 1  = attribute
```

A compact selector can clear the screen with a word fill:

```asm
mov  ax,0003h
int  10h
mov  ax,0B800h
mov  es,ax
xor  di,di
mov  ax,0720h
mov  cx,2000
cld
rep  stosw
```

Expanded inner loop:

```text
for cell = 0..1999:
    ES:[DI+0] = 20h       ; space
    ES:[DI+1] = 07h       ; grey on black
    DI += 2
```

The line writer is the same small hot loop used by many 1980s loaders:

```asm
; DS:SI -> text
; AH    = attribute
; DI    = destination cell offset
write_text:
lodsb
test al,al
jz   done
stosw
jmp  write_text
done:
```

The key gate is probably BIOS keyboard input:

```asm
read_key:
mov  ah,00h
int  16h
and  al,11011111b       ; uppercase ASCII letters
cmp  al,'A'
je   mono_path
cmp  al,'B'
je   cga_path
cmp  al,'C'
je   ega_path
cmp  al,'D'
je   tandy_path
jmp  read_key
```

The visible selector text makes the branch table meaningful. `C` is not just a
prompt label; it is the path that reaches the 640x350 title frame shown by the
second screenshot.

## EGA Mode Setup

For the EGA path, the obvious setup is:

```asm
mov  ax,0010h
int  10h                 ; 640x350 16-colour EGA
mov  ax,0A000h
mov  es,ax
```

Planar EGA is not a linear one-byte-per-pixel framebuffer. Each byte address
represents eight horizontal pixels, and four bitplanes combine into a 4-bit
colour index:

```text
pixel colour bit 0 -> plane 0
pixel colour bit 1 -> plane 1
pixel colour bit 2 -> plane 2
pixel colour bit 3 -> plane 3
```

The CPU still writes to a single address range at `A000h`; the sequencer and
graphics-controller registers decide which planes are affected and how the
incoming byte is combined. The useful register-level model for filled spans is:

```text
3C4h index 02h  map mask              select writable planes
3CEh index 00h  set/reset             colour bits
3CEh index 01h  enable set/reset      use set/reset for selected planes
3CEh index 08h  bit mask              select pixels inside current byte
```

That is enough to draw the white placards and coloured fringe pixels without
performing four separate per-plane CPU loops for every colour.

## EGA Clear Loop

To clear the EGA screen to black:

```asm
mov  dx,03C4h
mov  ax,0F02h            ; map mask: all four planes
out  dx,ax

mov  ax,0A000h
mov  es,ax
xor  di,di
xor  ax,ax
mov  cx,14000            ; 28000 bytes / 2
cld
rep  stosw
```

Expanded:

```text
for word = 0..13999:
    A000:[DI+0] = 00h on all enabled planes
    A000:[DI+1] = 00h on all enabled planes
    DI += 2
```

Because all planes are enabled, one CPU byte write clears the corresponding
byte position in all four planes. The program does not need 112000 CPU byte
writes for a full clear; it needs 28000 byte positions, or 14000 word stores.

## Flying-Card Scene Structure

The EGA title frame is made from repeated white placards arranged in
perspective lanes:

- a large central `MCM` card;
- a foreground lower `MCM` card;
- left and right lanes of smaller cards receding upward;
- clipped foreground cards at the bottom and sides;
- coloured red/cyan/yellow edge offsets around card boundaries and logo bits;
- a small slanted `Presenting...` string near the lower right.

The compact 1989 way to build this is a table-driven card pass:

```text
card_record:
    y_top
    height
    x_left_top
    x_right_top
    x_left_bottom
    x_right_bottom
    logo_variant_or_scale
    edge_flags
```

Draw order matters. The frame has overlapping foreground cards, so the simple
strategy is back-to-front:

```text
sort/draw cards from farthest y to nearest y:
    fill placard
    draw edge offsets
    blit logo
```

No Z-buffer is needed. Overdrawing nearer cards over farther cards is enough.

## Trapezoid Span Filler

Each perspective card can be drawn as a trapezoid or skewed rectangle. The
inner loop is scanline span filling:

```text
left  = x_left_top  << 16
right = x_right_top << 16
dl    = ((x_left_bottom  - x_left_top)  << 16) / height
dr    = ((x_right_bottom - x_right_top) << 16) / height

for y in y_top .. y_top + height - 1:
    draw_span(y, left >> 16, right >> 16, colour)
    left  += dl
    right += dr
```

The EGA span writer then converts pixel coordinates into byte addresses and
masks:

```text
byte_left  = x1 >> 3
byte_right = x2 >> 3
bit_left   = x1 & 7
bit_right  = x2 & 7
dst        = A000: y * 80 + byte_left
```

For a one-byte span:

```text
mask = (0ffh >> bit_left) & (0ffh << (7 - bit_right))
program bit mask = mask
write dummy byte to dst
```

For a multi-byte span:

```text
program colour through set/reset
program bit mask = left_edge_mask
write dummy byte at first byte

program bit mask = 0ffh
REP STOSB middle full bytes

program bit mask = right_edge_mask
write dummy byte at last byte
```

The `dummy byte` is usually `0ffh` or any convenient value when set/reset is
enabled; the EGA graphics controller supplies the colour bits.

A plausible assembly skeleton:

```asm
; BL = colour index
; ES:DI = A000 destination byte
; CX = number of full middle bytes
set_colour:
mov  dx,03CEh
mov  al,00h              ; set/reset index
out  dx,al
inc  dx
mov  al,bl
out  dx,al
dec  dx
mov  ax,0F01h            ; enable set/reset on all planes
out  dx,ax

left_edge:
mov  ax,mask_for_left_edge
; write index 08h / mask value here
mov  al,0FFh
stosb

middle:
; bit mask already 0FFh
rep  stosb

right_edge:
; program right mask
mov  al,0FFh
stosb
```

The important point is that the perspective look is generated by changing the
left and right x positions per scanline, not by moving whole rectangular
sprites only.

## White Placard Fill

The placards are mostly solid white. In 16-colour EGA, white is colour `0Fh`.
With set/reset enabled:

```text
set/reset = 0Fh
enable set/reset = 0Fh
draw trapezoid spans
```

That emits `1111b` into the four planes for the selected pixels. The black
background is already clear, so the white card fill pass can be pure overwrite.

The lower foreground cards are clipped by the screen edges. Clipping can be
done before the span call:

```text
if y < 0 or y >= 350: skip
x1 = max(0, x1)
x2 = min(639, x2)
if x1 > x2: skip
```

That is sufficient for the partial cards visible at the bottom and sides.

## Logo And Letter Blitter

The repeated `MCM` logos could be implemented in two ways:

1. pre-rendered bitmap variants for the few visible card sizes;
2. a runtime scaler that samples a source logo into the card rectangle.

The screenshot alone cannot choose between them. For a 1989 cracktro, a small
set of pre-rendered or pre-sliced logo variants is likely because it avoids a
slow multiply/divide-heavy scaler during display. The table would point each
card at a source bitmap:

```text
card.logo = logo_big, logo_mid, logo_small, logo_tiny
```

The 1bpp logo blit inner loop is:

```text
for glyph_y in 0..logo_h-1:
    dst = A000: (card_y + glyph_y) * 80 + (card_x >> 3)
    carry = 0
    for source_byte in row:
        shifted = (source_byte >> x_phase) | carry
        carry = source_byte << (8 - x_phase)
        apply shifted bits through EGA bit mask / latch path
```

If the bitmap is byte-aligned, the loop is simpler:

```asm
row_loop:
lodsb                    ; source 1bpp mask
or   al,al
jz   skip_byte
; program bit mask = AL or merge through latch
mov  es:[di],al
skip_byte:
inc  di
loop row_loop
```

If the source is not byte-aligned, the blitter has to shift and merge each
source byte across destination byte boundaries. The large central `MCM` card
is positioned so an explicit aligned variant would be cheap.

## Chromatic Fringe Pass

The title frame has visible red/cyan/yellow offsets around edges and letters.
That can be produced by drawing the same edge or logo mask several times with
small offsets:

```text
draw_mask(x - 1, y,     cyan)
draw_mask(x + 1, y,     red)
draw_mask(x,     y + 1, yellow)
draw_mask(x,     y,     black or dark interior)
```

For card borders:

```text
draw_top_edge(y-1, red)
draw_left_edge(x-1, cyan)
draw_bottom_edge(y+1, yellow)
draw_main_edge(white or black)
```

This explains the multi-colour staircase around the cards without requiring a
different renderer. The same EGA set/reset span or line writer can draw all of
the colour-offset passes.

The border line writer is a thin version of the span filler:

```text
for y in edge_y0..edge_y1:
    x = x0 + slope * (y - edge_y0)
    set one or two EGA masked pixels at x,y
```

For shallow horizontal edges, it can instead use `draw_span` with a height of
one or two scanlines.

## Perspective Lane Tables

The repeated cards are not arbitrary. They line up into lanes:

```text
left lane:    x moves inward, y moves upward, width shrinks
center lane:  x remains near center, y moves upward, width shrinks
right lane:   x moves inward from right, y moves upward, width shrinks
foreground:   clipped large cards overdraw the bottom edge
```

The compact data representation is a lane generator:

```text
for i in 0..lane_count-1:
    y = y0 - i * y_step
    w = w0 - i * w_step
    h = h0 - i * h_step
    x = x0 + i * x_step
    draw_card(x, y, w, h, skew)
```

But the exact screenshot has irregular placements and clipped side cards, so a
literal card table is also plausible. The choice is a size/speed tradeoff:

- lane generator: smaller code/data, less exact composition;
- literal card table: more bytes, exact composition, simpler draw loop.

For a cracktro splash, exact composition is usually worth the small data table.

## Slanted `Presenting...` String

The lower-right string is small and slanted upward. It can be drawn as either:

- a tiny pre-rendered bitmap;
- text glyphs whose destination x/y offsets advance diagonally.

The diagonal glyph loop is:

```text
x = base_x
y = base_y
for char in "Presenting...":
    draw_small_glyph(char, x, y)
    x += glyph_advance
    y -= one_pixel_every_n_chars
```

The glyph draw itself is just a small version of the 1bpp EGA mask blitter.
Because the string is tiny and static, a pre-rendered bitmap is again likely.

## Exit Text Page

The third visible stage is a text-mode page after the EGA title. The top
contact-style rows are redacted here, but the remaining visible structure is:

```text
separator line
redacted contact block
yellow greeting paragraph
red thanks line
blue member-name block
grey "Press any key to continue."
grey "Hope you enjoyed this MCM Production.."
DOS prompt visible after return
```

Technically this is back to the same `B800h` row-fragment model as the
selector:

```text
clear text page
for fragment in page_fragments:
    DI = (row * 80 + column) * 2
    AH = fragment.attribute
    write characters with STOSW
wait for any key
restore/exit/return to DOS or wrapper
```

The visible `C:\>` prompt in the screenshot proves the captured run reached
DOS after the cracktro/loader path ended. It does not prove whether the actual
release normally launched a child game first, because the binary was not
available here.

## Relationship To The Earlier MCM Loaders

The three MCM items now form a useful progression:

```text
Speed Ball Loader       14 Apr 1989   text selector for CGA/Tandy/EGA
Dr Dooms Revenge Loader  4 May 1989   fixed text page, any-key gate
U.S.S. Stinger Cracktro 19 Jun 1989   selector + 640x350 EGA title scene
```

The common shell is still small-loader style:

- text-mode menu or prompt pages;
- direct or BIOS-assisted text output;
- keyboard gates through `INT 16h`;
- hidden continuation after the visible screen.

The new technical step is the EGA scene. It requires mode switching, planar
memory writes, span masks, and a real drawing table. That makes `U.S.S.
Stinger` a better candidate for "classic inner-loop" analysis than the two
mostly text-only MCM loaders.

## What Is Not Proven

The screenshots do not prove:

- exact executable bytes or file layout;
- whether the EGA cards are generated from lane formulas or a literal table;
- whether logo variants are pre-rendered or runtime-scaled;
- whether the non-EGA renderers are complete and distinct;
- whether the title scene animates before the captured still;
- whether sound exists;
- whether the exit page is reached before or after a child game loader.

The strongest bounded conclusion is that `U.S.S. Stinger Cracktro` is a 1989
MS-DOS multi-renderer cracktro whose visible path is best modelled as a
text-mode selector, an EGA mode-10h flying-card renderer driven by
table-controlled trapezoid/span fills and planar logo/fringe blits, and a
final text-mode row-fragment page with a key gate and DOS/loader return.
