Analysis model: gpt-5.5 xhigh, sol high

Last edited: 2026-08-25

Vectra by The Physical Crew - Technical Dissection

Scope

This is a binary- and runtime-level analysis of Vectra by The Physical Crew, an MS-DOS demo released in 1991. Demozoo credits Mr. H with code, Loot with graphics, and Vogue with music. The tiny FILE_ID.DIZ inside the release says Vectra by The Psychical Crew; that spelling is retained here only as an artifact note, not used to rename the production or group.

Public references:

Examined artifacts:

ead324f38c9a69b5d36b3aa17491a7a1305f34e4c4ed0a169bb15d57a2cdc93a  vectra.arj
82b7f751f7c942c6d8080c2aabfabee74a7ad90a15410f8d380b422d05f6ad1a  FILE_ID.DIZ
3d2e585c78166e686cfa3b1f10b6222fafe9f9b93178414c40912efea39f3544  VECTRA.EXE

The executable is a compact Turbo Pascal 6-era host around one hand-shaped planar polygon engine. Its most important mechanisms are:

There is no Z buffer, face-depth sort, near-plane clipper, software framebuffer, or alpha blender. The apparent transparency comes from selecting different VGA bitplanes for opposite face windings.

Direct Silent Runtime

The direct run used DOSBox-X 2024.03.01 with machine=vgaonly, normal core, a 286 CPU, fixed 3,000 cycles, 4 MB RAM, and XMS/EMS/UMB disabled. The deliberately slow fixed CPU avoids the incomplete-draw behavior reported for this production on fast machines. The guest selected output 0, the internal-speaker path, but DOSBox-X had nosound=true; no demo audio was made audible.

The capture wrapper unexpectedly created AVI files with an audio stream despite host sound being disabled. Those streams were never auditioned. Lossless video-only ZMBV copies were made and the audio-bearing originals were deleted. The graphics-mode stream is 640x400 emulator output for a 320x200 planar VGA page, 12,499 frames over 178.337 seconds. Timestamps below use the start of that graphics-mode stream, not process launch.

The authored route observed before the bounded stop was:

Approximate stream time Directly observed state Recovered scene path
00:02-00:15 WELCOME TO / A T.P.C. / PRODUCTION text-atlas blits before object rendering
00:16 onward blue Physical Crew logo raw four-plane page image copied into all six pages
00:22-00:30 CODING BY / MR. H interstitial text-atlas records
00:32-00:56 magenta tetrahedron scene 0, mode 15 opaque winding-cull path
00:56-01:10 GRAPHICS BY / THE LOOT interstitial text-atlas records
01:10-01:36 gray cube/polyhedron scene 1, mode 15 opaque winding-cull path
01:36-01:52 MUSIC BY / VOUGE OF / PHENOMENA credits; the visible release spells VOUGE
01:52-02:26 rotating Swedish-flag object scene 2, mode 0 two-sided flat-face path
02:26-02:36 QUITE GOOD / BUT WHAT ABOUT THIS? transition into the fourth presented model
02:36-02:58.337 yellow overlap object scene 4, mode 7 split-bitplane translucent path

The helper sent Escape twice late in the run. The object sequence continued because the installed INT 9 handler consumes every scan code without chaining the BIOS handler, not because those injections can be treated as failed proof of an ordinary Escape path. The capture was stopped manually at the explicit 178.337-second boundary, so the later presented scenes 3 and 5 are proved by static model/controller data, not claimed as observed in this run.

Vectra scene 0 opaque magenta tetrahedron, direct full-frame runtime animation

This first object is easy to mislabel from appearance alone. It is not the translucent renderer: scene 0 uses mode 15, rejects one winding, and writes all four selected planes. The two magenta shades come from authored face colors.

Vectra scene 1 opaque gray filled object, direct full-frame runtime animation

The gray scene uses the same mode-15 path with a larger 8-vertex, 12-face model. The visible face replacement is authored-order culling plus planar triangle fill; there is no per-face depth sort.

Vectra scene 2 Swedish-flag object, direct full-frame runtime animation

The flag object is scene 2, whose face mode is zero. That bypasses winding rejection and draws all six authored faces using ordinary four-plane writes. It is colored geometry, not a texture-mapped bitmap.

Vectra scene 4 split-bitplane translucent object, direct full-frame runtime animation

