Analysis model: gpt-5.5 xhigh, sol high

Last edited: 2026-08-25

Bart's Law by UltraForce - Technical Dissection

Bart's Law preview is a 1991 MS-DOS VGA playable preview by UF Development / UltraForce. The bundled document identifies it as a 1991 preview and credits Remco de Berk for programming, graphics, and sampling. The Hornet 1991 demo index lists bartslaw.zip as Bart's Law by Ultraforce.

Release year: 1991

The archive executable is a packed playable-preview EXE with two loader layers:

The packed file contains many misleading byte patterns: early raw offsets mix depacker code and compressed payload. The earlier pass correctly mapped the two loaders but stopped at an invalid 72 KB memory dump and a black post-wrapper capture. The 2026-08-25 pass resolves that boundary with 16-bit segmented emulation, rebuilds a relocation-bearing MZ for diagnostics, reaches the real playable path, and maps its background repair, target blitters, cursor save/restore, hit boxes, score, shot counter, target schedule, palette fade, and exit loops.

Old private postal/BBS contact details from the bundled document are deliberately omitted.

Bart's Law DOSBox-X runtime contact sheet

The front-page card uses this contact sheet directly. It proves the original archive wrapper only; it is not presented as a picture of the restored title or training level. The successful restored diagnostic run added no site media, so the picture and the surrounding wrapper commentary retain the same ownership.

Sources

Archive

The examined archive is the Hornet mirror bartslaw.zip:

d9b5900770a9627188163c358f3c405d4d71f95fcd572ff353b53dc14d93087b  bartslaw.zip

Archive contents:

BARTSLAW.DOC   3384 bytes  1992-11-04 11:31
BARTSLAW.EXE  74809 bytes  1992-11-04 11:31

Important hashes:

9d4ffedadea9b88d24d30328722970b4e5fb9a98135c026d7be5c7933206506f  BARTSLAW.EXE
2858c0d8f73fd5dd995670357c71b160b3b2f309df391a22931f9fbbb4529c4a  BARTSLAW.DOC

The archive timestamps are from 1992, but the document title and text mark the preview as (C) 1991 by UF Development, and the Hornet archive places it in the 1991 directory.

Bundled Document

The document describes this as a playable preview requiring:

VGA Graphics
Mouse + driver
Sound Blaster optional

It says the program detects a Sound Blaster if present, and that the absence of one only removes music. The planned finished game is described as having better graphics/sounds, multiple-frame animation, scrolling backdrops, more soundcard support, Noisetracker music, and maybe EGA support.

The credits relevant to the binary analysis are:

Programming  Remco de Berk
Graphics     Remco de Berk
Sampling     Remco de Berk
Logo         Walter Pedro
Character    Eric Oostendorp

The document also names UltraForce members and contains contact information. Those contact details are not reproduced here.

MZ Layout

BARTSLAW.EXE is a relocation-free MZ executable:

file size      74809 bytes
MZ header      144 bytes
load image     74665 bytes
relocations    0
minalloc       2178h paragraphs
maxalloc       FFFFh
initial SS:SP  113Fh:0400h
initial CS:IP  116Fh:0100h
entry raw      11880h

The absence of MZ relocations is a useful clue. This is not a normal linked large EXE. The file is arranged so the official MZ entry lands in the outer wrapper near the end of the load image, while the inner depacker is reached by jumping back to the beginning of the loaded image.

Raw/file mapping:

raw 00000h..0008Fh  MZ header
raw 00090h..1187Fh  loaded image before outer wrapper
raw 11880h..12438h  Ultra Force Turbo Exploder trailer/screen

Outer Turbo Exploder

The official entry point is raw 11880h, loaded as CS:0100h with CS = loadseg + 116Fh.

The first bytes are:

0100  fa              cli
0101  e9 8b 00        jmp 018Fh

0104  00 01           original IP field, 0100h
0106  f0 ff           original CS field, FFF0h before adjustment
0108  6f 11           wrapper baseline segment, 116Fh

The jump skips over metadata and a small delay helper. The real wrapper body starts at CS:018Fh:

018f  mov cs:[010e],es
0194  mov cs:[0110],ds
0199  mov cs:[010c],ss
019e  mov cs:[010a],sp

