Analysis model: gpt-5.5 xhigh, sol high

Last edited: 2026-08-25

Cronologia by Cascada - Technical Dissection

Source prod: https://www.pouet.net/prod.php?which=3868

Archive used: https://files.scene.org/get/mirrors/hornet/demos/1991/cronolog.zip

This pass examines the untouched 1991 archive and fresh static reconstructions of all six executable files. The bundled README credits development to Iceman, Pharos, Zodiak, and Mirage and describes the production as a late-summer/fall 1991 project. Old contact details in the release are intentionally not repeated.

Artifact hashes:

cc146e8bd40451bb3e6c398417c8cba7877da47e59f0ae04514555ef1ff7bf79  cronolog.zip
070d92579b8d83724a538f3e9abe95d330e04a7d6eea82022e47f90d7af61562  cronolog.exe
1b6f61a391f8b89c64451adaaf6cacfdc425161a6ccdc4a47d791078d6e9a302  cascada.000
3a35b5772f7722e391df30eadd2506a9c03b66ffa96acace5ac11ce3dae56d5c  cascada.001
00d7f03c2d5001b79bc7fbddbe1d1a33af4714455798c1b36cb8c42d7f03bcdf  cascada.002
df5f862bc36aee4550ef6bc5b1ef96d42331f39ad51b8b5c8fc882f0d2b9acb0  cascada.003
6fa7b31d741a079ffaae9127a6f4b0a2189e00d57637e8df280768203f8cb3e3  cascada.004

Deark identifies the loader as PKLITE 1.13/s and each child as PKLITE 1.13/l. The restored-image SHA-256 values used for address-level analysis are:

37ddef105cf89bb7e5fca1669fa377541e3ea6101fb6ad98ec6e0a88342aa28a  cronolog restored
9e66336181b6c239874b9630cc71ed607581556c468c03bc322f2fb3d6ceb635  cascada.000 restored
833c63b09438105c5414f4b1ceb223e15761f454beff2606c1bc1affe90e11f0  cascada.001 restored
6800bf783e6deebf2f328b945a897e103cb4172b8cc6fc775dd83fc75c8f30f7  cascada.002 restored
87758d247abcf3bd0dcbcc1b3e0edc646d9ce025611cfca5c0f5006dcbca1dad  cascada.003 restored
f225f70d283de10831e9c6f97f974e729187edce2d6e975839ef40d23f9c1b5a  cascada.004 restored

Offsets below will distinguish restored file offsets, load-image offsets, and runtime segment:offset addresses. Packed-file offsets are used only for the PKLITE/container boundary; there is no meaningful one-to-one packed offset for an instruction recovered from a compressed stream.

The reconstructed MZ boundaries are:

File Packed bytes PKLITE Restored bytes Restored load image Relocations Restored entry
CRONOLOG.EXE 18,143 1.13/s 31,176 30,664 14 0000:05CE
CASCADA.000 20,516 1.13/l 112,704 112,192 9 0000:0001
CASCADA.001 115,670 1.13/l 365,536 365,024 25 000D:06AF
CASCADA.002 100,078 1.13/l 183,192 182,680 7 0000:578D
CASCADA.003 160,524 1.13/l 378,768 378,256 20 000D:0048
CASCADA.004 54,941 1.13/l 97,432 96,920 1 0000:245A

All restored files use a 512-byte MZ header. Deark reports compressed-stream input/output sizes of 17,479 -> 30,664 bytes for the loader and, in child order, 19,670 -> 112,192, 114,792 -> 365,024, 99,236 -> 182,680, 159,656 -> 378,256, and 54,111 -> 96,920 bytes. These are six independent program images, not overlays inside one resident graphics engine.

Structure

CRONOLOG.EXE is the loader/setup. It stores device choices in CASCADA.DAT, asks whether to reuse the last setup, configures D/A, Covox, Sound Blaster, or PC speaker output, then chains CASCADA.000 through CASCADA.004.

The five parts are separate packed DOS executables:

Runtime Capture