The final captured object is the actual translucent path. Opposite windings write plane masks 03h and 04h; overlap produces combined palette indices. Black-looking openings are consequences of the authored faces, winding, and bitplane composition, not holes introduced by the GIF.

Packed MZ And Self-Loaded Tail

The shipped MZ header describes only a 12,520-byte resident executable:

header                         0070h = 112 bytes
declared MZ extent             30E8h = 12,520 bytes
packed load image              3078h = 12,408 bytes
entry                          02CF:0100, shipped file+02E60h
relocations                    0 in the packed header
appended bytes                 3438Ah = 213,898 bytes

Deark identifies the resident compressor from the actual entry stub as PKLITE 1.00/l: version 1.00, large model, not scrambled and without the later extra-compression mode. Its PKLITE decoder consumes the compressed load stream at file+0070h, ending at file+02D1Dh, and expands 11,437 compressed bytes to 21,008 restored load-image bytes. For comparison, Deark's LZEXE recognizer rejects this file. Similar LSB-first token structures are not enough to call it LZEXE.

The packed footer carries 144 relocations and restores:

entry                          0000:18A3
stack                          1189:4000

UNP produced the restored MZ used for the address-level analysis:

0702cb89919a510282b64f2b95917ca19d04a49fc5965d961cbece9ca1cf6861  restored VECTRA.EXE
1fb969b327414213a9f7d0e05acd4d853e4c8c4f6492b207f500b3a414f28ece  restored load image
header                         0260h = 608 bytes
restored MZ extent             5470h = 21,616 bytes
restored load image            5210h = 21,008 bytes
relocations                    144
entry                          0000:18A3

The appended bytes are not a Borland overlay. The program opens its own vectra.exe, asks DOS for the length, and computes:

tail_base = file_size - 0x3438a;

That keeps the package locator valid after the resident MZ is restored to a different size. The original tail at shipped file+030E8h partitions exactly:

Tail offset Shipped range Bytes Use
00000h 030E8h..05DE9h 2D02h 5,761-word sine quarter-wave table
02D02h 05DEAh..08309h 2520h 132-record three-plane text/graphics atlas
05222h 0830Ah..32E71h 2AB68h byte-obfuscated complete M.K. MOD
2FD8Ah 32E72h..37471h 4600h raw four-plane 320x112 logo/page image

No resource block is compressed. The first, second, and fourth regions are read raw. The music reader transforms each byte with:

decoded = ror8(encoded ^ 0x55, 4);

The decoded music structure accounts for all 2AB68h bytes: a 27-order, 20-pattern M.K. module titled feel the hype, with 5000h pattern bytes and 2572Ch sample bytes. This was established structurally without playback or auditioning.

Restored Memory Map And Startup

The 21,008-byte restored load image has these compiler-level boundaries:

Load range Runtime segment Role
0000h..21BFh 0000 main program, object engine, atlas/page loaders
21C0h..2E6Fh 021C custom MOD loader, player, timer ISR
2E70h..348Fh 02E7 Borland CRT/video/keyboard runtime
3490h..352Fh 0349 DOS interrupt-vector helpers
3530h..487Fh 0353 Borland System runtime
4880h..520Fh 0488 initialized data segment

0353:0000 installs DS = load_base + 0488h. Startup at 0000:18A3 is:

call 0353:0000   Borland System initialization
call 02E7:0000   CRT/video/keyboard initialization
call 021C:0BFB   player state and ExitProc chain initialization

The third call does not start music. Main loads the resources first and calls 021C:0AB5 at 0000:1C20 to install the player/timer path. The object engine uses the resulting timer counter even though host sound was disabled.

The raw page loader at 0000:0020 seeks to tail offset 2FD8Ah and performs:

4 planes * 112 rows * 40 bytes = 4600h bytes

It selects map masks 1,2,4,8, reads each 40-byte row, and copies the page image into six VGA windows. This is the static blue logo visible behind every object; the renderer does not rebuild it each frame.

The atlas loader reads 2520h bytes to a far allocation. The blitter at 0000:0790 selects an atlas record with:

src = atlas + (frame - 1) * 0x48 + plane * 0x18;

It processes three source planes and copies 23 active bytes from each 24-byte plane record. The opening and inter-object credits are therefore atlas blits, not the polygon rasterizer drawing letter outlines.

Renderer Function Map

Runtime addresses below use restored code segment 0000. File positions are the runtime offset plus the restored 608-byte header.

