Analysis model: gpt-5.5 xhigh, sol high
Last edited: 2026-08-26
Scroll Land by Twin Sectors Inc. - Technical Dissection
Release year: 1991
Scope and identity
Scroll Land is a July 1991 MS-DOS VGA demo by Twin Sectors Inc. Demozoo credits Jones for code and records the production as second in the PC demo competition at the Twin Sectors Inc. Party 1991.
Primary references and artifacts:
- Demozoo production page
- Scene.org release archive
- DOSBox-X compatibility note
- archive:
scrollla.zip, 319,428 bytes - release executable:
SCRLLAND.EXE, 336,235 bytes, dated 23 July 1991
54c65f8781a3559a96e41c6460b1bd05622b73138159c91b149ab90f9aec91fe scrollla.zip
e3028c3e76650078dfc3d519f4af6ab9b2d563c3eebf573d17cf1bb40f7abca7 SCRLLAND.EXE
This pass keeps the soundtrack inaudible. Sound Blaster emulation was present only while testing the guest timing path; host output was dummy. No audio is published here.
Visual evidence and its boundary

The image above is an unmodified public Demozoo screenshot, not a local
runtime capture. It shows the central SCROLL LAND artwork, coloured broken-up
letter columns, and the lower sample trace. Those are the three layers assigned
to separate code paths below.
The installed DOSBox-X 2024.03.01 build ran the restored program under the documented 386/4,000-cycle profile, but automated X11 hot-key injection did not produce a trustworthy capture. The packed release also raised repeated illegal interrupt diagnostics in this environment. The UNP-restored executable did not raise those diagnostics in the final bounded test, but that is only a compatibility observation, not a complete local playback record. Routine emulator warnings were redirected to ignored logs.
The next two images are therefore not presented as playback frames. They are exact decodes of the executable's two 64,000-byte mode-13h background buffers through its embedded 768-byte palette.