Runtime capture used DOSBox-X 2026.01.02 with machine=svga_s3, normal core, cycles=30000, XMS enabled, EMS disabled, and host audio muted. Timing zero is the start of dx-capture /v CRONOLOG.EXE after answering the loader's saved setup prompt.

The public capture reached the intro and long presentation/scroller section. Attempts to advance with Space stayed in the presentation, while Escape exited to a contact-text screen; direct CASCADA.002/.003/.004 execution by renaming the packed part to RUNPART.EXE returned to DOS without useful visual output. Static analysis now explains that boundary: children unconditionally call the resident loader ABI through BDA offsets 0040:00F0..00FE; a renamed or standalone child does not have the required callbacks/shared segment. The images below therefore document only the public runtime portion that captured cleanly and omit contact/BBS/address screens.

Timestamp Frame Notes
00:05 Cronologia runtime 00:05 Opening "We're back!" card.
00:10 Cronologia runtime 00:10 CRONOLOGIA title card before the main logo/scroller.
02:25 Cronologia runtime 02:25 Presentation section with grayscale portrait inside the Cascada/Cronologia logo.
03:10 Cronologia runtime 03:10 Later presentation state with the sunglasses portrait and color-bar background.

The four runtime stills are kept as direct stills rather than a GIF because the intro/title frames are 320x229 while the later presentation frames are 320x240. Combining them into one animation would add padding or otherwise normalize the source frames.

Runtime-To-Code Concordance

The four direct stills cover the loader handoff into CASCADA.000 and the long CASCADA.001 presentation/scroller section. They do not prove the later vector, time, or end parts as runtime events in this capture; those sections are still static disassembly findings unless a future run reaches CASCADA.002 through CASCADA.004 cleanly.

The 00:05 "We're back!" and 00:10 CRONOLOGIA title frames match the intro part's planar setup style. CASCADA.000 sets VGA planar state, selects all planes with Sequencer map mask 0f02h, fills spans with rep stosb or rep stosw, and uses CRTC display-start writes rather than treating A000h as a linear mode-13h framebuffer. The capture's odd 320x229 frame height is therefore preserved as evidence of the programmed display state instead of being normalized into a guessed canvas.

The 02:25 and 03:10 portrait/logo frames belong to the CASCADA.001 presentation path. The setup loop at restored load offset 0254h builds the vertical color-index ramp beginning at destination 0x1180, selects all four planes via outw(0x3c4, 0x0f02), and primes palette entries starting around index 0x40 through 3C8h/3C9h. That explains the stable logo panel and the color-bar background style in the later captured frames.

The main presentation blitter at restored load offset 0488h is the better mechanical match for the Cascada/member-panel area: it walks ten bands, skips 0xff sentinels, selects plane masks 1, 2, 4, and 8, and copies each planar slice with a 0x32 - width source skip. The captured portrait-in-logo screens are therefore not just screenshots of stored chunky pictures; they are the visible result of four-plane asset slices being copied through VGA map masks.

The later CASCADA.002, CASCADA.003, and CASCADA.004 sections remain useful code notes, but they should not be conflated with the captured stills. Their retrace waits, fixed-point vector transforms, sine-table sprite motion, palette interpolation, and CRTC fine-scroll paths describe what those parts are built to do. This runtime pass only proves the intro and presentation phases shown above.

Shared Engine

The loader requires 8A80h free paragraphs—567,296 bytes—then synchronously EXECs .000 through .004 at I=0649,0678,06A8,06D7,0707, preserving and restoring its SS:SP around every INT 21h AX=4B00h. After .004 it stops the resident engine, selects mode 3, restores both PIC masks, frees its allocation, and only then prints the final contact text.

CASCADA.DAT is exactly 16 bytes with no signature, version, or checksum. The loader reads it at I=0801 and offers to reuse device, speed, selector, I/O base, and mode state. The archived bytes select Sound Blaster, speed index 5, selector 5, base 220h, and mode flag 1. Static setup branches also support LPT D/A/Covox, 2CFh Covox, and PC speaker.