01a3  mov ax,cs
01a5  mov ds,ax
01a7  mov es,ax
01a9  mov ss,ax
01ab  mov sp,0178h

That saves the original DOS entry register state, then switches all data and stack registers to the wrapper segment. After that it draws the blue text-mode progress screen:

01ae  mov ax,0003h
01b1  int 10h              ; 80x25 text mode

01b3  mov ax,0b800h
01b6  mov es,ax
01b8  mov si,0219h         ; screen image in wrapper segment
01bb  xor di,di
01be  mov cx,0aa0h
01c1  rep movsb            ; copy 2720 bytes to B800:0000

The progress-bar animation is intentionally simple:

01c3  mov ah,02h
01c5  xor bh,bh
01c7  mov dh,19h
01c9  mov dl,01h
01cb  int 10h              ; cursor at the progress row

01cd  mov di,05aah
01d0  mov cx,0043h         ; 67 cells

progress:
01d3  mov ah,12h
01d5  mov al,0b2h
01d7  stosw                ; character B2h with attribute 12h
01d8  call delay
01db  loop progress

The delay helper is a pair of nested countdown loops:

delay:
017a  push cx
017b  push si
017c  push di
017d  mov di,00c8h
0180  mov si,00c8h
0183  nop
0184  dec si
0185  jne 0183h
0187  nop
0188  dec di
0189  jne 0180h
018b  pop di
018c  pop si
018d  pop cx
018e  ret

This is not synchronized to vertical retrace or the PIT. It is a CPU-speed delay used only for the wrapper's cosmetic progress bar.

After drawing the progress bar, the wrapper restores text mode again and reconstructs the original far target:

01dd  mov ax,cs
01df  mov es,ax
01e1  mov ax,0003h
01e4  int 10h

01e6  mov ax,cs
01e8  mov ds,ax
01ea  mov es,ax

01ec  mov ax,cs
01ee  sub ax,[0108h]       ; subtract wrapper baseline 116Fh
01f2  add ax,[0106h]       ; add stored FFF0h
01f6  mov [0106h],ax       ; target segment becomes PSP-like base

With a normal DOS EXE load, CS = loadseg + 116Fh. The arithmetic therefore turns the stored FFF0h into loadseg - 0010h, which is the PSP segment. The far jump at the end is:

0214  sti
0215  jmp far cs:[0104h]

So the wrapper returns to PSP:0100h, which physically maps to the first byte of the loaded image after the MZ header. That is why the second-stage unpacker at raw 00090h matters.

Inner Depacker Entry

At raw 00090h / logical PSP:0100h, the inner code begins:

0100  mov ax,32aeh
0103  mov dx,1136h
0106  mov bx,ds
0108  add bx,ax
010a  cmp bx,[0002h]
010e  jae memory_error

0110  sub bx,0020h
0113  cli
0114  mov ss,bx
0116  mov sp,0200h
0119  sti

011a  sub bx,0025h
011d  mov es,bx
011f  push bx
0120  mov cx,0123h
0123  xor di,di
0125  push di
0126  mov si,0148h
0129  cld
012a  rep movsw
012c  retf

This is a classic unpacker relocation prologue:

  1. use the PSP memory-limit word at PSP:0002h to check for enough memory;
  2. move the stack to a high private segment;
  3. copy 0123h words of unpacker code from PSP:0148h to a high segment;
  4. far-return to the relocated copy at offset zero.

The error path is tiny:

memory_error:
012d  mov ah,09h
012f  mov dx,0136h
0132  int 21h              ; print "$"-terminated "DECR ERR"
0134  int 20h

The string is not a user-facing game error. It belongs to the depacker.

Relocating The Packed Stream

The relocated unpacker starts with the code originally at logical 0148h. Its first job is to move packed data into a high contiguous area:

0148  mov bx,ds
014a  push bx              ; save PSP segment for final ES/DS restore
014b  add bx,0039h
014e  add bx,dx            ; dx = 1136h from entry

0150  mov si,0fffeh
0153  mov di,si
0155  mov bp,cs
0157  mov ax,bp
0159  sub bp,dx            ; bp becomes the compressed-stream DS
015b  mov cx,dx

The copy loop works in paragraph-sized chunks. The maximum chunk is 1000h paragraphs, which becomes 8000h words:

copy_chunk:
015d  cmp ch,10h
0160  jb  short_chunk
0162  mov cx,1000h

short_chunk:
0165  sub dx,cx
0167  shl cx,1
0169  shl cx,1
016b  shl cx,1             ; words = paragraphs * 8

016d  sub ah,10h
0170  sub bh,10h
0173  mov es,ax
0175  mov ds,bx
0177  rep movsw
0179  test dx,dx
017b  jne copy_chunk

The addressing is intentionally segment-heavy. The unpacker is moving data in 64K-ish windows without using 32-bit arithmetic. SI and DI start at FFFEh, so a full 8000h-word copy touches the entire segment. A partial final copy is much more sensitive to the direction flag and segment wraparound; that is the part that makes this packer awkward to reconstruct statically.

After this relocation pass:

017d  cld
017e  mov ds,bp
0180  pop es               ; ES = saved PSP segment
0181  push es
0182  mov di,0100h         ; output starts over the loaded image
0185  xor si,si            ; packed stream offset zero
0187  lodsw
0188  xchg ax,bp           ; BP = bit buffer
0189  mov dx,0010h         ; 16 bits in the buffer
018c  jmp main_bit

From here the depacker writes the expanded program to ES:0100h, i.e. over the same PSP:0100h area that began as the packed loader image.

Bitstream Inner Loop

The main bit reader uses BP as a 16-bit, LSB-first bit buffer and DL as the remaining-bit count:

refill_0:
01c0  lodsw
01c1  xchg ax,bp
01c2  mov dl,10h

main_bit:
01c7  shr bp,1
01c9  dec dx
01ca  je  refill_0
01cc  jae literal          ; carry clear means literal byte

That means the packed stream is consumed low bit first from each word. The literal path is the cheapest case:

literal:
01c6  movsb                ; DS:SI -> ES:DI
01c7  shr bp,1             ; immediately fetch next token bit

There is no per-byte transform on literals. The compression is a byte-copy LZ scheme, not XOR or RLE.

When the token bit is one, the code builds a match length using several rcl bx,1 steps. Each rcl appends the latest bit into BX:

match_token:
01ce  xor cx,cx
01d0  xor bx,bx

01d2  shr bp,1
01d4  dec dx
01d5  je  refill_1
01d7  rcl bx,1

01d9  shr bp,1
01db  dec dx
01dc  je  refill_2
01de  rcl bx,1

01e0  cmp bl,02h
01e3  jae short_length_done

Small prefixes are translated through tables stored in the relocated unpacker code:

table 0208h: 04 00 05 06 07 00 00 00 00 00 08 09 0A 0B 0C 19
table 0213h: 09 0A 0B 0C 19 ...
table 021Eh: 0E 0F 10 11 12 ...
table 022Eh: 01 02 00 00 03 04 05 06 ...

The core length logic is:

if first two bits make 2 or 3:
    length = that 2-bit value
else:
    read additional bits
    use table 0208h, 0213h, or 021Eh
    length value 19h means "read one extension byte"

The extension-byte case is important:

02b4  lodsb
02b5  add cl,al
02b7  adc ch,00h
02ba  cmp al,0feh
02bc  jae segment_or_end

Values below FEh make a long normal copy length. FEh and FFh are control values, not copy lengths.

Back-Reference Copy

Once the length is known, the offset decoder constructs the high part of the distance from a few more bits and reads the low byte directly from the packed stream:

020f  xor bx,bx
0211  cmp cx,0002h
0214  je  low_distance_byte

0216  shr bp,1
0218  dec dx
0219  je  refill_offset
021b  jb  low_distance_byte

... bit-built high-distance cases ...

low_distance_byte:
0240  lodsb
0241  mov bl,al

Then the copy itself is compact:

0243  push si
0244  mov si,di
0246  sub si,bx
0248  cli
0249  rep es movsb         ; source and destination are both in ES
024c  sti
024d  pop si
0250  jmp main_bit

The ES segment override on movsb is the key detail. This copies from the already-expanded output window, not from the packed input stream:

source      ES:(DI - distance)
destination ES:DI
count       CX
direction   forward

Because the source and destination are in the same segment and the copy runs forward, overlapping matches naturally repeat bytes. That is the usual LZ trick for runs and repeated patterns.

