Analysis model: gpt-5.5 xhigh

# Mental Blocks by New York Crackers - Technical Dissection

`Mental Blocks` is a 12 August 1989 MS-DOS cracktro / loader by New York
Crackers, also known as NYC. Demozoo credits Epsilon for code, JT for the
crack/code role, and Chiemers for thanks.

Release year: 1989

This pass is source-limited. Demozoo supplies the production metadata and a
public screenshot, and it links a Defacto2 download/external record. The
Defacto2 acquisition target returned a Cloudflare 403 challenge from this
environment, so no archive directory, executable, batch file, text sidecar, or
runtime bytes were acquired here.

That boundary matters because this screen is exactly the sort of late-1980s PC
loader that can be implemented several ways: a batch file typing a prepared
text card, an ANSI/text sidecar, a tiny COM/EXE that writes text cells directly,
or a full 4,000-byte `B800h` page copy. The analysis below separates what the
frame proves from those implementation alternatives.

The public screenshot includes a right-side recruitment/contact box. That box
is omitted from the public copy and not transcribed here.

## Sources

- Demozoo production page:
  https://demozoo.org/productions/363520/
- Demozoo New York Crackers group page:
  https://demozoo.org/groups/53704/
- Demozoo original screenshot URL:
  https://media.demozoo.org/screens/o/2c/0c/aeb5.354814.png
- Defacto2 download acquisition target, Cloudflare-challenged from this
  environment:
  https://defacto2.net/d/a822b1e

Demozoo records:

```text
Title:        Mental Blocks
Group:        New York Crackers
Type:         Cracktro
Platform:     MS-Dos
Released:     12 August 1989
Credits:      Epsilon - Code
              JT - Code (Crack)
              Chiemers - Other (Thanks)
```

## Visual References

| Time | Still | What is happening |
| --- | --- | --- |
| `00:00.000` | ![Mental Blocks public-safe redacted Demozoo frame](images/mental-blocks-nyc-redacted.png) | Public-safe copy of the Demozoo still. The title box, credit box, key-wait prompt, and DOS prompt residue remain visible; the right-side recruitment box is masked. |

Generated text-page layout map:

![Mental Blocks 80x25 text-page layout map](images/mental-blocks-nyc-layout-map.png)

## Acquired Assets

The public screenshot is a 640x400 RGBA PNG:

```text
34dd00e609648547cffcad12531209446e15fe82f84b622f2628282a2ab7d693  Demozoo original screenshot, held only in scratch
a0f03aa71598529b1ac502006d80d8d886e3862f6a7651159b19fa42420a0b9f  images/mental-blocks-nyc-redacted.png
1e402b40d9a3e5a59b8549dbbde2fea22bddabaf7f6457e9792bd6c73502e30a  images/mental-blocks-nyc-layout-map.png
```

Image facts:

```text
Original screenshot: 640 x 400, RGBA PNG, 16,446 bytes, 3 visible colours
Redacted still:      640 x 400, RGBA PNG,  4,661 bytes
Generated map:       640 x 400, RGB PNG,  15,478 bytes
```

The geometric clue is the exact frame size:

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

The text glyphs also have the normal DOS 8x16 look. The likely display model is
therefore an 80x25 text page, not a 320x200 graphics page and not a 640x350 EGA
bitmap.

## Visible Layout

The visible page is almost entirely black-background text:

```text
upper centre     bordered title box
middle left      bordered credit box
middle right     recruitment/contact box, redacted in the public copy
lower middle     key-wait prompt
bottom left      DOSBox-style failed-command residue and C:\> prompt
```

The two bordered boxes use plain text-mode box geometry. There is no visible
palette animation, scroller, raster timing, sprite object, music status, or
transition state in the captured frame. The useful technical object is the
loader page and command handoff, not a demo effect core.

Approximate cell regions:

```text
title box        columns 21..45, rows 0..6
credit box       columns 10..31, rows 8..13
redacted box     columns 55..72, rows 4..20
prompt           columns 18..48, row 19
command residue  columns 0..22, rows 20..21
```