The important parent/child contract lives in otherwise-unused BDA space:

0040: offset Meaning
00F0 loader callback far pointer
00F4 child-selected track/part number
00F6/00F8 resident engine table offset/loader segment
00FC speed index times two
00FE table selector times twelve

The callback at loader I=21D6 normalizes track zero to five, computes track*3Ch, copies exactly 1964h words (32C8h bytes) of resident engine code, configures it from those BDA indices, and starts it. That shared timing and handoff service—not just music—is why the children cannot be interpreted as ordinary independent EXEs at runtime.

Graphics are not governed by one universal mode. .000 changes from planar mode 0Dh setup to mode 13h byte reveals; .001, .002, .003, and .004 use several planar row widths and page layouts. Their recurring hardware ports are:

3c4: index 02h  ; sequencer map mask, choose plane(s)
3ce: index 05h  ; graphics-controller mode
3d4: 0c/0d      ; CRTC start address for page flip/scroll
3c8/3c9         ; palette index/RGB writes
3da bit 3       ; vertical retrace wait

CASCADA.000 Intro

The old description incorrectly implied that the reveals were planar blits. Entry I=0001 briefly selects mode 0Dh to clear all planes, then switches to mode 13h; the three reveal loops are direct byte writes through fully unrolled 256-source-byte row mappers.

Important routines are reveals at I=008F, 09DB, and 131F, title sequence 1C1F, CRTC helper 1D5C, and 32-palette builder 1D93. In every reveal:

phase = (phase + 4) & 255;
step = curve[phase];
src = 0x0300;
for (each selected source row) {
    fixed_x = 0x1000;
    for (x = 0; x < 256; x++) {       /* unrolled in the binary */
        vram[row_high : high8(fixed_x)] = *src++;
        fixed_x += horizontal_step;
    }
    clear_right_guard_bytes();
    vertical_accumulator += step;
}

09DB consumes exactly 64 source rows (0300h..42FFh) and holds 120 retraces at phase wrap. 131F consumes 55 rows (0300h..39FFh) and ends when phase reaches zero. 008F ends when its table-driven vertical accumulator equals 1000h and holds 180 retraces at wrap; inventing a fixed row count for that variant would be wrong.

The title path uploads 768 palette bytes, copies 17 rows of 67h words and a second 1B00h-word block, streams 32 complete palettes one per retrace, waits 60 frames, and performs exactly 50 CRTC steps. I=1D93 constructs the palettes as 32 scales (0..F8h, step 8), each containing 768 interpolated components. The top-level sequence has no active keyboard gate; it exits by timing.

CASCADA.001 Presentation

This is the long presentation/scroller part containing the Cascada/member panels. Its main CS is 000Dh, so I=R+00D0h and F=I+0200h. The previous offsets were wrong: the 174-row ramp is I=0254/F=0454, and the ten-band blitter is I=0488/F=0688.

The ramp is exact:

outw(0x3ce, 0x4005);
outw(0x3c4, 0x0f02);

di = 0x1180;
al = 0x40;

for (row = 0; row < 0xae; row++) {
    memset(A000_or_buffer + di, al, 0xa0);
    di += 0xa0;
    al++;
}

Then it primes palette entries starting around 0x40 through 3c8/3c9, writing RGB triplets.

Each band descriptor is four bytes: start (FFh means empty), start plane, width, and end plane. The blitter is:

for (band = 0; band < 10; band++, descriptor += 4) {
    r = *descriptor;
    if (r.start != 0xff) {
        src = source_base + r.start;
        for (mask = 1; mask <= 8; mask <<= 1) {
            SEQ_MAP_MASK = mask;
            memcpy(vram + destination, src, r.width);
            src += 0x32;                 /* 50-byte plane slice */
        }
        saved_destination[band] = destination;
    }
    source_base += 0xc8;
}

Even an empty band advances its descriptor and 200-byte source row. Ten bands advance descriptors by 28h; the full run ends at 190h, exactly 100 records.