The cli / sti pair around rep movsb is unusual for a plain DOS depacker, but consistent with a packer that wants the string operation to be uninterrupted while DS is pointing at the packed stream and ES is being used as both source and destination.

Segment Normalization And End Marker

When the long-length extension byte is FEh or FFh, the depacker normalizes both output and input pointers to keep offsets in a comfortable range:

02c1  push ax
02c2  lea bx,[di-2000h]
02c6  and di,000fh
02c9  add di,2000h
02cc  mov cl,04h
02ce  shr bx,cl
02d0  mov ax,es
02d2  add ax,bx
02d4  mov es,ax

02d6  mov ax,ds
02d8  mov bx,si
02da  and si,000fh
02dd  shr bx,cl
02df  add ax,bx
02e1  mov ds,ax
02e3  pop ax
02e4  cmp al,0ffh
02e6  je  finish
02e8  jmp main_bit

So FEh means "slide the segment bases and continue", while FFh means "slide, then finish". This explains why a naive flat-file disassembly quickly goes wrong: the unpacker is designed around 16-bit segment movement, not a single linear buffer.

Relocation Tail

After the FFh end marker, the stream contains a relocation tail. The code pops the saved PSP segment, adds 10h to recover the load segment, then applies blocks of relocation offsets:

0312  pop bx
0313  mov bp,bx
0315  add bx,0010h         ; load segment

reloc_block:
0318  xor ax,ax
031a  lodsb
031b  xchg ax,cx
031c  jcxz final_regs
031e  lodsw
031f  add ax,bx
0321  mov es,ax

reloc_word:
0324  lodsw
0325  xchg ax,di
0326  add es:[di],bx
0329  loop reloc_word
032b  jmp reloc_block

The final words in the stream rebuild the original unpacked program registers:

final_regs:
032d  lodsw
032e  add ax,bx
0330  cli
0331  mov ss,ax
0333  lodsw
0334  mov sp,ax
0336  sti

0337  lodsw
0338  add bx,ax
033a  push bx              ; final CS
033b  lodsw
033c  push ax              ; final IP

033d  mov es,bp
033f  mov ds,bp
0341  xor ax,ax
0343  mov bx,ax
0345  mov cx,ax
0347  mov dx,ax
0349  mov bp,ax
034b  mov si,ax
034d  mov di,ax
034f  retf

That is a complete EXE-style relocation model embedded inside an EXE that has no MZ relocation entries of its own.

Solving The Inner Unpack

The earlier 72 KB bartslaw.unpacked.mem artifact is not an unpacked program. Its first jump targets compressed-looking bytes and its strings are visibly corrupted. It is retained only as a failed diagnostic, not as evidence.

The missing behavior was 16-bit offset wrap. The copy at SI = DI = FFFEh runs forward with DF=0; after its first word, SI and DI wrap to zero in their existing segments. Full 8000h-word chunks therefore cover complete 64 KB segment windows in the exact order the 8086 would. A flat pointer model silently loses that behavior.

I emulated the MZ load, wrapper transfer, relocated depacker, string operations, and segment-register changes in 16-bit x86 mode. BIOS video calls were treated as side-effect-free during unpacking; no game code was executed before the dump. At the depacker's relocation tail, the recovered facts are:

expanded load image              203361 bytes
output end                       3FB6:2001 in the test layout
relocation entries                   56
final SS:SP                      0000:0000
final CS:IP                      0000:0000
final far target                 loadseg:0000

Hashes of the two authoritative reconstruction stages are:

65a37c7cf5af379ed9541b828c4d70f4823bfc1daf6b74ea8aefdc3fb5e44457  pre-relocation load image
9df6ef59f3edf1999dab11509bb90ef8aa85466cad1a474e2ca5b479be407eb3  relocated test-layout image

The inner tail was also converted back into a conventional MZ relocation table. The resulting diagnostic executable has a 256-byte header, 56 relocations, and a 203,361-byte load image. The packed handoff deliberately uses SS:SP=0:0 and the first instructions at 1087h immediately install 0112h:3243h. DOSBox-X warns about the transient wrapped stack during EXEC, so the diagnostic MZ starts directly with that exact post-entry stack. No program code, resource byte, relocation target, or entry point is changed by that compatibility shim.

