Analysis model: GPT-5 (Codex), reasoning level not exposed

# Grand Prix Circuit: The Cycles Cracktro by Future Brain Incorporated - Technical Dissection

`Grand Prix Circuit: The Cycles Cracktro` is a 16 November 1989 MS-DOS
cracktro by Future Brain Incorporated. Demozoo credits Blood for code,
Bitfreak for graphics, and Capt. Blood for the crack.

Release year: 1989

This one is much more interesting than the late-1989 text-card loaders. The
preserved executable is a full MZ program that still contains substantial
original game material, but its entry point has been redirected into an
appended cracktro wrapper. The wrapper shows an EGA intro, scrolls text with a
BIOS-font bit shifter, moves the whole picture by changing the CRTC start
address, then restores the original loader state and far-jumps into the game.

The runtime scroller includes old contact-style material later in the sequence.
This writeup does not reprint or image that part. The public MP4 and runtime
still are cut to the safe opening title/logo interval before the contact-
adjacent text.

![Grand Prix Circuit The Cycles Cracktro direct DOSBox-X opening runtime, silent](videos/grand-prix-cycles-cracktro-opening-silent.mp4)

## Sources

- Demozoo production page:
  https://demozoo.org/productions/138997/
- Pouet production page:
  https://www.pouet.net/prod.php?which=56607
- Scene.org file page:
  https://files.scene.org/view/demos/compilations/lost_found_and_more/cracktro/grand_prix_circuit_the_cycles_cracktro.zip
- Scene.org archive:
  https://archive.scene.org/pub/demos/compilations/lost_found_and_more/cracktro/grand_prix_circuit_the_cycles_cracktro.zip

## Direct Runtime Capture

The 2026-07-21 direct route used DOSBox-X 2026.01.02 with `machine=svga_s3`,
`cputype=386`, `cycles=fixed 12000`, SDL dummy video, `nosound=true`, Sound
Blaster disabled, GUS disabled, PC speaker disabled, and no MIDI device:

```text
DX-CAPTURE /V FBI.EXE
```

The raw DOSBox-X MPEG-TS capture is kept private because the container includes
an AAC stream even though no host or guest audio was enabled:

```text
capture/grand-prix-circuit-cycles-cracktro/headless-captures/fbi_000.mts
duration: 33.430155 s
video:    H.264, 640x400, display aspect reported as 4:3
audio:    AAC stream present in raw capture
size:     8,912,896 bytes
```

The published MP4 is a 10-second, video-only opening excerpt. It covers the
logo, top identity strip, initial scroller identity text, and bottom credits,
and stops before the later contact-adjacent scroller material:

```text
videos/grand-prix-cycles-cracktro-opening-silent.mp4
duration: 10.001958 s
video:    H.264, 640x480
audio:    no audio stream
size:     689,366 bytes
SHA-256:  c03c3b3e666fa6172b7be187c471debf0d1a59a2dd9e3fa747d190f7a5c5ba81
```

Representative direct runtime still:

```text
images/grand-prix-cycles-cracktro-runtime-00-05.png
SHA-256: c733ee1b1cbb7c1ed8aaee422462b884ca60775210b0c5774ff6142038585eef
```

![Grand Prix Circuit The Cycles Cracktro runtime frame at 00:05 showing the FBI logo, identity strip, and intro credits](images/grand-prix-cycles-cracktro-runtime-00-05.png)

The old public title frame remains useful as an external reference, but the
new frame above is from the exact local Scene.org release under the muted
DOSBox-X route.

## Visuals And Map

| Time | Still | What is happening |
| --- | --- | --- |
| `00:05.000` | ![Grand Prix Circuit The Cycles Cracktro direct runtime title frame](images/grand-prix-cycles-cracktro-runtime-00-05.png) | Direct muted DOSBox-X frame. The runtime has set EGA mode, copied the planar logo/background into A000h, and is in the intro display loop with the top and bottom text strips active. |
| external | ![Grand Prix Circuit The Cycles Cracktro public title frame](images/grand-prix-cycles-cracktro-demozoo.jpg) | Public title-frame reference from Demozoo via Scene.org, retained as an external visual cross-check. |