The frame loop at I=090A waits for retrace, writes CRTC start and attribute pixel pan, streams 96+32 DAC entries (optionally another 32), advances two 512-entry sine phases, and dispatches one script command every eighth frame. The bytecode begins at I=19D1: zero ends the part; ordinary bytes are characters; prefixed commands change palette/phase speeds, select a callback or asset sequence, and toggle the extra DAC block.

Ordinary characters shift 16 rows by one byte and append one glyph column:

for (row = 0; row < 16; row++) {
    memmove(vram + row*0xa0, vram + row*0xa0 + 1, 0x50);
    vram[row*0xa0 + 0x4f] = glyph[row*8];
}

Exit occurs when the shared-engine fade byte reaches zero, or when Escape is seen while it is FFh. The four public portrait/logo stills therefore prove this .001 path, not any later vector/time/end routine.

CASCADA.002 Vector Part

This part contains two renderers and two unrelated mechanisms called COB in its own text. The previous article collapsed them together and consequently misidentified the scheduler, rotation constants, projection destination, and vector-ball rasterizer.

Loader ABI and function map

Direct execution is unsupported even though there is no simple parent-name check. Entry I=578D unconditionally calls a private service through BDA far pointer 0040:00F0, obtains the resident shared-engine table through 0040:00F6/00F8, and installs its shared segment. This explains why renaming or passing the visible -KeY. string still returned immediately: the loader must remain resident and initialize that BDA ABI.

Important restored load offsets (F=I+0200h) are:

I Role
5843 top-level phase loop
58EB phase-3 vector-COB style-grid update
5BCC separate blocking raster-COB interpreter
5FE3 / 602F point/polygon page flip and pacing
667E hidden polygon-page clear and bucket traversal
68B3 point transform and depth-list construction
692F polygon transform, face culling and depth buckets
7CA4 face bucket construction
8901 object morph interpolation
9161 polygon edge walker and planar span filler
9373 rotate and project vertices
97FF startup face-normal generation
9A09 actual wordcode scene interpreter
9D9E 80-byte-row polygon VGA setup
0A1C:0000 vector-ball clear and generated-sprite raster
0A1C:00A8 generate twenty sprite stamp routines

The main loop is:

for (;;) {
    run_scene_wordcode();

    if (phase == 1) {
        build_polygon_frame();
        flip_polygon_page();
        clear_hidden_rectangle_and_fill_faces();
        update_two_line_text();
    } else {
        if (phase == 3)
            shift_vector_COB_style_grid();
        transform_and_bucket_points();
        flip_point_page();
        generated_sprite_raster();
    }

    update_object_and_light_angles();
    poll_escape_and_loader_handoff();
}

Phase 1 is filled polygons. Phase 2 is depth-sorted vector-ball point clouds. Phase 3 uses the same point renderer while the vector-COB code modifies each point's sprite style.

Real scene program and model grammar

The scheduler is the 5,368-byte wordcode at I=1296..278D: 404 commands, 90 explicit zero-word one-frame yields, and final 00FFh. Its important opcodes set zoom, select an object, delay, copy 16 RGB triplets, set/interpolate center, set object/light angular increments, enable lighting, start a morph, switch phase or invoke blocking COB, write two-line text, and wait for center/morph completion. The four embedded blocking-COB streams begin at 1FD6, 20BD, 21B8, and 22B3; their bytecode is not the main scheduler.

The 25-entry object table at I=2794 holds (model_offset, face_or_style_offset) pairs. A model is a counted array of signed XYZ words:

u16 vertex_count;
struct { s16 x, y, z; } vertex[vertex_count];

Polygon face blocks hold a 16-bit count followed by variable records:

u16 face_count;
u8 visible;
u8 edge_count;             /* filler accepts at most eight */
u8 color;
u8 vertex[edge_count + 1]; /* normally closes with vertex zero again */

The runtime record at I=008C replaces vertex indexes with projected XY pairs. Lighting-enabled objects also have one Q6-ish normalized XYZ face normal per face, built by cross product plus integer square root at startup.