The logo and ring belong to static base pages. The fragmented letters and sample trace in the public screenshot are live overlays. This distinction is important: attributing all of those pixels to one framebuffer renderer would misdescribe the demo.
PKLITE carrier and restored image
The shipped MZ header contains the PKLITE 1990 signature. UNP 4.12 restores a
484,054-byte executable:
081b2396017835a3a32d0665a010ff9868bfcbc7825da26a60f11e190f9a1b2e restored SCRLLAND.EXE
MZ pages 946
bytes in final page 214
header paragraphs 32 (512 bytes)
relocations 24
minimum allocation paragraphs 6
entry CS:IP 0000:0000
stack SS:SP 0076:0050
load image 483,542 bytes
The top-level program is unusually convenient after restoration: entry code
starts at load offset 00000h, compact state and the Creative driver begin at
00530h, and the large resources follow in one contiguous image.
load +00000 top-level code
load +00530 Creative CT-VOICE driver and shared state (segment 0053h)
load +016F0 768-byte palette/work area
load +019F0 64,000-byte logo base screen
load +113F0 64,000-byte ring base screen
load +20DF0 1,502-byte text/control stream
load +21CF0 position tables
load +21DF0 first Creative Voice File
load +6A940 second Creative Voice File
The boundaries are structural rather than guessed from image appearance. Base screen A ends exactly where B starts; B ends exactly where the text stream starts. The script's first zero terminator is at byte 1,502.
Startup, interrupts, and frame order
Startup selects BIOS mode 13h, assigns DS=0053h, initializes CT-VOICE
through its far call pointer at 0053:000B, queues the embedded VOC material,
and replaces IRQ 1. The keyboard handler distinguishes Space make and break:
0168 in al,60h
016A cmp al,39h
016C jne 0173h
016E mov byte [0011h],1 ; Space pressed
0173 cmp al,B9h
0175 jne 017Ch
0177 mov byte [0011h],2 ; Space released
017C in al,61h
0180 or al,80h
0182 out 61h,al
0186 out 61h,al
0188 mov al,20h
018A out 20h,al
018C iret
The DOSBox-X compatibility note observes the resulting user-visible oddity: Space can freeze the display while sample playback continues. The binary explains it as two states rather than a conventional single exit flag.
One steady frame has this ownership order:
wait_for_display_status_3DA();
erase_previous_200_point_trace();
apply_pending_64000_byte_background_switch();
update_audio_marker_flash();
update_trace_base_and_draw_200_new_points();
if (++palette_divider == 2) {
palette_divider = 0;
advance_palette_scroller_one_column();
}
The visible screen is not cleared each frame. The trace repairs only its own old 200 addresses from the active background, while the giant text effect changes DAC state without rewriting the background pixels.
The scroller is a 600-byte palette conveyor
The key scroller body selects palette segment 016Fh as both source and
destination, starts source three bytes after destination, and copies 300
words:
0205 mov cx,012Ch ; 300 words
0208 mov ax,016Fh
020B mov es,ax
020D mov ds,ax
020F mov si,0003h
0212 mov di,0000h
0215 rep movsw ; 600 bytes / 200 DAC entries
Because source is higher than destination and DF=0, palette entries 1..200
move down to 0..199. Nothing here touches A000h. The apparent horizontal
motion in the screenshot is colour moving through already-indexed background
pixels.
This routine runs once per two display-status waits. An eight-step phase byte selects one of eight columns in the current glyph. At phase wrap, the routine advances the script and updates three self-modifying colour seeds:
01AC inc byte [0210h]
01B0 cmp byte [0210h],8
01B5 jne 0205h
01B7 mov byte [0210h],0
01BC inc word [020Eh] ; next script byte
01D2 inc byte [cs:01C5h] ; red seed immediate
01D7 cmp byte [cs:01C5h],40
01DF mov byte [cs:01C5h],0
01E5 dec byte [cs:01CBh] ; green seed immediate
01EA jne 01F2h
01EC mov byte [cs:01CBh],40
01F2 inc byte [cs:01D1h] ; blue seed immediate
01F7 cmp byte [cs:01D1h],40
01FF mov byte [cs:01D1h],0
The bytes at 018Dh..018Fh are live RGB working values. Instructions at
01C0h, 01C6h, and 01CCh overwrite them from immediate operands that the
later code modifies in place. This is actual self-modification, not merely
state stored beside code. Each glyph column adds three to all three working
components before writing the colour gates.
Four bits become four distorted glyph copies
The script byte is normalized by subtracting ASCII space. Multiplication by eight and addition of phase selects one byte from the embedded 8-column glyph table:
025E sub al,20h
0260 xor ah,ah
0262 rol ax,1
0264 rol ax,1
0266 rol ax,1 ; (character - 32) * 8
026D mov si,002Eh
0270 mov al,[0210h] ; column phase 0..7
0275 add bx,ax
0277 mov al,[bx+si] ; four useful glyph bits
Only bits 8, 4, 2, and 1 are tested. Each bit controls the final RGB
entry of one 50-colour band:
glyph bit 8 -> palette byte 0093h -> DAC index 49
glyph bit 4 -> palette byte 0129h -> DAC index 99
glyph bit 2 -> palette byte 01BFh -> DAC index 149
glyph bit 1 -> palette byte 0255h -> DAC index 199
An enabled gate receives the current RGB triplet; a disabled gate receives
0,0,0. On subsequent calls, rep movsw carries that triplet backwards
through its 50-entry bank. The four bands therefore serialize four copies of
the same four-bit-wide glyph column through different indexed regions of the
static picture.
Normalized, the hot operation is:
memmove(palette + 0, palette + 3, 600);
if (++phase == 8) {
phase = 0;
++script_position;
advance_three_independent_colour_seeds();
}
bits = font[(script_byte - 32) * 8 + phase];
rgb += (3, 3, 3);
palette[ 49] = (bits & 8) ? rgb : black;
palette[ 99] = (bits & 4) ? rgb : black;
palette[149] = (bits & 2) ? rgb : black;
palette[199] = (bits & 1) ? rgb : black;
Per active palette step, this accounts for the 600-byte shift plus four three-byte gate writes. One printable character consumes eight such steps, or sixteen refresh waits. At a nominal 70.086 Hz VGA cadence that is about 4.38 characters per second; this timing is derived from the control path, not from a local video timestamp.
Script controls and background ownership
The 1,502-byte stream is mostly display text but embeds two nonprinting
commands. Byte 2 requests the logo page and byte 3 requests the ring page:
0232 cmp al,2
0234 jne 0248h
0236 mov byte [0222h],1
023B mov word [cs:0468h],019Fh
0242 mov al,20h
0244 inc word [020Eh]
0248 cmp al,3
024A jne 025Eh
024C mov byte [0222h],2
0251 mov word [cs:0468h],113Fh
0258 mov al,20h
025A inc word [020Eh]
The commands occur at script offsets 135, 300, and 642: 3, 2, then 3.
Each is rendered as a space and immediately skipped. The write to instruction
operand 0468h retargets the trace eraser to the same background selected for
the next full-screen copy. That keeps cleanup ownership coherent across a page
change.
The deferred switch routine first blacks DAC entries 200 onward, then copies
exactly 64,000 bytes and reloads 55 RGB entries from palette offset 0258h:
0491 mov ax,113Fh ; ring, or 019Fh for logo
049A mov byte [0222h],0
049F mov ds,ax
04A5 mov ax,A000h
04A8 mov es,ax
04AA mov cx,00A5h ; 165 zero DAC writes
04B9 mov cx,7D00h
04BC rep movsw ; 32,000 words = 64,000 bytes
04BE mov ax,016Fh
04C1 mov si,0258h
04C6 mov cx,0037h ; 55 RGB triplets
04CE lodsb / out dx,al ; repeated for R, G, B
Full-page bandwidth is therefore exceptional, not per-frame: one 64,000-byte copy only when a script command changes the base screen.
Audio-marker white flash
Palette entry 201 acts as a beat/cue flash. If nonzero, all three components
fall by one unit per frame and are sent to DAC index 201. CT-VOICE exposes the
current VOC marker at shared word 0053:000F; matching the expected marker
resets the colour to 60,60,60 and advances the expected value:
0328 cmp byte [es:025Bh],0
0330 dec byte [es:025Bh]
0335 dec byte [es:025Ch]
033A dec byte [es:025Dh]
0342 mov al,201
0344 out dx,al
0346 mov al,[es:025Bh] / out dx,al
034B mov al,[es:025Ch] / out dx,al
0350 mov al,[es:025Dh] / out dx,al
0355 mov ax,[0213h] ; expected marker
0358 cmp [000Fh],ax ; CT-VOICE current marker
035E inc word [0213h]
0362 cmp word [0213h],20
0369 mov word [0213h],2 ; wrap 19 -> 2
036F mov byte [es:025Bh],60
0375 mov byte [es:025Ch],60
037B mov byte [es:025Dh],60
The flash is therefore cue-driven. Calling it merely a timed palette pulse would miss its synchronization contract with the sample container.
The 200-point sample trace
The lower trace has explicit old-pixel repair. Before drawing a new trace, the
eraser reads 200 previous addresses from otherwise unused VGA tail memory at
A000:FA00h and restores one byte at each address from the active static
background:
045E xor bx,bx
0462 mov ax,A000h
0465 mov es,ax
0467 mov ax,019Fh ; self-patched to 113Fh as needed
046A mov ds,ax
046C mov cx,200
046F mov di,[es:bx+FA00h]
0474 mov al,[di]
0476 mov [es:di],al
0479 add bx,2
047C loop 046Fh
This is selective restoration, not a black erase and not a screen clear. It also explains why the old trace can disappear cleanly over either base image.
The draw loop consumes every other source byte from a 400-byte window and plots exactly 200 points:
03D9 mov cx,200
03E2 mov al,[si]
03EA xor ah,ah
03EC ror ax,1
03EE ror ax,1
03F0 ror ax,1
03F2 xor ah,ah ; floor(sample / 8)
03F4 mov dl,al
03F6 add dl,201 ; colour 201..232
03FA mul word [0217h] ; 320
0400 add ax,8D47h ; self-patched moving base
0403 add ax,bx ; x = point index
0407 mov [es:di],dl
040A mov [es:bp+FA00h],di ; save old-pixel address
040F add si,2
0412 inc bx
0413 add bp,2
0416 loop 03E2h
The three rotates initially look dangerous because they move low bits through
AH; clearing AH afterward makes the result exactly unsigned
floor(sample/8). Multiplication by 320 converts that 0..31 value to a row.
The point index supplies X, so the 200 samples form a left-to-right waveform.
For every active trace frame the renderer performs:
- 200 one-byte background restores;
- 200 source-byte reads, striding two bytes;
- 200 one-byte plots;
- 200 saved-address word writes, or 400 bytes of metadata.
Those counts exclude instruction fetches, table reads, and port traffic. They do show why the demo can animate without copying either 64K base page in the steady state.
Two-table motion and self-patched destination base
Two byte phases advance every frame. The first table byte is multiplied by
320, the second by two, and the sum is biased by 8D47h. The result overwrites
the immediate word at draw instruction 0400h:
041C inc byte [0220h]
0420 inc byte [0221h]
0424 mov ax,21CFh
0427 mov es,ax
0438 mov al,[es:si]
043B mul word [0217h] ; table A * 320
0443 mov al,[es:di]
0446 rol ax,1 ; table B * 2
0448 add dx,ax
044A add dx,8D47h
044E mov [cs:0401h],dx ; patch immediate at 0400h
The two phases begin 64 entries apart. Consequently the whole 200-point trace drifts in two dimensions while the shape inside the line still comes from the sample bytes.
Sample cursor and VOC cue reset
The far source cursor advances by 142 bytes per frame. A 16-bit offset wrap is
carried by adding 1000h to the segment, preserving the same linear address:
0395 add word [021Bh],142
039B jne 03A3h
039D add word [0219h],1000h
When CT-VOICE reports marker 2, the cursor is reset and the shared marker is forced back to 1:
03A3 cmp word [000Fh],2
03A8 jne 03BCh
03AA mov word [0219h],43E4h
03B0 mov word [021Bh],0030h
03B6 mov word [000Fh],1
At VGA's nominal 70 Hz, 142 bytes per frame is close to 9.95 KB/s. That agrees with the first VOC's exact 10,000 Hz data rate and makes the cursor increment a playback-following visual sampler rather than an arbitrary animation speed.
Exact VOC block structure
Parsing the two embedded Creative Voice Files gives a more precise cue map than scanning for strings.
The first file starts at load 21DF0h. Its first sound block is 139,351 bytes
at exactly 10,000 Hz, or 13.9351 seconds. An infinite-repeat block follows and
contains markers 2 through 19 with these sample counts:
marker samples marker samples
2 7,232 11 6,080
3 6,272 12 3,008
4 3,648 13 22,528
5 41,664 14 7,168
6 4,352 15 5,504
7 3,648 16 2,688
8 2,304 17 4,480
9 9,728 18 6,400
10 7,552 19 13,900
The first traversal is 297,507 samples, or 29.7507 seconds. The repeated body
is 158,156 samples, or 15.8156 seconds. The second VOC at load 6A940h holds
one 46,965-byte block at approximately 6,060.606 Hz, lasting about 7.749
seconds. These are container measurements; the samples were not auditioned.
The waveform reset lands immediately before the repeated sound-block region, while markers 2..19 drive the white-flash sequence. The two visible audio-reactive mechanisms therefore share one authored VOC timeline but use different fields from the driver state.
Steady-state workload ledger
The useful distinction is between per-frame work, every-second-frame work, and scripted page changes:
| Cadence | Concrete work |
|---|---|
| every frame | restore 200 old trace pixels, read 200 source bytes, plot 200 new pixels, save 200 addresses, update two table phases, fade/check one cue colour |
| every two frames | shift 600 palette bytes, write four RGB gate triplets, advance one glyph column |
| every eight palette steps | advance script byte and three independent self-modifying colour seeds |
| script offsets 135/300/642 | black upper DAC range, copy 64,000-byte base page, reload 55 RGB entries, retarget trace restoration |
No row, glyph, or trace path requires a full-screen clear. The framebuffer is mostly persistent indexed artwork; palette motion supplies the large text, selective restoration supplies the waveform cleanup, and the rare script command replaces the background.
What is proved, observed, and still bounded
Instruction- and data-backed conclusions in this pass include:
- the restored MZ/resource boundaries and hashes;
- exact 300-word palette shift and four glyph-bit colour gates;
- exact text-stream length and three page-control locations;
- exact two-page copy and DAC-reload counts;
- exact 200-point erase/draw/save loop and 142-byte source advance;
- exact two-table destination-base update;
- exact VOC rates, sample counts, repeat block, and marker sequence;
- CT-VOICE marker ownership of both the flash and trace reset.
The public screenshot independently shows the three expected visual layers, but it is not timestamped local runtime evidence. The two smaller images prove embedded base-page ownership, not animation. The restored build's bounded run supports compatibility only; this pass does not claim a complete local route, measured screen cadence, or locally recorded exit. That boundary is preferable to attaching unrelated frames to the right code.
Conclusion
Scroll Land is less a bitmap scroller than a carefully partitioned indexed- colour machine. Four one-bit glyph lanes enter the tails of four 50-colour banks; a 600-byte overlapping copy carries them through static indexed art. Alongside that, a 200-point sample plotter repairs its old pixels from the selected background and follows the VOC stream through a 142-byte cursor. Markers 2..19 trigger the white flash, while three script controls replace the entire base page and atomically retarget cleanup.
The result is a useful 1991 design lesson: convincing multi-layer motion does not imply multi-layer framebuffer redraw. Here the expensive 64K copy is rare; the steady frame is palette transport plus 200 selectively restored points.