Runtime Restored file Function
01C4h 00424h signed Q11 multiply, (a*b)>>11
0260h 004C0h quarter-wave sine reflection
0318h 00578h old bounding-box clear
033Ch 0059Ch VGA set/reset and map-mask setup
0365h 005C5h triangle edge walk and planar span fill
066Eh 008CEh six-page rotation, CRTC start, cleanup
0B23h 00D83h palette entry and complete scene renderer
0C86h 00EE6h model selection and motion initialization
0E1Dh 0107Dh Q11 Euler matrix construction
0F2Dh 0118Dh inclusive vertex transform loop
1024h 01284h signed perspective division
1166h 013C6h authored-order face loop
120Fh 0146Fh mode-7 split-bitplane path
1314h 01574h opaque winding-cull path
13D5h 01635h timer delta, angles, camera update
1592h 017F2h scene repeat/finish test

The complete hot frame path is:

sample timer -> rotate page/clear its old dirty rectangle -> construct matrix
-> transform and project all vertices -> accumulate new bounds
-> traverse faces in authored order -> choose plane mode/culling
-> sort each triangle's vertices by Y -> walk two edge halves
-> write masked endpoints and full interior bytes
-> derive timer delta -> update angles/camera -> repeat or return

Six Structure-Of-Arrays Models

The models are not streams of interleaved vertex records. Six scene slots index parallel arrays in the initialized data segment:

X coordinates       DS:0004 + 28h*scene   16 signed Q11 words
Y coordinates       DS:00F4 + 28h*scene   16 signed Q11 words
Z coordinates       DS:01E4 + 28h*scene   16 signed Q11 words
face colors         DS:02D4 + 14h*scene   16 bytes
face modes          DS:034C + 14h*scene   16 bytes
vertex maximum      DS:03C4 + 2*scene     inclusive u16 maximum
face maximum        DS:03D0 + 2*scene     inclusive u16 maximum
rotation divisors   DS:03DC/03E8/03F4    three u16 values per scene
face V0/V1/V2       DS:0400/04F0/05E0    three 16-word index arrays

The stored count fields are inclusive maxima, a distinction that matters when reconstructing the loops:

Scene Vertices Faces X/Y/Z rotation divisors Mode
0 4 4 4 / 12 / 8 15, opaque and culled
1 8 12 12 / 8 / 16 15, opaque and culled
2 12 6 16 / 8 / 12 0, two-sided flat faces
3 10 16 8 / 8 / 12 7, split-bitplane translucent
4 14 10 12 / 14 / 14 7, split-bitplane translucent
5 15 14 12 / 9 / 7 15, opaque and culled

The controller presents them in order 0, 1, 2, 4, 3, 5, interleaving atlas credits. That is why the fourth runtime object is data scene 4 rather than 3.

Q11 Rotation Inner Loop

Region A is exactly 5,761 signed words: samples 0..5760 for a 90-degree quarter wave. Angles use 64 units per degree:

quarter circle     1680h = 90 * 64
full circle        5A00h = 360 * 64
sine amplitude     2047, Q11 unity just below 0800h

CS:0260 reflects and changes sign around the quarter-wave table to obtain a full-circle sine. Cosine is the same lookup with a quarter-turn phase offset. Every matrix product goes through CS:01C4:

static int16_t mul_q11(int16_t a, int16_t b) {
    return (int16_t)(((int32_t)a * (int32_t)b) >> 11);
}

CS:0E1D..0F2C constructs all nine matrix terms. Writing sx/cx, sy/cy, and sz/cz for the Q11 trigonometric values, the exact arrangement is:

m00 = sx*sy*sz + cx*cz
m01 = sx*cy
m02 = sx*sy*cz - cx*sz

m10 = cx*sy*sz - sx*cz
m11 = cx*cy
m12 = cx*sy*cz + sx*sz

m20 = cy*sz
m21 = -sy
m22 = cy*cz

Each * above is individually reduced through mul_q11; it is not one wide expression rounded only at the end. Matrix construction calls mul_q11 exactly 16 times. The inclusive vertex loop at CS:0F2D..1165 then performs nine Q11 multiplies and six additions per point:

for (i = 0; i <= vertex_max; ++i) {
    tx[i] = q11(m00*x[i]) + q11(m01*y[i]) + q11(m02*z[i]);
    ty[i] = q11(m10*x[i]) + q11(m11*y[i]) + q11(m12*z[i]);
    tz[i] = q11(m20*x[i]) + q11(m21*y[i]) + q11(m22*z[i])
          - camera_distance;
}