Object 2 contains a shipped malformed face entry rather than an unresolved boundary. Its table pair is model 4428h, face block 459Eh; the model has 24 vertices and the face block declares 18 faces. Starting after the count at 45A0h, exactly 17 coherent closed records end at 462Ch: two are six-edge faces and fifteen are four-edge faces. Their color histogram is {1:4,2:4,3:1,4:2,5:1,6:2,7:2,8:1}. The next bytes are:

4624: 00 04 08 14 15 16 17 14  ; valid face 17
462C: 00                         ; alignment byte / bogus visibility
462D: A0 00                      ; next model's vertex count: 160

Because the declared count is 18, the code parses 462Ch as another record: visibility 0, edge count A0h (160), color 0. Its first three supposed vertex indexes are then B8h,FFh,D3h, bytes belonging to the following model. This is not dead padding. Scene opcode 3 selects object index 2 at I=18C8, after the wordcode has selected polygon phase 1 and before the next phase change.

Both consumers trust the bad count. Startup normal generation at I=97FF reserves six normal bytes per declared face, takes bytes record+3..+5 as its first three vertex indexes, and advances by edge_count+4; its 18th iteration therefore computes from bogus indexes 184, 255, and 211 and skips 164 bytes. Per-frame expansion at I=692F likewise runs 18 iterations and expands edge_count+1, so the malformed face reads 161 bogus indexes from subsequent model data and writes corresponding projected XY pairs into transient face scratch. The filler at I=9161 later rejects every edge count above eight, which prevents this record from issuing span writes. The released defect is therefore raster-guarded, but not inert: malformed normal construction and scratch expansion still happen before that guard.

Point objects use the same XYZ grammar plus one style byte per point. The release contains 160-point, 120-point, 91-point, and 25-point sets. Selection expands 256 style bytes into six-byte-stride words at I=4E50, aligned with the projected six-byte point records.

Q8 rotation and patched perspective

The 256-word table at I=95EB is cosine-shaped Q8 data with amplitude 256. Adding 80h to its byte address advances 64 words, a quarter cycle. The old analysis's 4000h “unity” was wrong: those immediates are self-modifying placeholders patched with Q8 table values before the loop.

The exact rotation order at I=9373 is XY, then XZ, then YZ:

x1 = low16(x*C(a0) - y*Q(a0)) >> 8;
y1 = low16(x*Q(a0) + y*C(a0)) >> 8;
x2 = low16(x1*C(a1) - z*Q(a1)) >> 8;
z2 = low16(x1*Q(a1) + z*C(a1)) >> 8;
y3 = low16(y1*C(a2) - z2*Q(a2)) >> 8;
z3 = low16(y1*Q(a2) + z2*C(a2)) >> 8;

Projection is likewise patched state, not the old fixed F000h formula:

denom = z3 + zoom;                  /* initially 3E80h */
scale = idiv_s32(128000, denom);
sx = (low16(x2 * scale) >> 8) + center_x;
t  = low16(y3 * scale) >> 8;
sy = (low16(t * 187) >> 8) + center_y;

Initial center is (480,120). Normal calls patch the output pointer to I=0C8E; F000h is merely the unpatched immediate. There is no denominator guard, near-plane clipper, or general viewport clipper.

Face buckets, culling, edge table, and spans

I=692F averages all edge_count+1 Z references, including the repeated first vertex, so vertex zero receives double weight. Its low-word winding test accepts one direction. Visible faces enter one of 256 linked buckets at I=6A44 using bucket=128-average_z; low-to-high traversal is painter-order for this projection.

The filler at I=9161 rejects edge counts above eight, programs VGA set/reset, and Bresenham-walks every closed edge into left/right words in a four-byte scanline table at I=8981. It then fills each row with masked endpoint latch writes and full interior bytes:

left = edge[y].left;
right = edge[y].right;
if (left != 0 && right >= left) {
    masked_latch_write(left >> 3, left_masks[left & 7]);
    fill_complete_bytes(0xff);
    masked_latch_write(right >> 3, right_masks[right & 7]);
}

