Analysis model: gpt-5.5 xhigh
Big, Bigger, Biggest - Infernals
Subject
Big, Bigger, Biggest, also called Megascroll in its own text file, is a
1992 MS-DOS VGA production by Infernals. The Hornet 1992 index lists it as:
bigbig.zip 185828 *** Big Bigger Biggest by Infernals
Release metadata:
- Release year: 1992
- Group: Infernals
- Code: The Wizard, with programming help credited to Striker
- Graphics: Rubber Duck
- Music: Tip / Phenomena
- Package examined:
bigbig.zipfrom the Hornet 1992 mirror
Sources:
The demo's own text calls it an attempt at "the biggest painted font scroller"
and gives the font size as 200 by 154 pixels. That claim matches the code:
the main loop treats each glyph as a 154-column source, and each decoded source
column is exactly 200 pixels tall.
No old postal/contact details are reproduced here. The archive and the ending screen contain a historical address/contact section; it is deliberately omitted from the screenshots and text.
Runtime Capture

Capture details:
- Emulator: DOSBox-X
2026.01.02 - Capture date: 2026-06-19
- Capture command:
dx-capture /v MEGASC.EXE - Capture format: MPEG-TS/H.264
- Config:
machine=svga_s3,core=normal,cycles=30000, no emulated sound card - Startup automation: queued
Nand Enter at the Sound Blaster prompt - Timing zero: beginning of the DOSBox-X capture stream, including the prompt
- Runtime capture duration:
36.629333seconds
The visual run is short, but it is not a slideshow. The giant words are
crossfaded by palette work while the lower flame band stays alive, then the
program enters a sparse starfield/ending screen. The no-music path proves that
the scroller/title graphics are built into MEGASC.EXE; IM000101.IF is only
needed for the STMIK/Sound Blaster music path.
The sequence GIF below is assembled from the five public runtime frames. It
shows the actual visual rhythm that the code implements: faint Infernals
fade-in, palette crossfade into presents, stable title, the stacked
Big/Bigger/Biggest font claim, and the sparse starfield exit.