This is a genuine three-axis transformed vector object. It is not a sequence of precomputed silhouettes or a 2D shape rotated by table lookup.

Perspective Projection And Missing Clipping

CS:1024..106B uses four signed IDIV operations per transformed vertex. The old two-divide count missed that the code recomputes the same transformed-Z quotient separately for X and Y:

qx = tz[i] / projection_divisor;   /* starts at 30 */
screen_x[i] = tx[i] / qx + 160;
qy = tz[i] / projection_divisor;   /* same value, recomputed */
screen_y[i] = ty[i] / qy + 140;

There is no reciprocal table and no orthographic special case. The divisor is derived from transformed Z, so the changing apparent size in all four runtime animations is real perspective.

There is also no near-plane, left/right, or top/bottom clipping. The code does not guard q == 0; authored coordinates plus the camera path are expected to keep every division legal and every projected point inside the 320x200 page. During projection it records min/max X/Y from every vertex, including vertices whose incident faces may later be culled. Those values are damage bounds for later cleanup, not a clip rectangle.

The unchecked boundary is concrete in the restored code. The two scanline loops compare Y with unsigned JNA at CS:048C and CS:05A1, X byte positions are formed with logical right shifts at CS:04E2..04E6 and CS:05F7..05FB, and cleanup likewise shifts X logically at CS:0729 and CS:0739. There is no final validation of row count, width, or destination offset. A negative or oversized projected coordinate can therefore skip a loop, wrap an address, or write outside the intended 8,000-byte page, while a zero perspective quotient can raise an IDIV fault. This is a real static vulnerability, but it was not triggered by the authored route and is not by itself proof of the publicly reported fast-machine drawing problem.

Fixed Front-End Work Per Scene

The Q11 helper at 01C4h contains one signed imul; the halved cross-product helper at 01EEh also contains one. Combining matrix construction, all vertex transforms, projection, and winding tests gives the fixed work before triangle scan conversion:

Scene V/F Mode Q11 imul (16+9V) cross imul total signed imul signed idiv (4V) triangle calls
0 4/4 15 52 8 60 16 0..4, winding-dependent
1 8/12 15 88 24 112 32 0..12, winding-dependent
2 12/6 0 124 0 124 48 exactly 6
3 10/16 7 106 32 138 40 exactly 16
4 14/10 7 142 20 162 56 exactly 10
5 15/14 15 151 28 179 60 0..14, winding-dependent

Modes 7 and 15 execute two halved cross-product multiplies for every authored face. Mode 7 draws either plane group and therefore always calls the triangle filler; mode 15 calls it only for positive winding. Mode 0 branches directly to the filler and pays no cross-product cost. Scene 5 has the largest fixed front end, but a mode-7 scene can still do more raster work because none of its faces are culled.

Authored Face Order And Three Material Paths

The face loop at CS:1166..13D4 walks 0..face_max in stored order. It computes no face Z, average Z, bucket, or swap key. There is no face sort.

The screen-space winding test deliberately halves both products to fit its 16-bit arithmetic:

cross = (((x2-x0) * (y1-y0)) >> 1)
      - (((x1-x0) * (y2-y0)) >> 1);

The mode byte selects three concrete VGA behaviors:

if (mode == 0) {
    /* scene 2: draw both windings into all four enabled planes */
    set_reset(color, 0x0f);
    fill_triangle();
}
else if (mode == 7) {
    /* scenes 3/4: draw both windings, but into disjoint plane groups */
    if (cross > 0)
        set_reset(color,      0x03);
    else
        set_reset(color << 1, 0x04);
    fill_triangle();
}
else {
    /* scenes 0/1/5, normally mode 15: conventional one-winding cull */
    if (cross > 0) {
        set_reset(color, mode);
        fill_triangle();
    }
}

The mode-7 result is often called glenz, but it is not numerical alpha. A face updates only planes 0-1 or plane 2. Bits in unselected planes survive the VGA latch write; intersections therefore combine into palette indices composed of both face groups. The method gives a translucent-looking object without reading colors, averaging channels, or keeping an off-screen accumulation buffer.

Authored face order still matters. A mode-15 convex object can rely on culling to make the unsorted order look coherent. Mode 7 is intentionally commutative across disjoint plane groups in many overlaps, while same-group faces can still overwrite their own selected bits.