Narrow spans merge the shifted masks into one or two byte writes. Bresenham therefore constructs scanline boundaries; it is not a separate visible wireframe pass. No explicit X/Y clipping occurs.

Polygon mode uses 80-byte logical rows and direct pages 0000h/7D00h. Before drawing, I=667E clears a fixed 224-pixel-wide, 151-row rectangle on the hidden page. The loop is exactly 151 rows times fourteen word stores: 2,114 CPU stores, or 4,228 addressed bytes, before any visible face is filled. It does not erase old edges individually. The face walker subsequently visits all 256 bucket headers in painter order; collision nodes are linked between headers, while only records whose visible byte survived the winding test call the span filler.

Actual vector-ball inner loop

At startup 0A1C:00A8 generates twenty specialized plot routines: ten 8x8 sprites and ten 16x16 sprites. 0A1C:0128 emits a direct mov byte [di+constant],constant_color for every nonzero source pixel plus map-mask changes. Each small source has 37 nonzero pixels and yields 247 bytes of code; each large source has 177 and yields 947 bytes. The one-time result is 11,940 bytes of generated code containing 2,140 literal pixel-store instructions. A call executes 37 stores for a small ball or 177 for a large ball. Its generated prologue selects the first VGA plane from X; four emitted rotate/adjust/OUT tails advance the mask through the four plane groups. That makes five Sequencer map-mask word outputs per stamp, including the final turnover after the fourth group.

The generator's inputs and output are fixed. Small 8x8 masks begin at SI=0490h; ten 64-byte sources become dispatch slots BX=0,2,...,18. Large 16x16 masks begin at SI=0710h; ten 256-byte sources become slots BX=20,22,...,38. Generated code starts at DI=11D8h, while calls dispatch through [CS:BX+1110h]. For each nonzero source byte the helper emits the literal five-byte instruction C6 85 disp16 imm8, or mov byte [di+disp16],imm8. Thus the size equations are not estimates: 37*5+62=247 bytes per small routine and 177*5+62=947 per large routine. The doubled runtime style word is used directly as BX; dividing it by two only gives the human-facing stamp number 0..19.

Each frame I=68B3 optionally morphs points, rotates/projects them, and links them into bucket=128-z depth order. The far raster then performs:

clear_hidden_page_rectangle(36_address_bytes, 110_rows);
for (point in depth_bucket_order) {
    style = expanded_style[point.index] / 2;
    adjust = style >= 10 ? 8 : 4;
    generated_stamp[style](point.x-adjust, point.y-adjust);
}

The clear is equally concrete. The routine derives its top-left byte from the current center/page state, subtracts 55 rows and 18 address bytes, selects all four planes, then performs rep stosb for exactly 36 bytes. It adds 124 to DI to complete the 160-address row stride and repeats this for 110 rows: 3,960 CPU byte stores covering a 144-pixel-wide by 110-row planar rectangle. The stamp path initially subtracts four from X and Y; style words 20 or above (human stamp numbers 10..19) subtract another four, centering the 16x16 masks with an eight-pixel adjustment instead of the 8x8 masks' four.

Point mode uses 160 addresses per row, with four neighboring pixels distributed across VGA planes. Pages are represented as scanline selectors 0 and 200; crtc_start=page*160+50h, then page^=200. This is a depth-sorted sprite renderer, not a line or audio routine.

The arithmetic and list costs can be stated exactly. I=9373 loads six distinct Q8 trigonometric coefficients and patches them into twelve immediate operand sites once before entering the vertex loop. Each point then executes twelve signed multiplies for the three rotations, one signed divide for the shared perspective scale, two multiplies for projected X/Y, and one more multiply for the 187/256 vertical aspect correction. In other words, the projection is 15 IMUL, one IDIV, and three result-word stores per point; it does not divide X and Y independently.