The exact row numbers are approximate because glyph pixels do not occupy the
full 8x16 cell rectangle, but the coordinates line up with an 80-column text
grid.

## Acquisition Boundary

The Defacto2 download request did not return the artifact:

```text
HTTP/2 403
cf-mitigated: challenge
content-type: text/html; charset=UTF-8
```

These facts are therefore not proven:

```text
archive filename and directory listing
whether the visible card is stored as plain text, ANSI, raw B800h cells, or code
whether the runtime is BAT, COM, or EXE
whether the key wait is COMMAND.COM PAUSE, BIOS INT 16h, or DOS console input
whether "run" is an intended game handoff command, a wrapper command, or user input
```

The screenshot still proves enough to model the credible inner loops.

## Most Likely Runtime Shape

The bottom line says `Illegal command: run.` and then returns to `C:\>`. That
wording is characteristic of the DOSBox command shell when an external command
cannot be found. It is probably not hand-drawn by the cracktro itself.

A plausible observed run is:

```text
1. draw or print the static Mental Blocks card
2. wait for a key
3. return to a command script / wrapper
4. try to execute token "run"
5. DOSBox cannot find RUN.COM, RUN.EXE, or RUN.BAT
6. DOSBox prints the error and returns to C:\>
```

That means the visible bottom-left text is valuable evidence of the launch
environment, but it should be treated as post-card shell residue rather than
as part of the original layout.

## Batch / Text Sidecar Path

For this particular frame, a batch-and-text implementation is very credible.
There is no per-pixel art and no colour-specific cell art beyond white/grey on
black. A prepared text card could be printed through the DOS console.

A minimal batch model would look like:

```bat
@echo off
cls
type title.txt
pause
run
```

The exact filenames are unknown. The important point is the control path:

```text
COMMAND.COM reads next batch record
  -> tokenise command
  -> dispatch internal command such as CLS, TYPE, or PAUSE
  -> for an external token, search current directory and PATH
  -> if token is unresolved, print illegal-command diagnostic
```

The `TYPE` inner loop is byte-stream oriented:

```text
while not end_of_file:
    read up to N bytes from the text sidecar
    for each byte:
        if byte == CR:
            hold column until LF handling
        else if byte == LF:
            row += 1
            column = 0
        else if byte == TAB:
            column = next tab stop
        else:
            write byte through the console device at current cursor
            column += 1
            if column == 80:
                column = 0
                row += 1
```

The text card can make separated boxes simply by storing spaces. The console
does not need random access if every row is precomposed to 80 columns.

The final failed command loop is also simple:

```text
token = "run"
if token is not an internal command:
    try RUN.COM in current directory
    try RUN.EXE in current directory
    try RUN.BAT in current directory
    repeat across PATH entries
if no candidate opens:
    print shell diagnostic
    prompt for next command
```

That matches the visible failure state better than a custom cracktro routine
printing the DOS prompt by hand.

## ANSI / Console Control Alternative

If the author used ANSI escape sequences, the text file could position each
box without padding every intervening row:

```text
ESC[2J             clear screen
ESC[1;22H          move to title box origin
write border/top/title rows
ESC[9;11H          move to credit box origin
write credit rows
ESC[20;19H         move to key prompt
```

The inner loop is still stream based:

```text
for byte in stream:
    if byte starts ESC sequence:
        parse numeric parameters
        update cursor position or attribute state
    else:
        draw printable byte at current cursor
        advance cursor
```

The screenshot does not require ANSI. The boxes can be plain padded text, and
the visible page has no colour choreography that would force escape-code use.
ANSI remains only an implementation alternative.

## Tiny COM / EXE Text Writer

A custom program is also plausible. In that case the visible page would be
constructed by direct video memory writes:

```asm
mov  ax,0003h       ; 80x25 colour text mode
int  10h

mov  ax,0B800h
mov  es,ax
mov  ax,0720h       ; grey-on-black space
xor  di,di
mov  cx,80*25
rep  stosw
```

The screen memory model is:

```text
cell_index = row * 80 + column
byte_off   = cell_index * 2
B800:off+0 = character byte
B800:off+1 = attribute byte
```