Restored Load-Image Map

The clean image starts with jmp 1087h. Code lives in relative segment zero; the startup installs data/stack segment 0112h, title and cursor resources are addressed through 11FFh, and the training background/target atlas is addressed through 21D3h.

0000:0003  text-mode message/terminate helper
0000:001B  mode-13h VGA check
0000:002F  INT 33h mouse reset and range setup
0000:00D4  mode 13h, chain-4 setup, and 64 KB clear
0000:0138  256-entry palette load
0000:0150  243x58 title/logo copy
0000:017E   98x95 Bart portrait copy
0000:01AE  optional CT-VOICE/Sound Blaster call gate
0000:02AB  doubled 8x8 text renderer
0000:02E0  transparent 8x8 text renderer
0000:0315  title scroller and mouse/keyboard dispatcher
0000:0392  retrace-gated 320x8 scroller publication
0000:0550  one 7x13 decimal digit
0000:0667  one 5x13 shot/health-bar unit clear
0000:0793  lower 12,800-byte VGA clear
0000:092E  100-step, four-bank palette fade
0000:09F0  playable training-level dispatcher
0000:0AA5  27x54 lower target blitter
0000:0ADD  22x47 middle target blitter
0000:0B15  20x40 upper target blitter
0000:0B4D  mouse poll, address calculation, and hit boxes
0000:0CC8  restore old 13x13 cursor background
0000:0CF2  draw transparent 13x13 crosshair
0000:0D29  save new 13x13 cursor background
0000:0D53  retrace-gated game/state loop
0000:1044  restore a target rectangle from pristine background
0000:1087  unpacked program entry and title dispatcher

The final 64,000 bytes of the expanded image are especially useful:

21D3:0331  pristine 320x200 training screen
linear     22061h..31A60h

09F0h copies that whole block to A000:0000 with 7D00h movsw iterations. The same immutable source remains available for selective target cleanup, so the game does not need a second live framebuffer.

DOSBox-X Capture

The published contact sheet remains evidence from the original archive EXE. It was made from two older DOSBox-X runs:

DOSBox-X version       2026.01.02 Commit 59915c1
CPU core               normal
cycles                 12000
capture format         MPEGTS H.264 + AAC
first run duration     34.500111 seconds
second run duration    54.19 seconds

The first run disabled Sound Blaster. The second enabled an SB16-compatible configuration. Both showed the blue Turbo Exploder frame and then black. That result proves the outer wrapper, but it is no longer interpreted as a missing mouse driver or an absent playable payload. The inner depacker simply did not reach a valid restored image in those runs.

Observed timestamps from the first capture:

00:00.500  Ultra Force Turbo Exploder blue progress/decrunching screen
00:01.500  black screen
00:03.000  black screen
00:08.000  black screen
00:20.000  black screen
00:34.000  black screen near end of capture

The 2026-08-25 diagnostic run used the reconstructed relocation-bearing MZ:

DOSBox-X             2024.03.01 Commit 02f36ba
CPU                  normal core, fixed 12000 cycles
video                VGA/S3, 320x200 mode 13h guest
mouse                DOS INT 33h, integration mode
Sound Blaster        disabled
host audio           dummy / not monitored
capture purpose      private verification; no new site media

That run directly reached the animated title/scroller, accepted the held left mouse press, displayed the DEMO BRIEFING, accepted its second mouse gate, and entered the training level. The training screen visibly contains the moving three-size target sequence, crosshair, score digits, shot/health bar, and HUD. The diagnostic frames are not substituted for the published outer-wrapper contact sheet, so no media file changed in this pass.

Runtime-To-Code Concordance

The existing blue contact sheet still maps exactly to the wrapper: mode 03h at wrapper 01AEh, a 2,720-byte rep movsb to B800:0000, then 67 progress cells at 01D3h. The newly reached title is a different code owner. Restored 0150h copies 58 rows of 243 bytes with a 320-byte source/destination stride; 017Eh copies the 98x95 portrait; 0392h publishes eight complete 320-byte scroller rows after testing port 03DAh.

The briefing and training screens belong to 09F0h. The dispatcher clears the lower 12,800 bytes, draws its briefing text, waits at 09E5h until INT 33h reports BX=1, then installs the game image:

0A4C  mov ax,A000h
0A4F  mov es,ax
0A51  mov ax,21D3h
0A54  mov ds,ax
0A56  mov si,0331h
0A59  xor di,di
0A5C  mov cx,7D00h
0A5F  rep movsw            ; exact 64,000-byte background copy

The visible training-level frames match that source exactly: static wall, floor, HUD, and rails come from the full-screen copy; only targets, the crosshair, score/bar cells, and text are modified afterward.

Steady Game-Frame Inner Loop

0D53h initializes six target waves, a 24-unit bar, two reserve units, seven score digits, and target state zero. Its ordinary frame path at 0D84h is:

wait until VGA status bit 3 is high
restore old 13x13 cursor patch              0CC8h
poll mouse and process a held left button   0B4Dh
save 13x13 bytes under the new cursor       0D29h
draw the transparent 13x13 crosshair        0CF2h
decrement current target lifetime
poll Escape
when lifetime reaches zero:
  repair the old target from pristine background
  choose the next authored target/type/position
  draw it and set its 60- or 80-tick lifetime

The exact cursor hand-off is visible in the instructions:

0DAC  call 0CC8h           ; RAM patch -> A000h
0DAF  call 0B4Dh           ; INT 33h and optional hit path
0DB2  call 0D29h           ; A000h -> RAM patch
0DB5  call 0CF2h           ; cursor atlas -> A000h

All three kernels are 13 rows by 13 columns. On a common no-click, no-target-transition frame they perform:

old-patch restore          169 A000h writes
new-patch save             169 A000h reads + 169 RAM writes
crosshair draw             169 A000h writes
transparent crosshair      129 additional A000h reads
visible crosshair pixels    40
common total               298 A000h reads + 338 A000h writes

The crosshair asset has one nonzero color and 129 transparent zero bytes. The plotter preserves transparency by reading ES:[DI] when the source byte is zero, then still executes stosb; it therefore performs all 169 writes even though only 40 pixels visibly change. There is no whole-screen erase in this steady path.

The retrace check is only in 03DAh / test 08h / jz. It waits for retrace-high but does not first wait for low, so this is not a strict one-update-per-refresh edge lock. A sufficiently fast iteration can re-enter while bit 3 remains high.

Target Atlas, Draw, And Background Repair

The three target blitters are transparent rectangular loops:

row:
    mov cx,width
pixel:
    lodsb
    cmp al,0
    jne opaque
    mov al,es:[di]          ; preserve background
opaque:
    stosb
    loop pixel
    add si,320-width
    add di,320-width
    dec bl                  ; row count
    jnz row

Exact base/hit-frame atlas accounting is:

target       footprint   base nonzero/zero   hit nonzero/zero
lower/tall   27x54=1458       1435 / 23          1431 / 27
middle       22x47=1034       1016 / 18          1012 / 22
upper        20x40= 800        783 / 17           780 / 20

Every call writes the complete footprint. Transparent pixels add an A000h read before that write; nonzero counts above are the pixels that actually replace the background.

Old-target cleanup at 1044h is different. It sets SI = old_DI + 0331h in segment 21D3h, then copies a fixed 27x54 rectangle from the pristine training screen. That is 1,458 direct background reads and 1,458 VGA writes per target transition, even when the old target was one of the smaller types. The game uses selective background reconstruction, not saved target rectangles and not a 64 KB clear.

One wave is a fixed twelve-target route:

state  screen (x,y)  type          lifetime
 1       (10,79)     lower/tall       80
 2      (200,46)     middle           80
 3      (100,35)     upper            80
 4       (50,46)     middle           60
 5      (180,79)     lower/tall       60
 6      (270,35)     upper            60
 7       (80,46)     middle           60
 8      (250,79)     lower/tall       60
 9      (100,79)     lower/tall       60
10      (180,46)     middle           60
11       (10,46)     middle           60
12      (150,35)     upper            60

The route costs 780 countdown iterations per wave and is repeated six times, for 4,680 ordinary target-lifetime ticks if the player never forces an early transition by hitting a target. A hit adds ten retrace-high checks while alternating the base and hit sprite, then sets the lifetime to zero so the next frame repairs and advances immediately.