Triangle Scan Converter: Sort, Walk, Mask, Fill

CS:0365..066A is the real raster hot path. It does not construct a reusable edge table. For every face it sorts the three (y,x) pairs so that ytop <= ymid <= ybot, then draws two sections:

first half     ytop through ymid - 1
second half    ymid through ybot, inclusive

That is exactly ymid-ytop rows plus ybot-ymid+1 rows, or ybot-ytop+1 scanlines in total. The two top-origin edges use the same half-step initialization, and the long edge keeps its X/error state across the section boundary:

top_to_middle.dy    = ymid - ytop + 1;
top_to_middle.dx    = abs(xmid - xtop) + 1;
top_to_middle.error = top_to_middle.dx >> 1;

top_to_bottom.dy    = ybot - ytop + 1;
top_to_bottom.dx    = abs(xbot - xtop) + 1;
top_to_bottom.error = top_to_bottom.dx >> 1;

The middle-origin edge is deliberately asymmetric:

middle_to_bottom.dy    = ybot - ymid + 1;
middle_to_bottom.dx    = abs(xbot - xmid);   /* no +1 */
middle_to_bottom.error = 0;                  /* not dx >> 1 */

The corresponding bytes are visible at CS:0451..047C for the two +1 X deltas and half-step errors, then CS:0569..0592 for the second-half +1 Y, non-incremented X delta, and zero error. Each active edge advances with:

for (each scanline) {
    while (error > dy) {
        error -= dy;
        x += x_direction;
    }
    error += dx;
}

This seam bias is demonstrably present; calling it a deliberate crack-avoidance rule is plausible, but its design intent is not encoded in the binary.

The first-half span kernel is CS:04CA..053D; the second is CS:05DF..0652. Both normalize the edge X values and convert pixels to the 40-byte planar row:

left       = min(edge_x0, edge_x1);
right      = max(edge_x0, edge_x1);
first_byte = left  >> 3;
last_byte  = right >> 3;
dst        = draw_page + y*40 + first_byte;

left_mask  = 0xff >> (left & 7);
right_mask = 0xff << (7 - (right & 7));
if (first_byte == last_byte)
    left_mask &= right_mask;

Endpoint bytes cannot be blindly overwritten because the first and last pixels usually share a byte with pixels outside the triangle. The kernel writes the Graphics Controller bit-mask register, performs a self-copy to load the VGA latches, and writes the set/reset color through the mask. Interior bytes use mask FFh and repne stosb; on STOSB the repeat prefix behaves as the normal counted repeat.

Normalized, one row has four cases:

if (first_byte == last_byte && left_mask != 0xff) {
    masked_latch_write(dst, left_mask & right_mask);
} else {
    if (left_mask != 0xff)
        masked_latch_write(dst++, left_mask);
    repeat_full_bytes(dst, 0xff, last_byte - first_byte
                     - (left_mask != 0xff));
    masked_latch_write(last_dst, right_mask);
}

An unaligned one-byte span merges the masks and touches VGA once. The aligned one-byte span takes the other branch: it still emits the full-mask register write, executes a zero-count repeat, then emits the right mask and performs its single latch/write. This register-traffic exception does not add a VGA-memory write, but it matters to an exact inner-loop ledger.

The assembly gives an exact traffic formula for a row spanning B planar bytes from first through last, inclusive:

B = 1, left unaligned         1 VGA read, 1 CPU VGA write, 1 bit-mask OUT
B = 1, left aligned           1 VGA read, 1 CPU VGA write, 2 bit-mask OUTs
B > 1, left byte aligned      1 VGA read, B CPU VGA writes, 2 bit-mask OUTs
B > 1, left byte unaligned    2 VGA reads, B CPU VGA writes, 3 bit-mask OUTs

The reads are endpoint self-copies that load the VGA latches; full interior bytes are repne stosb writes and need no destination read. For B > 1, an unaligned row writes masked left, B-2 full bytes, and masked right; an aligned row writes B-1 full bytes beginning at the left edge and then masked right. CS:033Ch runs once per accepted triangle and adds four word-sized OUT instructions--eight port-byte writes--for set/reset, enable-set/reset, data-rotate, and sequencer map-mask state. The total triangle write count is therefore the sum of B over its two edge-walk sections, not the area of a rectangular bounding box. In mode 0/15 each CPU VGA byte write can update four planes; in mode 7 it updates either two planes (03h) or one plane (04h).

