Analysis model: gpt-5.5 xhigh

# Jungle Hunt Cracktro by PTL Club - Technical Dissection

`Jungle Hunt Cracktro` is a 1987 MS-DOS cracktro by PTL Club. Demozoo lists it
as an MS-DOS cracktro released on 7 December 1987. The preserved Scene.org
archive contains a single COM file named `HUNT.COM`.

Release year: 1987

The short version: `HUNT.COM` is the single-screen PTLLoad variant. It enters
CGA mode 4, copies one complete 16 KB CGA page from `CS:0f80` to `B800:0000`,
waits for one BIOS keypress, then returns into the PTLLoad chain and DOS EXECs
`HUNT.PTL`.

The binary contains an old private contact blurb in the loader text block. This
writeup does not reproduce it, and it is not part of the decoded visible CGA
page.

## Sources

- Demozoo production page:
  https://demozoo.org/productions/294839/
- Scene.org archive:
  https://files.scene.org/get/demos/compilations/lost_found_and_more/cracktro/jungle_hunt_cracktro.zip
- Scene.org file page:
  https://files.scene.org/view/demos/compilations/lost_found_and_more/cracktro/jungle_hunt_cracktro.zip

## Visual Reference

The screen below is decoded directly from the `0x4000` bytes copied by
`HUNT.COM`. It uses a bright CGA mode-4 palette for readability.

![Jungle Hunt Cracktro decoded CGA page](images/jungle-hunt-ptl-cga-page.png)

The file/code map:

![Jungle Hunt Cracktro COM layout and PTLLoad handoff map](images/jungle-hunt-ptl-loader-map.png)

Front-page media note: the card uses the binary-decoded CGA page and the
generated PTLLoad/EXEC handoff map directly. I did not make a GIF for this pass
because the visible payload is one static copied CGA page followed by a BIOS
keypress gate, not a timed animation.

## Archive Shape

The examined archive is:

```text
76a1907d79c40e38c0709a0537c20508c4ad348ec9537de5fc7a03c1c0d524e0  jungle_hunt_cracktro.zip
```

Archive contents:

```text
HUNT.COM  20096 bytes  1987-12-07 11:11
```

Important hash:

```text
ecf3bd75c1bb26823593e5de7ebc463f4a52ff5436001e93a21a00d0755f6b52  HUNT.COM
```

The archive's internal timestamp agrees with the Demozoo release date.

## COM Addressing

For a COM file:

```text
file offset 0000h -> runtime CS:0100
runtime offset    = file offset + 0100h
file offset       = runtime offset - 0100h
```

The active layout is:

```text
file 0000h..0dffh  runtime 0100h..0effh  PTLLoad code/data
file 0e00h..0e3ch  runtime 0f00h..0f3ch  active splash/key code
file 0e3fh..0e7dh  runtime 0f3fh..0f7dh  PTLLoad credit string
file 0e80h..4e7fh  runtime 0f80h..4f7fh  raw CGA page copied to B800:0000
```

The file length is exactly `0x4e80`, which is `0x0e80` bytes of wrapper plus
one complete `0x4000`-byte CGA page.

## Entry Path

The first instruction jumps into the loader block:

```asm
0100  e9 e6 0b      jmp 0ce9
```

The entry sequence is the same PTLLoad skeleton used by the nearby PTL Club
cracktros:

```asm
0ce9  lea sp,[0235h]
0ced  call 03b7h
0cf0  call 03cbh
0cf3  call 03dbh
0cf6  call 03e4h
0cf9  jmp 0f00h
```

Those setup calls save or validate DOS/video/BIOS state before the visible
screen is shown. The jump to `0f00` enters the cracktro splash.

## Splash Setup

The splash begins by saving registers:

```asm
0f00  push ax
0f01  push bx
0f02  push cx
0f03  push dx
0f04  push si
0f05  push di
0f06  push es
```

Then it switches to CGA graphics:

```asm
0f07  mov ax,0004h
0f0a  int 10h
0f0c  mov ah,11h
0f0e  mov bx,0100h
0f11  int 10h
```

Mode `04h` is 320x200 four-colour CGA. The following copy is the important
visible operation.

## Screen Copy Inner Loop

The copy setup:

```asm
0f13  cli
0f14  mov ax,0b800h
0f17  mov es,ax
0f19  mov si,0f80h
0f1c  mov di,0000h
```

The loop:

```asm
0f1f  mov ax,cs:[si]
0f22  mov es:[di],ax
0f25  inc si
0f26  inc si
0f27  inc di
0f28  inc di
0f29  cmp di,4000h
0f2d  jne 0f1fh
0f2f  sti
```

In file terms:

```text
runtime source: CS:0f80h
file source:    0e80h
destination:    B800:0000
count:          4000h bytes
```

The inner loop in plain form:

```text
DI = 0000h
SI = 0f80h
while DI != 4000h:
    AX = word CS:[SI]
    word B800:[DI] = AX
    SI += 2
    DI += 2
```

That is `0x2000` word copies. There is no decompressor, line drawer, glyph
renderer, scroller, or animation in the visible path. The page is already
stored in CGA memory order inside the COM file.

## CGA Memory Order

CGA mode 4 splits the display into two scanline banks:

```text
even y: B800:0000 + (y / 2) * 80
odd  y: B800:2000 + (y / 2) * 80
```

Each byte stores four two-bit pixels:

```text
bits 7..6  pixel x+0
bits 5..4  pixel x+1
bits 3..2  pixel x+2
bits 1..0  pixel x+3
```

Because the stored page already follows that layout, a flat `0x4000`-byte word
copy produces the whole screen.

## Key Wait And Return To Loader

After the page copy, the code restores `ES`, waits for one key, and restores
the rest of the saved registers:

```asm
0f31  pop es
0f32  xor ax,ax
0f34  int 16h
0f36  pop di
0f37  pop si
0f38  pop dx
0f39  pop cx
0f3a  pop bx
0f3b  pop ax
0f3c  jmp 0cfch
```

`INT 16h` with `AH=00h` blocks until a key is pressed. The returned key is not
used. The final jump enters the normal PTLLoad chain.

## Loader Handoff

The loader chain at `0cfc` saves vectors/state, checks memory, installs its
handlers, resizes the DOS memory block, and prepares a DOS EXEC call:

```asm
0cfc  call 0344h
0cff  call 035fh
0d02  call 0599h
0d05  call 05cfh
0d08  call 061dh
0d0b  call 0634h
0d0e  call 0643h
0d11  call 095eh
0d14  call 067eh
0d17  call 072eh
0d1a  call 0999h
0d1f  call 09b5h
0d22  int 21h
```

The EXEC setup routine points DOS at `HUNT.PTL`:

```asm
09b5  mov [09a7h],ax
09bb  mov ax,cs
09bd  mov [09abh],ax
09c0  mov [09afh],ax
09c3  mov [09b3h],ax
09c6  lea dx,[0248h]
09ca  mov bx,09a7h
09cd  mov ax,4b00h
09d0  ret
```

The filename string at runtime `0248h` is:

```text
HUNT.PTL
```

By the time `INT 21h` executes at `0d22`:

```text
AX = 4B00h        DOS EXEC/load-and-execute
DS:DX = CS:0248h  ASCIIZ filename "HUNT.PTL"
ES:BX = CS:09A7h  EXEC parameter block
```

After the child returns, the loader restores vectors, video mode, BIOS Data
Area bytes, PIC/speaker state, and then exits through DOS `AH=4Ch`.

## What The Cracktro Does

The entire visible cracktro is:

```text
1. enter CGA mode 4
2. copy 16 KB from CS:0f80 to B800:0000
3. wait for one BIOS keypress
4. restore registers and enter PTLLoad
5. DOS EXEC HUNT.PTL
6. restore system state and exit/report status
```

Compared with `Decision In The Desert`, this is the simpler PTL variant: no
overlay loop, no frame cycling, no partial-bank updates. The technical interest
is the clean whole-page CGA copy and the loader machinery around it.

## Boundaries

This analysis covers the preserved `HUNT.COM` wrapper. The external `HUNT.PTL`
child is not present in the archive, so the post-EXEC game/program body is
outside this writeup.

The screenshot is a binary decode of the copied CGA page, not a DOSBox runtime
capture. It follows the exact `CS:0f80` to `B800:0000` copy range used by the
program.