I=68D3 rebuilds 256 four-byte depth headers every frame with 512 word stores, then writes the FFFFh terminator for a 513-word initialization total. Let N be the point count, U the number of occupied depth buckets, and C=N-U the collision count. First occupants need one pointer store and collisions need three stores for their four-byte link node, so insertion costs U+3C = N+2C word stores. The far walker visits exactly 256+C headers/nodes and invokes exactly N stamps. These formulas matter because depth sorting never becomes a comparison sort: even the sparse 25-point objects pay the fixed 256-header scan, while equal-depth points alone add collision nodes. There is no bounds check between bucket=128-z and its four-byte table lookup; model scale, zoom, and camera motion must keep Z inside the authored range just as they keep the stamps inside the viewport.

The released point objects produce this steady-frame ledger. “Addressed VGA stores” counts the 3,960-byte hidden-page clear plus generated stamp stores; the clear has map mask 0Fh, so each clear store updates four plane bytes, whereas each generated pixel store selects one plane. Register outputs are the five map-mask word OUTs per stamp plus two fixed outputs around the clear and write-mode setup, for a complete per-frame total of 5N+2.

Scene object(s) Points and released styles Transform arithmetic Stamp stores Total map-mask word OUTs Addressed VGA stores Plane-byte updates
4, 5, 6 160, all small 2,400 IMUL + 160 IDIV 5,920 802 9,880 21,760
14, 24 120, all small 1,800 IMUL + 120 IDIV 4,440 602 8,400 20,280
7 91, all small 1,365 IMUL + 91 IDIV 3,367 457 7,327 19,207
15, 16 25: 18 small + 7 large 375 IMUL + 25 IDIV 1,905 127 5,865 17,745

Those style mixes come from the object-table pairs rather than visual guesswork. Objects 4/5/6 use the same 160-point model with raw style histograms {3:48,8:112}, {0:64,1:48,8:48}, and {0:112,8:48}. Object 7 is 91 copies of style 0; objects 14/24 use {3:80,8:40}; and objects 15/16 share {9:18,11:2,13:2,16:2,18:1}. In point modes, selection at I=9A75 expands 256 raw bytes into doubled style words at six-byte spacing. IDs 16 and 24 are morph targets rather than independently selected scenes; they share the style pointers of active objects 15 and 14 respectively, so the ledger is unchanged. Before rasterizing, 0A1C:0057 patches the far routine's style displacement from the selected buffer, replacing the apparent 1000h placeholder in the restored image.

Morphing is a separate optional surcharge, not part of the steady numbers in the table. I=8901 performs three more signed multiplies per point--one linear interpolation for each XYZ coordinate. The released wordcode only morphs object 15 to/from 16 and object 14 to 24, so its morph frames add 75 IMULs for 25 points or 360 for 120 points; 160- and 91-point morph costs would be 480 and 273 but are not exercised by this scene program. The Q8 interpolation factor starts at one and advances by four per rendered frame. After 64 morph frames the post-increment value reaches 257, crosses the 0100h completion threshold, installs the target model as current, and disables the interpolation path.

The phase-3 vector COB shifts the 13x7, 91-point style grid by one six-byte record every second frame. Every eighth shift it inserts seven glyph bits into the last column as style 2 or 0. The point renderer turns those style values into different generated ball stamps, which is the exact coupling behind the release's “VECTOR COB SCROLL” label.

Pacing and exit

Normal flips wait for retrace inactive, program CRTC start, toggle the hidden page, poll loader-shared word [shared:544D] against a threshold, then wait for retrace active and zero the shared counter. The blocking raster COB only waits for active retrace. The counter's producer is outside this child, so assigning it a guessed PIT frequency would overstate the evidence.

At scene end, I=9CA4 performs exactly 63 inactive/active retrace pairs while writing FCh,F8h,...,04h to shared fade word 675Ah, then calls the loader's return callback and exits.

CASCADA.003 Time Part