Six-Page Rotation And Selective Cleanup

The renderer writes directly to planar VGA memory. There is no 64,000-byte software image and no final A000h copy. CS:066E..078F rotates six 8,192-byte page slots at segments A000h, A200h, A400h, A600h, A800h, and AA00h. Each holds the 8,000 visible bytes per plane plus 192 spare bytes.

The state machine pairs the page put on screen with the following draw/cleanup target as follows:

New state Displayed page Draw/cleanup segment
1 A200h A400h
2 A400h A600h
3 A600h A800h
4 A800h AA00h
5 AA00h A000h
0 A000h A200h

Every CS:066E call advances the state, changes CRTC register 0Ch to the page completed by the previous call, selects the following segment for drawing, clears that segment's saved dirty rectangle, and returns so the caller can draw new content there. After warm-up, this is a one-call display latency; a page is not cleared and reused until six calls after it was drawn.

Startup actually seeds eight eight-byte records at DS:36B6 + 8*index, indices 0..7, with (100,100)..(110,110). Only records 0..5 are reachable from the six-state rotator; records 6 and 7 remain unused. The first cleanup of each live page therefore rounds X to pixels 96..111 and writes one word across 11 rows: 11 CPU word stores before that page receives real content. Each record holds:

min_x, min_y, max_x, max_y

CS:071E..078B expands X to 16-pixel words and derives:

left_word   = min_x >> 4;
right_word  = max_x >> 4;
width_words = right_word - left_word + 1;
rows        = max_y - min_y + 1;
start       = min_y*40 + left_word*2;
row_skip    = (20 - width_words)*2;

All four planes are selected with set/reset zero. CS:0318..033B executes:

for (row = 0; row < rows; ++row) {
    rep_stosw(width_words, 0);
    dst += row_skip;
}

This is selective old-frame cleanup rounded outward to 16-pixel blocks. It is not a full-page clear and not restoration from a saved background. The object renderer resets the current record to (320,200)..(0,0) at CS:0DE9..0E19, then expands it from every projected vertex before face culling. Its authored object path stays below the static logo, so those object rectangles can be zeroed without reconstructing the image.

The record is nevertheless a generic per-page dirty rectangle, not an object-only structure. The atlas/text path at CS:085B records the fixed area x=0..319, y=80..180. Reusing such a page clears 20 words across 101 rows: 2,020 CPU word stores, 4,040 CPU VGA bytes, and 16,160 selected-plane byte updates. That transition can clear logo rows 80..111, so the logo-preservation explanation applies specifically to the authored object bounds rather than to every caller of the page rotator.

For saved bounds (min_x,min_y)..(max_x,max_y), cleanup writes exactly width_words * rows CPU words, or 2 * width_words * rows VGA bytes. All four planes are selected, so that becomes 8 * width_words * rows plane-byte updates. The six-page ring means this rectangle belongs to the content drawn in that slot six calls earlier; it is neither the immediately preceding frame nor a generic full-page clear.

Hybrid Timer-Delta Rotation And Frame-Stepped Zoom

The object loop contains no 3DAh vertical-retrace wait. Palette fades around it do wait for retrace--CS:0B23 performs 16 retrace-gated palette steps before each scene--but CS:0DE6..1592 is then free-running and samples the timer counter at DS:CDA0. The IRQ path increments that 16-bit counter at CS:28CE.

For every rendered frame:

delta = (uint16_t)(timer_counter - frame_start);

if ((scene & 1) == 0) {
    angle_x += delta*4 / divisor_x;
    angle_y += delta*4 / divisor_y;
    angle_z += delta*4 / divisor_z;
} else {
    angle_x -= delta*4 / divisor_x;
    angle_y -= delta*4 / divisor_y;
    angle_z -= delta*4 / divisor_z;
}

angle_x %= 0x5a00;
angle_y %= 0x5a00;
angle_z %= 0x5a00;
elapsed += delta;

Only rotation and the 250,000-tick turnaround clock use delta. The camera variables are updated by their fixed signed velocities once per rendered frame at CS:1553..155D:

Camera state begins at:

camera_distance        30000
projection_divisor     30
distance_velocity      -200
divisor_velocity       +2