The title box writer would be a small rectangle routine:

```text
draw_box(x, y, w, h):
    put_cell(x,       y,       top_left,     attr)
    put_cell(x+w-1,   y,       top_right,    attr)
    put_cell(x,       y+h-1,   bottom_left,  attr)
    put_cell(x+w-1,   y+h-1,   bottom_right, attr)

    for col in x+1 .. x+w-2:
        put_cell(col, y,     horizontal, attr)
        put_cell(col, y+h-1, horizontal, attr)

    for row in y+1 .. y+h-2:
        put_cell(x,     row, vertical, attr)
        put_cell(x+w-1, row, vertical, attr)
```

The string writer then becomes:

```text
write_string(row, col, bytes, attr):
    di = ((row * 80) + col) * 2
    for ch in bytes:
        B800:di = ch
        B800:di+1 = attr
        di += 2
```

A centred line helper would compute the column first:

```text
col = box_left + ((box_width - string_length) / 2)
write_string(row, col, string, attr)
```

The whole page can be generated from a tiny table:

```text
record = row, column, attribute, zero-terminated string
while record.row != 0xff:
    write_string(record.row, record.column, record.text, record.attr)
    record = next_record
```

That is enough for the visible title, credit rows, prompt, and any private
right-side text without requiring a bitmap renderer.

## Raw B800h Page Copy Alternative

If the author stored the complete screen as character/attribute cells, the
runtime would be even smaller:

```text
80 columns * 25 rows * 2 bytes = 4000 bytes
```

The display loop is one copy:

```asm
mov  ax,0B800h
mov  es,ax
xor  di,di
mov  si,offset screen_image
mov  cx,2000        ; words
rep  movsw
```

This is attractive for a static loader because it preserves exact spacing and
attributes with no box/string code. The downside is size: 4 KB is large for
something that could be represented by a dozen text records. In 1989 both
approaches are plausible.

If compressed, the decompressor would target the same 4,000-byte cell page:

```text
dst = B800:0000
while dst < B800:0FA0:
    control = *src++
    if control says literal:
        copy N character/attribute words
    else:
        repeat one character/attribute word N times
```

This page has long runs of blank black cells, so even a trivial run-length
format would compress well.

## Key Wait

There are three credible key waits:

```text
batch path          COMMAND.COM PAUSE or a small helper waits for a key
custom DOS path     INT 21h AH=08h reads one character without echo
custom BIOS path    INT 16h AH=00h waits for a keystroke
```

The visible prompt is not the standard MS-DOS `PAUSE` wording, so a custom
prompt plus BIOS/DOS key wait is possible. But the later `run` failure means a
batch or wrapper was involved somewhere in the capture path.

BIOS-style key wait:

```asm
xor  ah,ah
int  16h            ; wait, returns scan code in AH and ASCII in AL
```

DOS no-echo key wait:

```asm
mov  ah,08h
int  21h            ; wait for console character, no echo
```

After the key, a custom program could exit to DOS:

```asm
mov  ax,4C00h
int  21h
```

The shell or batch layer would then attempt the next command.

## What The Frame Does Not Show

The captured frame does not support claims about:

```text
scrolling text
music playback
timer interrupt hooks
VGA register effects
sprite or bitmap blitters
decompression format
actual crack patch bytes
the real game executable handoff
```

Those may exist in the missing artifact, but the preserved still does not show
them. From the evidence in hand, `Mental Blocks` is best described as a static
NYC release card with a key gate and a failed post-card command handoff.

## Why This Still Matters

This is a useful 1989 PC cracking artifact precisely because it is small and
plain. It shows the pre-standard demo/cracktro vocabulary on PC: text-mode
boxes, group credits, a release title, a key prompt, and a DOS command chain.

The inner loop is not a graphics trick. It is the shell/text-output path:

```text
prepare static card
emit rows into the 80x25 console
wait for a key
return to command processing
try the next handoff token
fall back to a DOS prompt when that token is missing
```

That is the part the screenshot actually proves.