| Time | Frame | What Is Happening |
|---|---|---|
00:00.000 to about 00:03.000 |
Not shown | Text-mode startup and the Sound Blaster question. The prompt is interactive BIOS keyboard input, not a graphical loader screen. |
00:04.000 |
![]() |
The VGA graphics path has started. The "Infernals" bitmap and flame strip are faint because the palette is still in the fade-in ramp. |
00:09.500 |
Not shown separately | The "Infernals" word is fully visible; the bottom flame strip is still the same image with brighter DAC entries. |
00:11.000 to 00:12.000 |
![]() |
A palette crossfade begins: the old word and the new word overlap in the same red/black image space rather than being erased by a big rectangle. |
00:14.500 |
![]() |
The "presents" word has become the foreground title. |
00:17.000 to 00:20.000 |
![]() |
The stacked Big / Bigger / Biggest title is faded in. This is the most literal visual statement of the 200-pixel font idea. |
00:24.500 to 00:25.500 |
![]() |
The title has faded down and the program switches to a sparse starfield/ending phase. |
about 00:29.000 onward |
Not shown | Plain text credits/contact page. It contains historical contact details and is not reproduced. |
Runtime-To-Code Concordance
The published frames are direct DOSBox-X frame evidence from the no-music path. They are useful because the visible phase changes line up with separate code systems: text-mode setup, bitmap unpacking, palette math, unchained VGA scrolling, and the star/ending overlay.
| Runtime evidence | Code anchor | What it explains |
|---|---|---|
| Text-mode startup before the first shown frame | Startup prompt around 0x138F3, key reader 0x13C81, no-music branch at 0x13913..0x13917 |
The queued N and Enter avoid the STMIK allocation and IM000101.IF load. The graphics path is still the normal demo path; only the Sound Blaster player/tick path is skipped. |
The first faint Infernals frame at 00:04.000 |
BIOS INT 10h / AX=0013h at 0x139E9, black DAC upload at 0x139F8..0x13A05, unchained VGA setup 0x13D1C, bitmap unpacker 0x1406B |
The program enters mode 13h, switches it into an unchained planar layout, unpacks a title bitmap to A000h, and fades the palette up rather than drawing the word pixel-by-pixel. |
The presents overlap/crossfade around 00:12.000 |
256-step palette blender 0x13E43..0x13E65, DAC streaming through 03C8h/03C9h |
The old and new pictures overlap because the code blends RGB palette tables: (source_a * phase + source_b * (256 - phase)) >> 8. It is a DAC crossfade, not framebuffer alpha compositing. |
Stable presents and Big / Bigger / Biggest title frames at 00:14.500 and 00:19.500 |
Packed bitmap calls around 0x13A0F and 0x13A21, dictionary/12-bit-ish unpacker 0x1406B..0x14154 |
These title screens are compressed bitmap assets unpacked once, then palette-faded. They are separate from the later 200-pixel painted-font scroller. |
| The lower flame strip throughout the opening frames | Same indexed title bitmap plus palette ramp routine 0x13CA0 and full DAC uploads |
The flame strip is not a recovered fire simulation. It is indexed artwork whose red/orange entries brighten and crossfade through palette changes. |
| The claimed 200x154 giant font behavior described by the article and title | Message/glyph selection around 0x13ABD..0x13B22, 154-column counter at 0x13BD2, column decoder 0x13C42 |
Each glyph is a stream of 154 vertical columns, and each decoded source column is 200 bytes tall. The 0xFF,count token copies runs from the previous column, matching a painter-friendly font compressor. |
| The smooth scroll mechanism implied by the megascroller | Plane-select plotter at 0x13B40..0x13B71, CRTC offset 0x40 at 0x13D73, CRTC/pan routine 0x13D7E |
The program writes only incoming columns into hidden planar VGA memory. It selects x & 3 through sequencer map mask 02h, advances 128 bytes per row, and uses CRTC start plus AC horizontal panning for motion. |
The sparse starfield/ending frame at 00:25.500 |
Star/overlay update 0x13F9A, 50-entry table at 0x0F60, previous-position table 0x1028, plane read/write ports 03C4h/03CEh |
The ending effect is a small planar point table: erase old point, advance by speed, wrap around 319 pixels, test for black, then write the point color. |
The omitted text credits/contact page after 00:29.000 |
Exit check 0x13BE1, fade/text restore 0x13BF2..0x13C07, BIOS mode 03h, DOS AH=09h output |
The article omits the final contact section deliberately. Technically it is mode-03h text output after the demo fades down and releases any music allocation. |
This makes the runtime GIF a phase map rather than just a preview: every frame corresponds to a distinct implementation layer, from DAC-driven title bitmap fades to the planar scroller and star overlay.
Archive Contents
Examined archive:
73480f3bdd62048ec4e509ad42aa3e6410fb32349986247f4842dd6abd31dd61 bigbig.zip
Contents:
demosite.com 1104 bytes
im000101.if 190078 bytes
infernal.txt 2500 bytes
megasc.exe 64016 bytes
File hashes:
ae4377ea5ad7ace3149992f111f8384a81a71b1d658cd2fe453291ab14b26d6f demosite.com
cf370c56099f531d3e580ac6d16b687042b9d43c5a2274ad8ae0d9f835223e1e im000101.if
624086ac1dc060a75cb10a5d1633f3de9239e6c2a9bc90f52d86229021aaf274 infernal.txt
79f0c8c5340cde3b7ba1d4f39059440d340ca613035a6ab6cef3659534197fd0 megasc.exe
INFERNAL.TXT names the production BIG, BIGGER, BIGGEST and MEGASCROLL,
states the 200 x 154 painted-font claim, describes the "old picture fades out
while new picture fades in" effect, and says VGA is required while Sound
Blaster-compatible hardware is optional.
DEMOSITE.COM is a small included demo-site advertisement, not the production.
It is left out of the technical analysis.
IM000101.IF starts with Scream Tracker/SCRM-style markers and is the music
payload used by the STMIK path. The no-music capture does not need it for the
graphics.
Packed And Expanded Shape
MEGASC.EXE is a PKLITE-marked MZ program:
!PKLITE Copr. 1990-91 PKWARE Inc. All Rights Reserved
Packed header summary:
file size 64016 bytes
MZ image size 64016 bytes
relocations 1
header bytes 128
min extra 0x1367
max extra 0x1367
entry CS:IP fff0:0100
stack SS:SP 0fa2:0200
I expanded it with UNP under DOSBox-X. The expanded file:
a02965bd99e850e9df93865a08c5716603d21c2577eb1fa7e3b27e08b6412e06 MEGASC.EXE
Expanded MZ header:
file size 90060 bytes
MZ image size 90060 bytes
relocations 0
header bytes 512
load bytes 89548
min extra 0x0d3f
max extra 0x0d3f
entry CS:IP 15c5:0010
stack SS:SP 2314:0080
entry file off 0x15e60
Offsets below are file offsets in this UNP-expanded executable unless called runtime state variables. The expanded executable still starts with a relocation and decode stub, so the visible high-level program starts before the MZ entry does. Function names in this writeup are descriptive labels recovered from code behavior, not original symbols.
Second-Level Entry Stub
The expanded MZ entry at 0x15e60 is still a loader. It computes the DOS load
segment from ES, copies a block upward/backward with STD and REP MOVSB,
then far-returns into the relocated payload:
15e60: 8b e8 mov bp,ax
15e62: 8c c0 mov ax,es
15e64: 05 10 00 add ax,0010h
15e67: 0e push cs
15e68: 1f pop ds
15e69: a3 04 00 mov [0004h],ax
15e6c: 03 06 0c 00 add ax,[000ch]
15e70: 8e c0 mov es,ax
15e72: 8b 0e 06 00 mov cx,[0006h]
15e76: 8b f9 mov di,cx
15e78: 4f dec di
15e79: 8b f7 mov si,di
15e7b: fd std
15e7c: f3 a4 rep movsb
15e7e: 50 push ax
15e7f: b8 34 00 mov ax,0034h
15e82: 50 push ax
15e83: cb retf
The later part of the stub is a compact literal/run decoder. It reads a control byte, takes a word count, and then either repeats one byte or copies literal bytes:
15ed0: ac lodsb
15ed1: 8a d0 mov dl,al ; keep control byte
15ed3: 4e dec si
15ed4: ad lodsw ; count
15ed5: 8b c8 mov cx,ax
15ed7: 46 inc si
15ed8: 8a c2 mov al,dl
15eda: 24 fe and al,0feh
15edc: 3c b0 cmp al,0b0h
15ede: 75 05 jne 15ee5h
15ee0: ac lodsb
15ee1: f3 aa rep stosb ; repeated byte
15ee3: eb 06 jmp 15eebh
15ee5: 3c b2 cmp al,0b2h
15ee7: 75 6d jne corrupt
15ee9: f3 a4 rep movsb ; literal span
15eeb: 8a c2 mov al,dl
15eed: a8 01 test al,01h ; end flag
15eef: 74 b1 je next_block
After this it walks a relocation table and jumps through the relocated vector. That is why treating the expanded EXE as a simple flat code file gives odd segment constants in a few places. The inner loops below are still directly identified by their port I/O, counters, and surrounding state.
Startup And Sound Selection
The startup prompt code is visible around 0x138f3. It sets its own DS, ES,
SS:SP, prints the STMIK notice, asks whether to use Sound Blaster music, and
normalizes keyboard input through BIOS INT 16h.
The key reader at 0x13c81:
13c81: b4 00 mov ah,00h
13c83: cd 16 int 16h ; wait key
13c85: 3c 03 cmp al,03h ; Ctrl-C / Ctrl-Break style
13c87: 74 0a je abort
13c89: 3c 61 cmp al,61h
13c8b: 77 03 ja uppercase
13c8d: e9 02 00 jmp done
13c90: 2c 20 sub al,20h ; ASCII lower to upper
13c92: c3 ret
The first prompt flow:
13902: ba e6 08 mov dx,08e6h ; STMIK text
13905: b4 09 mov ah,09h
13907: cd 21 int 21h
13909: ba 32 07 mov dx,0732h ; SB music question
1390c: b4 09 mov ah,09h
1390e: cd 21 int 21h
13910: e8 6e 03 call 13c81h ; read normalized key
13913: 3c 4e cmp al,'N'
13915: 75 03 jne not_no
13917: e9 68 00 jmp no_music
1391a: 3c 59 cmp al,'Y'
1391c: 75 05 jne not_yes
1391e: c6 06 8c 10 01 mov byte [108ch],1
13923: 3c 4d cmp al,'M'
13925: 75 09 jne ask_sb_hw
If music is enabled, it asks for Sound Blaster port and IRQ. The port digit is
turned into an I/O base by multiplying by 16 and adding 0200h, so 2
becomes 0220h, 3 becomes 0230h, and so on:
13948: 3c 31 cmp al,'1'
1394a: 72 f2 jb ask_port_again
1394c: 3c 37 cmp al,'7'
1394e: 77 ee ja ask_port_again
13950: 2c 30 sub al,'0'
13952: d0 e0 shl al,1
13954: d0 e0 shl al,1
13956: d0 e0 shl al,1
13958: d0 e0 shl al,1
1395a: b4 00 mov ah,0
1395c: ba 00 02 mov dx,0200h
1395f: 03 d0 add dx,ax
13961: 89 16 8d 10 mov [108dh],dx
The IRQ prompt only accepts 3, 5, or 7, then stores the numeric value at
108Fh.
Only the music path allocates memory and opens IM000101.IF:
13982: 8a 26 8c 10 mov ah,[108ch]
13986: 80 fc 01 cmp ah,1
13989: 75 5b jne no_music
1398b: b4 48 mov ah,48h ; DOS allocate memory
1398d: bb 00 30 mov bx,3000h
13990: cd 21 int 21h
...
139a2: ba 67 08 mov dx,0867h ; "IM000101.IF"
139a5: b0 00 mov al,0
139a7: b4 3d mov ah,3dh ; DOS open
139a9: cd 21 int 21h
...
139cc: b9 00 80 mov cx,8000h
139cf: b4 3f mov ah,3fh ; DOS read 32 KiB chunks
139d1: cd 21 int 21h
139d3: 3d 00 80 cmp ax,8000h
139d6: 75 09 jne close_done
139d8: 8c d8 mov ax,ds
139da: 05 00 08 add ax,0800h ; next 32 KiB paragraph block
139dd: 8e d8 mov ds,ax
139df: eb eb jmp read_more
The STMIK player is reached through far calls to 1B33:000F with small command
IDs. In the no-music run those calls are bypassed, but the same visual code is
used.
VGA Mode Setup
The program enters BIOS mode 13h, then immediately turns it into a planar
unchained mode. That is important: the scroller is not writing a simple linear
320-byte scanline. It writes one pixel column into one selected VGA plane and
uses CRTC start address plus horizontal panning for smooth scrolling.
Initial visible setup:
139e6: e8 54 05 call fade_to_black
139e9: b8 13 00 mov ax,0013h
139ec: cd 10 int 10h
139ee: bf 30 09 mov di,0930h
139f1: b0 00 mov al,0
139f3: b9 00 03 mov cx,0300h
139f6: f3 aa rep stosb ; zero 768-byte palette buffer
139f8: ba c8 03 mov dx,03c8h
139fb: b0 00 mov al,0
139fd: ee out dx,al
139fe: 42 inc dx ; 03c9h
139ff: be 30 09 mov si,0930h
13a02: b9 00 03 mov cx,0300h
13a05: f3 6e rep outsb ; upload black DAC
The planar setup routine at 0x13d1c touches the standard VGA sequencer,
graphics controller, and CRTC registers:
13d1c: ba c4 03 mov dx,03c4h ; sequencer
13d1f: b0 04 mov al,04h ; Memory Mode
13d21: ee out dx,al
13d22: 42 inc dx
13d23: ec in al,dx
13d24: 24 f7 and al,0f7h ; clear chain-4
13d26: 0c 04 or al,04h ; odd/even disabled
13d28: ee out dx,al
13d29: ba ce 03 mov dx,03ceh ; graphics controller
13d2c: b0 05 mov al,05h
13d2e: ee out dx,al
13d2f: 42 inc dx
13d30: ec in al,dx
13d31: 24 ef and al,0efh
13d33: ee out dx,al
13d34: 4a dec dx
13d35: b0 06 mov al,06h
13d37: ee out dx,al
13d38: 42 inc dx
13d39: ec in al,dx
13d3a: 24 fd and al,0fdh
13d3c: ee out dx,al
Then it enables all planes and clears A000h:
13d48: ba c4 03 mov dx,03c4h
13d4b: b0 02 mov al,02h ; map mask
13d4d: ee out dx,al
13d4e: 42 inc dx
13d4f: b0 0f mov al,0fh ; all four planes
13d51: ee out dx,al
13d52: b8 00 a0 mov ax,0a000h
13d55: 8e c0 mov es,ax
13d57: 2b ff sub di,di
13d59: 8b c7 mov ax,di
13d5b: b9 00 80 mov cx,8000h
13d5e: fc cld
13d5f: f3 aa rep stosb
The final CRTC state makes the virtual scanline wider than the visible 320 pixels:
13d73: ba d4 03 mov dx,03d4h
13d76: b0 13 mov al,13h ; Offset register
13d78: ee out dx,al
13d79: 42 inc dx
13d7a: b0 40 mov al,40h ; 64 words = 128 bytes/plane row
13d7c: ee out dx,al
That 0x40 CRTC offset is why the column plotter advances by 128 bytes per
row in one plane, not by the mode-13h-looking 80.
Palette And Crossfade Routines
The production's visible "crossfade between pictures" is palette-heavy. The screen contains indexed pixels; the routines mutate DAC entries and rely on the same red/black artwork becoming different words as the ramp changes.
There are three relevant palette operations.
Upload Black / Full Palette
The basic full upload is always the same:
ba c8 03 mov dx,03c8h ; DAC write index
b0 00 mov al,0
ee out dx,al
42 inc dx ; 03c9h data
be 30 09 mov si,0930h ; 768-byte RGB table
b9 00 03 mov cx,0300h
f3 6e rep outsb
The code never writes 03C9h as an immediate; it writes 03C8h, increments
DX, then streams the table with REP OUTSB.
Small Foreground Ramp
Routine 0x13ca0 builds and uploads a 12-byte ramp, i.e. four RGB palette
entries. It uses AH as the fade direction selector:
13ca0: 88 26 2f 09 mov [092fh],ah
13ca4: ba 00 00 mov dx,0
13ca7: 80 fc 01 cmp ah,1
13caa: 75 03 jne down
13cac: ba 00 01 mov dx,0100h
...
13cb2: be 30 0c mov si,0c30h ; source RGB ramp
13cb5: bf 30 09 mov di,0930h ; working DAC table
13cb8: b1 0c mov cl,0ch
13cba: 33 c0 xor ax,ax
13cbc: 8a 04 mov al,[si]
13cbe: f7 e2 mul dx
13cc3: 88 25 mov [di],ah ; scaled byte = product >> 8
13cc5: 47 inc di
13cc6: 46 inc si
13cc7: fe c9 dec cl
13cc9: 75 ef jne 13cbah
13ccb: ba c8 03 mov dx,03c8h
13cce: b0 01 mov al,1 ; upload starting at color 1
13cd0: ee out dx,al
13cd1: 42 inc dx
13cd2: b9 0c 00 mov cx,0ch
13cd5: be 30 09 mov si,0930h
13cd8: f3 6e rep outsb
The loop waits for retrace and services the music callback between palette steps. This is the fade seen on the red word/flame palette.
256-Step Crossfade
The larger crossfade routines blend full 256-color palettes by multiplying two source bytes by complementary 8-bit weights, adding, and taking the high byte:
13e43: 33 c0 xor ax,ax
13e45: 8a 04 mov al,[si] ; source A component
13e47: 8b 56 fe mov dx,[bp-2] ; phase
13e4a: f7 e2 mul dx
13e4c: 50 push ax
13e4d: 33 c0 xor ax,ax
13e4f: 8a 07 mov al,[bx] ; source B component
13e51: ba 00 01 mov dx,0100h
13e54: 2b 56 fe sub dx,[bp-2] ; 256 - phase
13e57: f7 e2 mul dx
13e59: 89 c2 mov dx,ax
13e5b: 58 pop ax
13e5c: 03 c2 add ax,dx
13e5e: 88 25 mov [di],ah ; blended byte
13e60: 47 inc di
13e61: 43 inc bx
13e62: 46 inc si
13e63: fe c9 dec cl
13e65: 75 dc jne next_rgb_byte
The outer loop runs over all 256 palette entries and then writes 0300h
bytes to the DAC. This is exactly the effect described in the text file:
the old image fades out while the new image fades in. It is a DAC blend, not
a full framebuffer alpha blend.
Giant Scroller Data Model
The main scroller state is compact:
0923h: column counter inside the current glyph0926h: displayed scroll phase used for CRTC start/panning0928h: text-message index092Ah: write-column phase used by the hidden circular buffer092Ch: computed CRTC display start address092Eh: computed horizontal pan value
The text message begins at offset 01FDh. Its alphabet table contains the
characters the scroller knows how to render:
ABCDEFGHIJKLMNOPQRSTUVWXYZ()!?.,@*-
The main text fetch and wrap logic:
13abd: bb fd 01 mov bx,01fdh
13ac0: 03 1e 28 09 add bx,[0928h]
13ac4: 33 c0 xor ax,ax
13ac6: 8a 07 mov al,[bx] ; next message byte
13ac8: 3c 00 cmp al,0
13aca: 75 39 jne have_char
...
13aed: a3 26 09 mov [0926h],ax
13af0: a3 28 09 mov [0928h],ax
13af3: 05 40 01 add ax,0140h
13af6: a3 2a 09 mov [092Ah],ax
13af9: eb bd jmp 13ab8h
It advances through the message and maps ASCII to a glyph index by a linear search through the alphabet table:
13b05: ff 06 28 09 inc word [0928h]
13b09: bb 00 00 mov bx,0
13b0c: b1 00 mov cl,0
13b0e: 3a 07 cmp al,[bx]
13b10: 74 05 je found
13b12: 43 inc bx
13b13: fe c1 inc cl
13b15: eb f7 jmp 13b0eh
13b17: 8a c1 mov al,cl
13b19: 32 e4 xor ah,ah
13b1b: bb 25 00 mov bx,0025h
13b1e: d1 e0 shl ax,1
13b20: 01 c3 add bx,ax
13b22: 8b 37 mov si,[bx] ; glyph column-stream pointer
The offset table at 0025h points to the compressed column stream for each
glyph. Every glyph is processed as 154 columns, which is 0x9A:
13bc6: fe 06 23 09 inc byte [0923h]
13bca: fe 06 23 09 inc byte [0923h]
...
13bd2: 80 3e 23 09 9a cmp byte [0923h],09ah
13bd7: 74 03 je next_character
13bd9: e9 5d ff jmp render_more_columns
The counter is incremented twice per loop because two vertical columns are decoded and plotted per frame. That is also the scroll speed: two logical pixels of this huge painted font per displayed frame.
Column Decoder
The column decoder at 0x13c42 converts a glyph stream into a 200-byte vertical
column. It maintains two 200-byte column buffers:
- current decoded column at
006Dh - previous column at
0135h
The previous-column buffer matters because the glyph stream has a compact "copy from previous column" run. That is a good format for painted letters: adjacent vertical columns are often similar.
The decoder:
13c42: bb 6d 00 mov bx,006dh ; current-column buffer
13c45: bf 00 00 mov di,0
13c48: b8 0a 07 mov ax,070ah
13c4b: 8e c0 mov es,ax
13c4d: 26 8a 24 mov ah,es:[si] ; glyph-stream byte
13c50: 80 fc ff cmp ah,0ffh
13c53: 75 18 jne literal
13c55: 46 inc si
13c56: 26 8a 0c mov cl,es:[si] ; run length
13c59: 46 inc si
13c5a: ba 35 01 mov dx,0135h ; previous-column buffer
13c5d: 87 d3 xchg dx,bx
13c5f: 8a 21 mov ah,[bx+di] ; copy old column byte
13c61: 87 d3 xchg dx,bx
13c63: 88 21 mov [bx+di],ah ; into current column
13c65: 47 inc di
13c66: fe c9 dec cl
13c68: 75 f3 jne 13c5dh
13c6a: e9 0d 00 jmp after_byte
13c6d: ba 35 01 mov dx,0135h
13c70: 88 21 mov [bx+di],ah ; current column literal
13c72: 87 d3 xchg dx,bx
13c74: 88 21 mov [bx+di],ah ; also previous column
13c76: 87 d3 xchg dx,bx
13c78: 47 inc di
13c79: 46 inc si
13c7a: 81 ff c8 00 cmp di,00c8h ; 200 rows
13c7e: 75 cd jne 13c4dh
13c80: c3 ret
The important part is the 0xFF marker:
- literal byte: write it to both current and previous column buffers
0xFF, count: copycountbytes from the previous column into the current column
This is not a generic file decompressor. It is a column-local painter's font compression scheme tuned for a 200-row glyph.
Plotting A Column Into Planar VGA
After the decoder returns, the code plots the 200-byte column into the hidden right side of the unchained virtual screen. The same plotter appears twice in sequence, so each main-loop pass writes two new source columns.
First it converts the logical X phase into a VGA byte address and plane:
13b40: b8 00 a0 mov ax,0a000h
13b43: 8e c0 mov es,ax
13b45: a1 2a 09 mov ax,[092Ah] ; write-column phase
13b48: d1 e8 shr ax,1
13b4a: d1 e8 shr ax,1
13b4c: 8b f8 mov di,ax ; byte x = x / 4
13b4e: a1 2a 09 mov ax,[092Ah]
13b51: 24 03 and al,03h
13b53: 8a c8 mov cl,al
13b55: b4 01 mov ah,1
13b57: d2 e4 shl ah,cl ; map mask = 1 << (x & 3)
13b59: ba c4 03 mov dx,03c4h
13b5c: b0 02 mov al,02h
13b5e: ee out dx,al
13b5f: 42 inc dx
13b60: 88 e0 mov al,ah
13b62: ee out dx,al
Then it emits the 200 pixels down the column:
13b63: be 6d 00 mov si,006dh ; decoded 200-byte column
13b66: b9 c8 00 mov cx,00c8h
13b69: a4 movsb ; one row pixel
13b6a: 83 c7 7f add di,007fh
13b6d: 49 dec cx
13b6e: 75 f9 jne 13b69h
13b70: 5e pop si
13b71: ff 06 2a 09 inc word [092Ah]
MOVSB increments DI by one; ADD DI,007Fh makes the total per-row advance
128 bytes. That matches the CRTC offset register set to 0x40 words. In
other words:
one row in selected plane = 128 bytes
logical x byte = x / 4
selected plane = x & 3
The program writes columns into a wider offscreen/circular buffer, not into the left edge currently shown on screen. The CRTC then reveals that buffer by moving the display start.
CRTC Hardware Scroll
Routine 0x13d7e turns the scroll phase into a CRTC start address and an
attribute-controller horizontal pixel pan. This is the part that makes the huge
font move smoothly without copying the whole screen.
It first calculates address and pan:
13d7e: a1 26 09 mov ax,[0926h]
13d81: d1 e8 shr ax,1
13d83: d1 e8 shr ax,1
13d85: a3 2c 09 mov [092Ch],ax ; CRTC start address
13d88: a1 26 09 mov ax,[0926h]
13d8b: 24 03 and al,03h
13d8d: d0 e0 shl al,1
13d8f: a2 2e 09 mov [092Eh],al ; 0,2,4,6 pan steps
It waits until the machine is outside vertical retrace, programs CRTC registers
0Ch and 0Dh, then waits for the next retrace and writes horizontal panning:
13d92: ba da 03 mov dx,03dah
13d95: ec in al,dx
13d96: 24 08 and al,08h
13d98: 3c 00 cmp al,0
13d9a: 75 f6 jne 13d92h ; wait until not retracing
13d9c: ba d4 03 mov dx,03d4h
13d9f: b0 0c mov al,0ch ; start high
13da1: ee out dx,al
13da2: 42 inc dx
13da3: a1 2c 09 mov ax,[092Ch]
13da6: 88 e0 mov al,ah
13da8: ee out dx,al
13da9: 4a dec dx
13daa: b0 0d mov al,0dh ; start low
13dac: ee out dx,al
13dad: 42 inc dx
13dae: a1 2c 09 mov ax,[092Ch]
13db1: ee out dx,al
13db2: fa cli
13db3: ba da 03 mov dx,03dah
13db6: ec in al,dx
13db7: 24 08 and al,08h
13db9: 3c 00 cmp al,0
13dbb: 74 f6 je 13db3h ; wait retrace start
13dbd: ba c0 03 mov dx,03c0h
13dc0: b0 33 mov al,33h ; AC index 13h with display enable bit
13dc2: ee out dx,al
13dc3: a0 2e 09 mov al,[092Eh]
13dc6: ee out dx,al
13dc7: fb sti
13dc8: ba da 03 mov dx,03dah
13dcb: ec in al,dx
13dcc: 24 08 and al,08h
13dce: 3c 00 cmp al,0
13dd0: 75 f6 jne 13dc8h ; wait retrace end
13dd2: c3 ret
The update is careful about tearing:
- Wait for not-in-retrace.
- Program the coarse CRTC display start.
- Disable interrupts.
- Wait for retrace to begin.
- Program attribute-controller horizontal panning.
- Re-enable interrupts.
- Wait for retrace to finish.
That split is typical of smooth Mode X/unchained scrolling: the coarse address and fine pan must agree for the next visible frame.
Main Scroller Loop
The scroller loop combines the previous pieces:
for each message character:
if message byte is 0:
fade/restart state
reset text index and scroll phases
glyph_index = alphabet_index(message_byte)
glyph_stream = glyph_offset_table[glyph_index]
clear previous-column state for the new glyph
while glyph_column_counter != 154:
update stars/overlays
decode one 200-byte glyph column
plot that column to VGA plane/buffer at write phase
write_phase++
decode next 200-byte glyph column
plot that column to VGA plane/buffer at write phase
maybe call STMIK tick if music is enabled
update CRTC start/pan during vertical retrace
scroll_phase += 2
glyph_column_counter += 2
write_phase++
advance message index
The real loop around 0x13b39:
13b39: e8 5e 04 call star_or_overlay_update
13b3c: e8 03 01 call decode_column
13b3f: 56 push si
...
13b63: be 6d 00 mov si,006dh
13b66: b9 c8 00 mov cx,00c8h
13b69: a4 movsb
13b6a: 83 c7 7f add di,007fh
13b6d: 49 dec cx
13b6e: 75 f9 jne 13b69h
13b70: 5e pop si
13b71: ff 06 2a 09 inc word [092Ah]
13b75: e8 ca 00 call decode_column
13b78: 56 push si
...
13baa: 8a 26 8c 10 mov ah,[108Ch]
13bae: 80 fc 01 cmp ah,1
13bb1: 75 08 jne no_music_tick
13bb3: b8 04 00 mov ax,4
13bb6: 9a 0f 00 33 1b call far 1B33:000F
13bbb: e8 c0 01 call crtc_scroll
13bbe: ff 06 26 09 inc word [0926h]
13bc2: ff 06 26 09 inc word [0926h]
13bc6: fe 06 23 09 inc byte [0923h]
13bca: fe 06 23 09 inc byte [0923h]
13bce: ff 06 2a 09 inc word [092Ah]
13bd2: 80 3e 23 09 9a cmp byte [0923h],09Ah
13bd7: 74 03 je next_character
13bd9: e9 5d ff jmp 13b39h
The two inc [0926h] and two inc [0923h] instructions are the giveaway:
the visible scroll and the glyph-column counter both advance by two per
displayed iteration.
Starfield / Overlay Update
The function at 0x13f9a is called once per scroller iteration. It manages a
small table of moving points and draws through VGA planes, using the same
logical-X-to-plane conversion as the scroller. The loop count is 0x32, i.e.
50 entries:
13f9a: 56 push si
13f9b: 06 push es
13f9c: b8 00 a0 mov ax,0a000h
13f9f: 8e c0 mov es,ax
13fa1: b5 32 mov ch,32h ; 50 entries
13fa3: be 60 0f mov si,0f60h ; star/point table
13fa6: 8b 16 2a 09 mov dx,[092Ah] ; phase/wrap reference
13faa: bb 28 10 mov bx,1028h ; previous-position table
For a previous point position, it computes the plane and byte address and clears the old pixel:
13fb0: 8b 07 mov ax,[bx]
13fb2: 3d 00 00 cmp ax,0
13fb5: 74 39 je no_old_pixel
13fb7: 33 ff xor di,di
13fb9: 8a c8 mov cl,al
13fbb: 80 e1 03 and cl,03h
...
13fd6: ba c4 03 mov dx,03c4h
13fd9: b0 02 mov al,02h
13fdb: ee out dx,al
...
13fe0: b0 01 mov al,1
13fe2: d2 e0 shl al,cl
13fe6: ba c5 03 mov dx,03c5h
13fe9: ee out dx,al
...
13fed: b0 00 mov al,0
13fef: aa stosb ; erase previous pixel
It then advances the point by its per-entry speed byte, wraps it, selects the proper VGA read/write plane, and draws the new point only if the destination is currently black:
13ff0: 8b 04 mov ax,[si] ; x/base
13ff2: 33 c9 xor cx,cx
13ff4: 8a 4c 02 mov cl,[si+2] ; speed
13ff7: 01 c8 add ax,cx
13ff9: 3b c2 cmp ax,dx
13ffb: 72 05 jb no_wrap
13ffd: 2d 3f 01 sub ax,013fh ; 319-pixel wrap
14000: 89 04 mov [si],ax
14002: 89 04 mov [si],ax
14004: 89 07 mov [bx],ax ; remember for erase next time
...
14028: ba ce 03 mov dx,03ceh
1402b: b0 04 mov al,04h ; read map select
1402d: ee out dx,al
1402e: 42 inc dx
1402f: 88 e0 mov al,ah
14031: ee out dx,al
...
14049: 26 8a 05 mov al,es:[di]
1404c: 3c 00 cmp al,0
1404e: 75 15 jne collision
14050: 8a 44 03 mov al,[si+3] ; point color
14053: aa stosb
This routine is not the main title crossfade; it is a small per-frame point overlay that becomes visible as the starfield/ending phase.
Bitmap Unpacker For Title Screens
The title images are not drawn by the 200-pixel font scroller. Calls to
0x1406b prepare bitmap screens before the palette fades:
13a0f: e8 59 06 call 1406bh ; first packed picture
...
13a21: bb ee 33 mov bx,33eeh
13a24: e8 44 06 call 1406bh ; second packed picture
The unpacker initializes an 8-bit dictionary state and writes decoded bytes
directly to A000h:
1406b: 8a 07 mov al,[bx]
1406d: b0 08 mov al,08h ; initial code size
1406f: 43 inc bx
14070: a2 a3 50 mov [50a3h],al
14073: e8 b6 00 call init_dictionary
...
1407e: b8 00 a0 mov ax,0a000h
14081: 8e c0 mov es,ax
14083: bf 00 00 mov di,0
14086: be 92 10 mov si,1092h
14089: 81 c6 00 10 add si,1000h
The bit reader at 0x1418a consumes packed 12-bit-ish pairs across three input
bytes, alternating state with byte 50AFh:
1418a: 06 push es
1418b: b8 00 00 mov ax,0
1418e: 8e c0 mov es,ax
14190: 8a 26 af 50 mov ah,[50AFh]
14194: 80 fc 00 cmp ah,0
14197: 75 10 jne second_code
14199: fe c4 inc ah
1419b: 88 26 af 50 mov [50AFh],ah
1419f: 26 8b 07 mov ax,es:[bx]
141a2: b1 04 mov cl,4
141a4: d2 ec shr ah,cl
141a6: e9 12 00 jmp done
141a9: fe 0e af 50 dec byte [50AFh]
141ad: 26 8a 47 02 mov al,es:[bx+2]
141b1: 26 8a 67 01 mov ah,es:[bx+1]
141b5: 80 e4 0f and ah,0fh
141b8: 43 inc bx
141b9: 43 inc bx
141ba: 43 inc bx
141bb: 07 pop es
141bc: c3 ret
The surrounding logic is dictionary based:
1412cinitializes clear/end code thresholds from the initial 8-bit code size.140c0to14120walks prefix chains into a reverse stack, thenREP MOVSWcopies the reversed bytes toA000h.140f2onward appends the new dictionary entry.14154grows the active code size when the dictionary crosses a threshold.
So the title/flame screens are unpacked bitmap assets, then palette-faded. The giant moving text uses the separate 200-byte column decoder and CRTC scroller.
Exit And Text Mode Restore
When a key is detected or the scroller finishes, the program shuts down the music path if active, fades down, restores BIOS text mode, frees the music allocation, and waits for a key:
13be1: b4 01 mov ah,01h
13be3: cd 16 int 16h ; key available?
13be5: 75 03 jne exit
13be7: e9 d3 fe jmp continue
...
13bf2: e8 48 03 call fade_to_black
13bf5: b8 03 00 mov ax,0003h
13bf8: cd 10 int 10h
13bfa: 06 push es
13bfb: a1 90 10 mov ax,[1090h] ; allocated music block
13bfe: 8e c0 mov es,ax
13c00: b4 49 mov ah,49h ; DOS free memory
13c02: cd 21 int 21h
13c04: 07 pop es
13c05: b4 00 mov ah,00h
13c07: cd 16 int 16h
It also clears the DAC and prints the final text page with DOS AH=09h. That
ending page is part of the historical artifact, but it includes contact details
and is intentionally not reproduced here.
What Each Visible Part Does
Startup Prompt
The text-mode prompt gates the optional STMIK path. N avoids all music-memory
allocation and skips loading IM000101.IF. Y asks for SB base and IRQ, loads
the music data in 32 KiB DOS chunks, and starts the far-called player.
Infernals / Presents / Title
These are compressed bitmap screens unpacked to A000h. The visible fades are
not framebuffer fades. The program builds RGB tables in RAM, waits on 03DAh,
and streams 768 DAC bytes to ports 03C8h/03C9h.
The crossfade works because the old and new pictures share indexed-color ramp semantics. The blend is:
out = (source_a * phase + source_b * (256 - phase)) >> 8
per RGB component, per DAC entry.
Flame Base
The flame strip is part of the indexed bitmap screen. It appears to burn and brighten because its DAC entries are included in the palette ramp. There is no separate fluid/fire simulation in the recovered visual path.
Giant Scroller
The "biggest painted font" mechanism is the core trick:
- a text byte is mapped through a limited uppercase alphabet
- the glyph's 154-column stream is selected
- each column expands to 200 bytes
0xFF,countruns copy from the previous column- two columns are plotted per loop
- each column selects one VGA plane through sequencer map mask
02h - the vertical write stride is
128bytes because CRTC offset is0x40 - CRTC start address and attribute-controller horizontal panning scroll the virtual screen without a full framebuffer copy
That is exactly why the demo can show a 200-pixel-high painted font on early VGA hardware: it spends per-frame work on only the incoming columns and lets the VGA start address do the bulk movement.
Starfield / Ending
The later starfield uses a 50-entry point table. Each point erases its previous
plane pixel, advances by a stored speed byte, wraps around 319, tests whether
the target pixel is black, and writes its color byte. It shares the same
logical-X-to-plane conversion as the scroller.
Credits Page
The ending page is DOS text output after returning to mode 03h. It contains
credits and historical contact details. The credits establish the production
roles, but the old contact section is omitted from the public analysis.
Why It Works
The production is "fancy" for 1992 not because it brute-forces a huge bitmap every frame, but because it combines several cheap operations:
- compressed title bitmaps unpack once
- DAC palette math creates the opening crossfades
- the painted font is column-compressed, not frame-compressed
- only two incoming 200-pixel columns are drawn each iteration
- unchained VGA planes turn
x / 4plus map mask into a cheap column write - CRTC start address and horizontal panning scroll the already-drawn virtual screen
- optional music is decoupled through periodic far calls, so the no-music path keeps the same visual timing structure
That is the real inner loop: decode two tall columns, write them into hidden
planar VRAM, wait for retrace, advance CRTC/pan by two pixels, repeat until
154 source columns are consumed.