The inward update is permitted while distance is above the scene threshold. Once the value reaches or crosses that threshold, negative velocity is held; positive return velocity is always allowed. Because the step is 200, scene 3 crosses its non-multiple threshold by 100:

Scene Inward threshold Maximum inward updates Reached/held distance
0 12,000 90 12,000
1 15,000 75 15,000
2 11,000 95 11,000
3 10,500 98 10,400
4 11,000 95 11,000
5 10,000 100 10,000

Those are maxima only if the timer has not reversed the camera earlier. Camera update occurs before the turnaround test. On the first frame for which elapsed time is strictly greater than 0003D090h, or 250,000 timer ticks, the code normalizes the velocities to +200 and -2; the first outward movement is on the following rendered frame. The scene ends after a later update takes camera distance strictly above 30,000.

The result is hybrid rather than frame-rate independent. A faster renderer produces more frames with smaller angular deltas but applies more fixed camera steps per timer tick; a slower renderer can reverse before reaching the nominal inward threshold. Polygon throughput can therefore alter zoom speed, closest approach, and outbound wall-clock duration even though angular motion and the turnaround clock are delta-based. The six-page CRTC pipeline also advances without a retrace gate inside the object loop. These facts are consistent with public reports of incomplete-looking drawing on fast systems, but the exact hardware failure mode was not reproduced in the deliberately slow capture.

Keyboard IRQ And The Ineffective Escape Key

The player installer at 021C:0ACE..0AE4 saves INT 9 and replaces it with 021C:0000. The installed handler is only:

push ax
push ds
in   al,60h
mov  ax,0488h
mov  ds,ax
mov  byte [4B54h],1
mov  al,20h
out  20h,al
pop  ds
pop  ax
iret

It discards the scan code, acknowledges the interrupt, and does not chain the saved BIOS handler. The write to DS:4B54 is the only reference to that byte in the restored image: no visual controller reads or clears it. Thus every key, including Escape, is swallowed while the player owns INT 9. The two injected Escapes continuing the captured scene are the expected result of this handler, not evidence that an ordinary exit branch rejected them. Whether the orphaned flag was intended for an unfinished abort feature remains only a hypothesis.

Music Output Path, Kept Silent

The startup selector accepts only ASCII 0..3:

Choice Output Port Sample-rate state
0 internal speaker PIT channel 2 9,322
1 LPT1 DAC BDA 0040:0008 10,000
2 LPT2 DAC BDA 0040:000A 10,000
3 Covox 02CFh 10,000

The LPT choices read their actual base addresses from the BIOS Data Area. The timer initializer at 021C:0AB5 computes the channel-0 divisor from 1,193,180 / sample_rate, installs INT 8 and INT 9, and restores the old vectors at cleanup. The ISR's final output split is:

mov  dx,[08F8h]
or   dx,dx
jz   speaker_path
xchg cl,al
out  dx,al
jmp  short done

speaker_path:
mov  al,0B0h
out  43h,al
xchg cl,al
shr  al,1
out  42h,al
xor  al,al
out  42h,al

This subsystem matters to visual timing because its IRQ counter drives the object delta. It was therefore retained in guest emulation while host output remained disabled. Nothing in this analysis depends on hearing the module.

What The Runtime Images Prove

The four animations are continuous, uncropped 640x400 renderings of exact windows from the video-only direct run. Their commentary follows the recovered scene table rather than visual guesswork:

They prove that those specific scene paths execute and that the selective cleanup/page pipeline preserves the logo while the objects rotate and change scale. They do not prove direct observation of scenes 3 and 5, natural program exit, or a fixed frame cadence.

Technical Takeaway

Vectra's important trick is not just “filled vectors” or “glenz polygons.” Its frame path is a tightly coupled planar-VGA design: Q11 Euler transform, signed Z perspective, authored face order, winding-dependent plane selection, integer edge DDAs, masked latch endpoints, full-byte spans, six CRTC pages, and per-page 16-pixel-rounded damage clearing. Its rotation clock is timer-scaled, but its camera is stepped once per completed frame. The translucent material is a plane ownership rule, not alpha; the flag is colored faces, not texture mapping; and the first magenta object is opaque despite its appearance.

That distinction is exactly why the inner loops matter. The visible result can be named in a sentence, but the code explains which appearances share a renderer, which use a different bitplane mode, what is never sorted or clipped, and why the page/cleanup design can keep a static 320x112 logo behind moving objects without a software framebuffer.