Generated execution map:

![Grand Prix Circuit The Cycles Cracktro recovered execution map](images/grand-prix-cycles-cracktro-execution-map.png)

## Archive

Scene.org stores a single ZIP:

```text
bedf6f09b46d707bec7ad57e853c7c5e2c002e3299547ceada808c8acb8741c8  grand_prix_circuit_the_cycles_cracktro.zip
```

ZIP contents:

```text
FBI.EXE  124883 bytes  1989-09-16 02:36
```

Extracted executable hash:

```text
4592f8c6e826fc78b0ffbee4e34278ce4da7383e8a4947dc280104f73e6e7827  FBI.EXE
```

The ZIP timestamp says September 1989, while Demozoo gives 16 November 1989
and the embedded scroll text also says the crack was done on `16-11-89`.
For the article date, the release metadata and embedded date are the stronger
evidence.

## MZ Header And Load Image

`FBI.EXE` is a normal DOS MZ executable:

```text
signature            MZ
last page bytes      01D3h
pages                00F4h
relocation count     0000h
header paragraphs    0020h  -> 512-byte header
minimum allocation   08DAh
maximum allocation   08DAh
initial SS:SP        20C0h:0080h
initial CS:IP        1A13h:0100h
image bytes          124371
```

No relocation entries are present. The intro solves this by keeping its own
far pointers relative to the segment that DOS actually chose, then rebasing
the original game pointer before handing control back.

The entry file offset is:

```text
header 0200h + CS 1A13h * 10h + IP 0100h = file offset 1A430h
```

That places the cracktro code near the end of the executable, after the
original game code and data. Earlier strings include Microsoft C runtime text
and game resource names such as `grandfnt.fnt`, `bikes.inf`, `pc.drv`, and
`pc.vce`, confirming that this file is not just a standalone intro.

## Entry Wrapper

Execution starts at `CS:0100`:

```asm
0100  FA              cli
0101  E9 10 02        jmp 0314
0104  12 00           original game IP seed
0106  77 19           original game CS seed
0108  13 1A           intro link-time CS seed
```

The word at `0108h` is the intro's expected CS value, `1A13h`. The pair at
`0104h:0106h` is the original game far pointer, before runtime rebasing.

The wrapper setup at `0314h` does four things:

```asm
0314  mov ax,es        ; save inherited loader state
0316  mov cs:[010E],ax
031A  mov ax,ds
031C  mov cs:[0110],ax
0320  mov ax,ss
0322  mov cs:[010C],ax
0326  mov ax,sp
0328  mov cs:[010A],ax

032C  mov ax,cs        ; intro owns all segments while running
032E  mov ds,ax
0330  mov es,ax
0332  mov ss,ax
0334  mov sp,0312h
0337  jmp 0369h
```

`0369h` jumps into the real intro body at `0C32h`. The local stack is tiny,
but the cracktro code is shallow and uses mostly register loops, so it is
enough.

The restore path at `033Ah` reverses the setup:

```asm
033A  mov ax,cs
033C  sub ax,[0108]    ; actual CS - expected CS
0340  add ax,[0106]    ; rebase original game segment
0344  mov [0106],ax

0347  mov ax,cs
0349  sub ax,[0108]
034D  add ax,[010C]    ; rebase saved SS
0351  mov ss,ax
0353  mov sp,[010A]

0357  mov ax,cs:[010E]
035B  mov es,ax
035D  mov ax,cs:[0110]
0361  mov ds,ax
0363  sti
0364  jmp far [cs:0104]
```

That last instruction is the handoff into the game. The cracktro is therefore
an MZ entry-point hijack, not a separate loader file.

## EGA Probe And Fallback Split

The intro body begins at `0C32h`:

```asm
0C32  mov ax,cs
0C34  push ax
0C35  pop ds
0C36  mov bl,10h
0C38  mov ah,12h
0C3A  int 10h          ; EGA/VGA query, BL=10h subfunction
0C3C  cmp bl,10h
0C3F  jne ega_path
0C41  jmp cga_path
```

On EGA/VGA, BIOS changes `BL`, so the program enters the EGA path. If `BL`
remains `10h`, the program assumes no EGA support and jumps to the CGA
fallback at `1043h`.

The EGA path sets mode `0Dh`:

```asm
0C44  mov ax,000Dh
0C47  int 10h
```

Then it asks for display-combination information with `INT 10h AX=1A00h`.
If the result reports VGA-class display types `07h` or `08h`, it sets a flag
at `084Dh`. That flag changes later CRTC values, so the same code can run on
EGA and VGA with slightly different vertical treatment.

## Retrace Wait Helpers

Two tight helpers synchronize register updates:

```asm
0861  cli
0862  mov dx,03DAh
0865  in  al,dx
0866  test al,08h
0868  je  0865h       ; wait until vertical retrace is active
086A  sti
086B  ret

086C  cli
086D  mov dx,03DAh
0870  in  al,dx
0871  test al,08h
0873  jne 0870h       ; wait until retrace is over
0875  sti
0876  ret
```

The main loop uses both sides of the retrace window. It writes the CRTC start
address after waiting out the old retrace, then waits for the next retrace
before touching attribute-controller state.

## EGA CRTC Setup

After mode setup, the EGA path rewrites CRTC registers directly through
`03D4h`:

```asm
0C6F  mov dx,03D4h
0C72  mov al,13h
0C74  mov ah,50h
0C76  out dx,ax       ; CRTC offset = 50h

0C9E  mov dx,03D4h
0CA1  mov al,0Dh
0CA3  mov ah,8Bh
0CA5  out dx,ax       ; start address low
0CA6  dec al
0CA8  mov ah,2Dh
0CAA  out dx,ax       ; start address high
```

The important value is CRTC register `13h = 50h`. In this graphics mode, that
makes the logical scanline stride `0A0h` bytes per plane instead of the normal
mode-0Dh `28h` bytes. The intro draws a much wider virtual surface and then
moves the visible window through it by changing the CRTC start address.

That is the hardware trick behind the smooth-looking motion: most frames do
not redraw the big logo. They change where the CRT starts reading from video
memory.

## Planar Logo Copy

The large title/background is copied into EGA memory plane by plane. For each
plane, the code sets:

- sequencer map mask at `03C4h`, index `02h`;
- graphics-controller read-map index at `03CEh`, index `04h`;
- `ES = A000h`;
- source pointer inside the intro segment;
- destination `A000:2E6Bh`.

Plane 0 starts at `CS:10AFh`; the other planes are spaced by `0CFDh` bytes:

```asm
plane 0 source = 10AFh
plane 1 source = 10AFh + 0CFDh
plane 2 source = 10AFh + 19FAh
plane 3 source = 10AFh + 26F7h
```

The row copy loop is repeated four times with different map masks:

```asm
mov cx,005Fh          ; 95 rows
mov di,2E6Bh
mov si,plane_source

row:
    push cx
    mov  cx,0023h     ; 35 bytes of bitmap data
    rep  movsb
    add  di,007Dh     ; 35 + 125 = 160-byte virtual stride
    pop  cx
    loop row
```

The `35` useful bytes are only 280 pixels of data, but each row advances by
`0A0h` bytes. This matches the widened CRTC offset and leaves off-screen space
for panning.

## Solid Band Painter At 09C9h

The helper at `09C9h` fills rectangular spans in four EGA planes. It is called
several times to build top and bottom bands around the logo.

The routine's input shape is:

```text
DI  destination byte offset in A000h
CX  byte count
BX  byte pattern for planes 0 and 1
SI  byte pattern for planes 2 and 3
```

The first two plane passes use `BL` and `BH`:

```asm
09CC  mov ax,A000h
09CF  mov es,ax

09D1  mov dx,03CEh
09D4  mov ax,0104h
09D7  out dx,ax       ; read map 1
09D8  mov dx,03C4h
09DB  mov ax,0102h
09DE  out dx,ax       ; write plane 0
09DF  mov al,bl
09E1  mov es:[di],al
09E4  inc di
09E5  loop 09E1h

09EB  mov dx,03CEh
09EE  mov ax,0204h
09F1  out dx,ax
09F2  mov ax,0202h
09F5  mov dx,03C4h
09F8  out dx,ax       ; write plane 1
09F9  mov al,bh
09FB  mov es:[di],al
09FE  inc di
09FF  loop 09FBh
```

Then it copies `SI` into `BX`:

```asm
0A03  mov bx,si
```

The final two passes use the low and high bytes of `SI` as the patterns for
planes 2 and 3. It is a compact way to fill four EGA bitplanes with four
independent all-byte patterns.

## BIOS Font Extraction

The intro does not store a separate font for its text. It reads the BIOS 8x8
font from `F000:FA6Eh`.

The helper at `0A3Bh` takes a string pointer in `DX` and expands 40 characters
into a local 8-row mask buffer at `10ABh`:

```asm
0A3B  mov ax,F000h
0A3E  mov es,ax
0A40  xor bx,bx       ; output x position 0..39

char_loop:
0A43  mov si,dx
0A45  mov al,[si]     ; character code
0A4B  shl ax,3        ; 8 bytes per glyph
0A4F  mov si,ax
0A53  xor di,di
0A55  add di,bx

glyph_row:
0A57  mov al,es:[si+FA6Eh]
0A5C  mov [di+10ABh],al
0A60  inc si
0A61  add di,0028h    ; next row, 40-byte row stride
0A66  cmp ah,08h
0A69  jne glyph_row

0A6B  inc dx
0A6C  inc bx
0A6D  cmp bx,0028h
0A70  jne char_loop
```

That produces a rectangular 40-column, 8-scanline, one-bit text mask. Later
helpers XOR those masks into EGA memory at two vertical positions:

- `0A73h` draws the top text around `A000:0280h`;
- `0AD1h` draws lower text around `A000:2580h`.

Both draw through selected EGA planes, so the same one-bit glyph masks become
coloured text rather than plain monochrome pixels.

## Scroller Shift Kernel At 0B2Fh

The most classic inner loop is the horizontal scroller. The scroll text lives
inside the intro segment starting near `03D1h`. Every eighth call, the code
fetches the next character and copies its BIOS glyph into an 8-byte staging
area at `0851h`.

Character fetch:

```asm
0B34  inc byte [0848h]
0B38  cmp byte [0848h],08h
0B3D  jne shift_existing

0B3F  mov byte [0848h],00h
0B44  mov ax,[082Dh]      ; scroll text index
0B47  add word [082Dh],1
0B4E  mov al,[si+03D1h]   ; next scroll character
0B52  cmp al,00h
0B54  jne have_char
0B56  mov word [082Dh],0  ; wrap on NUL
0B5C  jmp 0B44h
```

Glyph copy:

```asm
0B5E  xor si,si
0B60  xor ah,ah
0B62  shl ax,1
0B64  shl ax,1
0B66  shl ax,1            ; char * 8
0B68  mov si,ax
0B6E  mov al,es:[si+FA6Eh]
0B73  mov [di+0851h],al
0B77  inc si
0B78  inc di
0B79  inc ah
0B7B  cmp ah,08h
0B7E  jne 0B6Eh
```

The bit shift is the core. The scroller buffer is eight rows by 43 bytes,
stored from `10DAh` onward. For each row, the new glyph bit is rotated into
carry, then the carry is rotated through the row's 43 bytes from right to
left:

```asm
0B80  mov si,002Bh       ; row end: 43 bytes
0B83  xor bl,bl          ; row counter
0B85  clc
0B86  xor di,di          ; glyph row index

row:
0B88  mov al,[di+0851h]  ; staged glyph row
0B8C  rcl al,1
0B8E  mov [di+0851h],al  ; consume next glyph bit

0B92  mov cx,002Bh
shift_byte:
0B95  mov al,[si+10DAh]
0B99  rcl al,1           ; carry enters low end, high bit leaves
0B9B  mov [si+10DAh],al
0B9F  dec si
0BA0  loop shift_byte

0BA2  add si,0056h       ; next row's right edge
0BA5  inc di
0BA7  clc
0BA8  inc bl
0BA9  cmp bl,08h
0BAC  jne row
```

This is exactly the kind of small 1989 scroll kernel that still feels like
8-bit cracktro craft: no framebuffer scroll, no string redraw, just carry
propagation through a byte strip.

## Scroller Blitter At 0BAFh

After the shift, `0BAFh` writes the 8x43-byte scroller strip into EGA memory.
It sets `ES=A000h`, selects one map mask at a time, and uses `REP MOVSB`:

```asm
0BAF  push es
0BB0  mov ax,A000h
0BB3  mov es,ax

0BB5  mov dx,03C4h
0BB8  mov ax,0102h
0BBB  out dx,ax       ; plane 0
0BBC  mov dx,03CEh
0BBF  mov ax,0104h
0BC2  out dx,ax
0BC3  mov si,10DAh
0BC6  mov di,153Eh
0BC9  mov cx,002Bh
0BCC  rep movsb
0BCE  add di,0075h
0BD1  mov cx,002Bh
0BD4  rep movsb
```

Then the same pattern repeats for planes 1, 2, and 3, each time advancing the
destination by `75h` after a 43-byte copy. `43 + 75h = A0h`, so the blitter
walks the same 160-byte virtual scanline stride as the logo copy.

The routine writes two source rows per plane. Because each plane has its own
colour contribution, the scroller is not just moved text; the plane selection
also colours the strip.

## Main EGA Loop

The main EGA loop starts at `0E6Ah`:

```asm
0E6A  call 0B2Fh       ; update scroller bit buffer
0E6D  call 086Ch       ; wait until not in vertical retrace

0E70  mov dx,03D4h
0E73  mov al,0Dh
0E75  mov ah,[084Ah]
0E79  out dx,ax        ; CRTC start address low byte

0E7A  call 0861h       ; wait for vertical retrace

0E7D  xor ah,ah
0E7F  mov dx,03C0h
0E82  mov al,33h
0E84  out dx,al
0E85  mov al,ah
0E87  out dx,al        ; attribute-controller pan register = 0
```

The start-address byte at `084Ah` is animated after drawing:

```asm
0EDD  inc byte [084Ah]
0EE1  cmp byte [084Ah],4Ch
0EE6  jne poll_key
0EE8  mov byte [0850h],1

0EED  dec byte [084Ah]
0EF1  cmp byte [084Ah],04h
0EF6  jne poll_key
0EF8  mov byte [0850h],0
```

`0850h` is the direction flag. The visible window bounces between start
low-byte values `04h` and `4Ch`. Since the CRTC offset is already widened to
`50h`, these byte changes move the displayed window across the virtual image
instead of forcing a full redraw.

Palette cycling happens every eight frames:

```asm
0E88  inc byte [082Fh]
0E8C  cmp byte [082Fh],08h
0E91  jne no_cycle
0E93  mov byte [082Fh],0

0E98  mov cl,[084Fh]
0E9C  shl cl,1
0E9E  shl cl,1         ; four-entry palette group
0EA2  mov si,cx
0EA4  mov di,si
0EA6  add di,4

0EAA  mov dx,03C0h
0EAC  mov ah,01h
cycle:
0EAE  mov al,ah        ; palette index: 1,2,4,8
0EB0  out dx,al
0EB1  mov al,[si+0830h]
0EB5  out dx,al
0EB6  shl ah,1
0EB8  inc si
0EB9  cmp si,di
0EBB  jne cycle
```