Each base/hit blitter also ends by calling 0D29h to refresh the 13x13 cursor save patch. The ten-iteration hit flash therefore has this exact target-plus- cursor-save workload, before the score redraw and the main loop's final cursor draw:

target       target VGA writes   transparent VGA reads   cursor-save VGA/RAM
lower/tall          29160                 500              3380 / 3380
middle              20680                 400              3380 / 3380
upper               16000                 370              3380 / 3380

The target-write column is ten complete base/hit pairs. The cursor-save column is twenty calls times 169 bytes. This is much heavier than an ordinary frame, but it runs only on a successful shot.

Mouse Addressing And Hit Boxes

0B4Dh reads INT 33h function 3, stores mouse X and Y, and computes the linear crosshair address with exactly one multiply:

mov ax,320
mul dx                 ; AX = 320*Y
add ax,cx              ; AX = 320*Y + X
mov [1A6Bh],ax

Only a held left button (BX=1) enters collision. The target's fixed row value at 1DACh also selects one of three inclusive boxes around its authored X:

lower/tall  Y=73..123, X=targetX-5 .. targetX+20
middle      Y=40.. 85, X=targetX-5 .. targetX+14
upper       Y=30.. 64, X=targetX-4 .. targetX+12

There is no pixel-mask collision. A click anywhere inside the type-specific rectangle is a hit, including transparent corners of the drawn sprite.

Every accepted click decrements the 24-unit bar. 0667h clears exactly one 5x13 cell, 65 VGA writes. When the counter reaches zero, 06B1h decrements the two-unit reserve and either resets the counter to 24 or ends the game.

A hit calls 05F3h, whose carry chain increments decimal byte 1DC2h and leaves the two rightmost displayed digits fixed at zero: each target is worth 100 points. 0585h redraws all seven 7x13 digits, exactly 637 VGA writes. The post-game test at 0857h requires the thousands digit at 1DC1h to be at least four, which is the briefing's 4,000-point success threshold.

Palette And Exit Work

The transition fade at 092Eh is also fully bounded. For each of 100 outer steps, 0913h scans and conditionally decrements all 768 palette bytes. Four calls to 08E0h then upload 64 RGB entries at DAC starting indexes 00h, 40h, 80h, and C0h, with a retrace-high check before each bank:

palette-table byte reads/writes     76800 / 76800
DAC data-port writes                76800
DAC index-port writes                 400
retrace-high checks                    400

Escape from the game loop loads DX=00F3h and calls the common helper at 0003h. That selects BIOS text mode 3, prints the exit message, calls the optional sound shutdown when installed, and terminates with INT 21h/AH=4Ch. The normal title dispatcher uses the same cleanup boundary.

What Each Part Does

The executable should be read as a chain:

MZ header
  loads the image with no relocation records

outer Turbo Exploder at raw 11880h
  saves original DOS registers
  switches to wrapper-local DS/ES/SS
  draws a text-mode decrunching/progress screen
  computes PSP:0100h as the next far target
  restores DOS registers and far-jumps to the image start

inner depacker at raw 00090h
  checks conventional memory
  moves its stack and relocates its own code high
  moves packed stream data in segment windows
  expands an LZ bitstream over PSP:0100h
  applies its own relocation tail
  far-returns to the unpacked program

unpacked playable preview
  initializes VGA, mouse, and optional CT-VOICE/Sound Blaster path
  draws the title, portrait, scroller, information, and briefing screens
  copies one pristine 64 KB training background to mode 13h
  runs a six-wave, twelve-target mouse shooter
  saves/restores the crosshair and repairs old targets from background
  updates the score and 24-unit bar
  chooses the 4,000-point success/failure screen
  restores text mode and returns to DOS

Why This One Is Hard

Bart's Law is a good example of why early DOS scene binaries can be more annoying than their visual ambition suggests. The file has:

The boundary is now closed rather than merely described. The outer wrapper, inner LZ stream, 56-word relocation tail, and final far return reproduce a stable 203,361-byte image. That image reaches the title, briefing, and playable training level, and its hot loop explains the observed raster ownership: immutable full-screen background, selectively repaired target rectangles, transparent target atlases, and a separately saved/restored 13x13 crosshair. There is no inferred vector renderer or unexplained black game screen left in the analysis.