This uncaptured static section has its main CS=000Dh, so I=R+00D0h. Tracker commands, not a simple linear script, dispatch scene IDs 0Fh..1Fh from four channel cells. Important boundaries are scheduler I=01D4, cleanup 0532, motion loop 081A, Bresenham line 09B1, two-plane animation 0F11, large-page preload 12B0, and 80-byte-stride scroll 1608.

The first motion setup uses 40-byte logical rows. For every plane it copies exactly 78 rows of 23 bytes with a 17-byte skip, then write-mode-1 latch-copies 1838h bytes from 1278h to 31B8h. The moving endpoints are:

p = phase1 >> 6;
x1 = ((sine[p]       - 128) * 0x91 >> 8) + 0x9d;
y1 = ((sine[p+0x100] - 128) * 0x78 >> 8) + 0x64;
p = phase2 >> 6;
x2 = ((sine[p]       - 128) * 0x6c >> 8) + 0x9d;
y2 = ((sine[p+0x100] - 128) * 0x50 >> 8) + 0x64;

The line routine draws from (157,100) into plane 3 at 0F00h+page+y*40+x/8, then toggles page^=1F40h (exactly 8,000 bytes). Acceleration is not a fixed phase increment:

accumulator += acceleration;       /* default 28h */
delta = accumulator >> 4;
phase2 -= delta;
phase1 -= 12 * delta;

The separate two-plane animation alternates pages 83E0h/A320h. For two planes and 96 rows it copies six words, skips 1Ch bytes to the next 40-byte row, advances its source segment by 90h, and wraps after exactly 24 frames at delta D80h. Escape is latched by the part's keyboard ISR; cleanup restores INT 09, fades/stops the shared engine, selects mode 3, and blacks all 768 DAC components. None of this is assigned to the published .000/.001 pictures.

CASCADA.004 End Part

This uncaptured credits/end program uses 80-byte rows and two pages separated by 3E80h (16,000 bytes). Presentation combines coarse page/Y/X address, CRTC preset-row scan, and attribute pixel pan:

fine_x = scroll_x & 7;
addr = pagebase + (scroll_y * 0x50) + (scroll_x >> 3);

CRTC[0x0c] = addr >> 8;
CRTC[0x0d] = addr & 255;
attribute_pixel_pan = fine_x;

The old article misread the six-byte animation records as RGB transitions. Records at 1044h..111Bh are three signed scale/control bytes plus RGB and restart at 111Ch=FFh; one record lasts exactly 168h frames. The third scale multiply is dead in this restored binary because mov bx,cx immediately overwrites it.

The object loop at I=2922 draws 128 objects by default, reduced to 64 only for loader speed selections 0 or 1. It derives three sine-table coordinates, stores every destination for next-frame cleanup, selects one of 16 mirrored heights 1..8, and ORs pattern words down plane 3 at stride 50h:

N = slow_machine ? 64 : 128;
step = 2 * (0x100 / N);
for (phase = 0; phase != 0x200; phase += step) {
    dst = coordinates_from_three_512_word_sines(phase);
    old_pointer[i] = dst;
    subpixel = (x & 7) << 4;
    shape = (shape_phase >> 5) & 0x1e;
    for (row = 0; row < mirrored_height[shape]; row++) {
        plane3[dst] |= pattern[subpixel++];
        dst += 0x50;
    }
}

Before drawing, I=2656 walks all N saved pointers and zeroes eight words per object, each 50h bytes apart. That is selective old-object cleanup, not a full-page clear.

The credits bytecode spans 111Dh..23DCh: zero resets to the start; byte 1 advances a blank column; 02,n sets a hold of n*3Ch frames; other bytes are glyph tokens. Each glyph is exactly A2h bytes: three planes times 27 rows times one word. The blitter writes planes 0..2 only, at 27-row stride 22h; plane 3 remains reserved for the object overlay. Write-mode-1 scrolling copies four exact 22h-byte spans per frame into both pages.

Escape begins a gradual shared fade at FCh, subtracting four per frame. Cleanup blacks 768 DAC components, restores the entry stack, stops the shared engine, and exits. Text mode restoration belongs to the resident loader.

Sources