The code rotates six groups of four attribute values, targeting palette
registers `1`, `2`, `4`, and `8`. Those are the single-bit EGA colour entries,
which fits the intro's plane-coloured text and strip drawing.

Finally:

```asm
0ED3  call 0BAFh       ; draw shifted scroller strip
0EFD  mov ah,01h
0EFF  int 16h          ; key waiting?
0F01  jne exit
0F03  jmp 0E6Ah
```

On a key press, it consumes the key, restores text mode, and jumps to the
wrapper restore path:

```asm
0F06  mov ah,00h
0F08  int 16h
0F0A  mov ax,0003h
0F0D  int 10h
0F0F  jmp 033Ah
```

## CGA Fallback

The non-EGA path at `1043h` is not just a "sorry, no EGA" message. It has its
own renderer:

```asm
1043  mov ax,cs
1045  mov ds,ax
1047  mov ax,0005h
104A  int 10h          ; CGA 320x200 colour graphics
```

It finds the active CGA status port from the BIOS Data Area:

```asm
104E  xor ax,ax
104F  mov es,ax
1051  mov ax,es:[0463h] ; CRT controller base
1055  add ax,0006h      ; status register
1058  mov [0F19h],ax
```

The wait helper at `0F1Dh` polls bit 0 of that status register:

```asm
0F1D  cli
0F1E  mov dx,[0F19h]
0F22  in  al,dx
0F23  test al,01h
0F25  jne 0F22h
0F27  sti
0F28  ret
```

The CGA path also resets and reads the mouse with `INT 33h`. Horizontal mouse
movement changes a delay variable at `0F1Bh` between `0080h` and `3000h`,
effectively letting the viewer speed up or slow down the CGA scroller:

```asm
105C  xor ah,ah
105E  int 33h          ; reset mouse

1069  mov ax,000Bh
106C  int 33h          ; read motion counters
106E  cmp cx,0
1071  je  no_change
1076  jg  faster
1078  cmp word [0F1Bh],0080h
1080  sub word [0F1Bh],0080h
1089  cmp word [0F1Bh],3000h
1091  add word [0F1Bh],0080h
```

The CGA renderer uses the same BIOS-font idea as the EGA scroller, but paints
through `B800h` rather than EGA planes. It updates CRTC start address bytes at
`0F16h` and `0F17h`, tests glyph mask bits, and writes paired CGA memory
locations that account for the odd/even CGA scanline banks:

```asm
0F29  mov ax,B800h
0F31  mov es,ax
...
0F45  stosw
0F46  add di,1FFEh
0F4A  stosw
0F4B  sub di,1FB2h
0F4F  loop 0F45h
```

That fallback is much smaller than the EGA intro, but it shows the same design
attitude: direct hardware timing, CRTC start movement, and bit-level font
painting instead of DOS text output.

## Why It Looks More Advanced Than The Text Loaders

The late-1989 INC cards use generic TheDraw `REP MOVSW` text-page copies.
This Future Brain Incorporated intro is a different level of PC cracktro:

- It hijacks a real game executable's MZ entry and restores the original far
  jump afterward.
- It requires and exploits EGA planar video, with an actual CGA fallback.
- It widens the CRTC stride and moves the display window by changing the CRTC
  start address.
- It draws text from the ROM BIOS 8x8 font into custom bit buffers.
- Its scroll loop is a carry-chain bit shifter, not a character-cell scroll.
- It colour-cycles selected EGA attribute entries in sync with the frame loop.

The key inner loop is `0B2Fh`: a new glyph bit enters through carry, and `RCL`
pushes that bit through 43 bytes for each of eight rows. Around it, the CRTC
start-address write makes the already-drawn picture move without copying the
whole screen. That combination is why this 1989 intro feels much closer to
Amiga/C64 cracktro idioms than the contemporary PC text-card releases.
