Analysis model: gpt-5.5 xhigh
Even Better Than The Real Thing! by The Phoney Coders - Technical Dissection
Even Better Than The Real Thing! is a September 1992 MS-DOS multipart demo by
The Phoney Coders. Demozoo gives the exact release date as 30 September 1992;
Pouet lists the release month as September 1992. Release year: 1992.
This writeup covers the scene.org realthng.zip archive, the UNP-expanded
child executables, the loader choreography, and the inner VGA loops in the
intro, sine scroller, Zax vector part, giant scroller, and final movie scroller.
Complete Interactive Runtime Coverage
The original archive was run in DOSBox-X 2026.01.02 with a normal 386 core,
fixed 30000 cycles, 16 MB RAM, XMS enabled, EMS disabled, and all sound
devices disabled. The loader's Roland-card question was answered N; no music
was enabled, heard, captured, or published. External X11/FFV1 capture avoids
the emulator's mode-switch-sensitive internal recorder.
This is a genuine old multipart rather than a timed trackmo. Its five child
programs have their own long-running loops and keyboard exits. The original
loader proves setup, child order, process handoffs, and eventual status-0 DOS
return, but Escape can remain visible across a handoff. To prevent that state
from skipping later visuals, each released REALTHNG.001 through
REALTHNG.005 body was also launched in a fresh DOSBox process and observed
independently.
That combination gives complete visual coverage without inventing wall-clock timing: staged intro, sine scroller, two different Zax objects, giant scroller with balls, and final movie/credit scroller.






The public Demozoo sheet remains as an archival identity check, and the generated diagram remains a code-flow summary:


No audio, H.264, or MP4 derivative is published.
Runtime-To-Code Concordance
The direct child runs establish the five-part mapping exactly:
PART1 staged "proud to present" and logo sequence
PART2 Phoney Coders banner with oscillating sine scroller
PART3 red cube, then narrow yellow rotating object
PART4 giant logo/scroller with independently moving coloured balls
PART5 PHOENIX / credits and movie-style scrolling text
The first GIF's logo/presentation sequence matches PART1.EXE's staged image
upload path. The visible screen is not redrawn by a high-level sprite engine:
06C6h selects source segments and bases, 0701h deinterleaves 320-byte rows
into four VGA planes, and 058Fh / 0620h move the visible window with CRTC
start-address writes. So the intro frame is a combination of raw image pages,
plane upload, palette choreography, and hardware panning.
The sine-scroller GIF is PART2.EXE. Its static page setup comes from two
0D14h uploads to the interleaved page bases 3CF0h and 3CA0h; the live
motion comes from the frame loop at 0FC5h and the strip blitter at 0ED1h.
That blitter draws 22-byte vertical strips into a rolling source/page setup
while the CRTC display start is flipped and [0298h] supplies the horizontal
oscillation phase. The still is therefore the result of both software column
drawing and hardware page/display-start movement.
The two object GIFs are PART3.EXE, the Zax part. They are structurally
different from the surrounding assembly-only parts: this file has a Borland
C++ shell, capability guards, a Mode-X-like setup path at 2F74h, page-start
helper 2FEEh, clear routine 3003h, edge-table construction around the
3Bxxh / 3Cxxh range, and span fill at 3C92h. The visible vector objects
are not plotted point-by-point; the code builds scanline extents and fills
spans through VGA map masks, with block/sprite helpers in the 42xxh and
43xxh ranges for surrounding image work.
The giant-scroller GIF belongs to PART4.EXE. Its large letters come from
the character-state routine 1BC6h, segment selector 1C1Fh, and stripe
uploader 1C5Ch. The wide/overlapping look follows from the duplicate strip
copy shifted by 54h bytes, while 1D36h moves the visible window through
CRTC start registers. The moving balls are a separate overlay path:
1E09h erases old footprints, converts x/y through 1DD0h, and draws the
small sprites with the map-mask loop at 1EB3h.
The final credits GIF is PART5.EXE. It reuses the same vocabulary in a
credits/movie layout: 63D8h uploads full pages, 639Bh parses a compact
control stream, 64ABh uploads 25-row strips, and 659Bh advances the frame
by combining CRTC start updates, A000h self-copy work, overlay erasure/drawing,
and script-driven new strip material. The fade routine at 6276h then
interleaves DAC decay with frame-update helpers so the scroller can keep
moving while the palette changes.
The common thread across the direct motion is the same one shown in the generated pipeline map: loader-level part boundaries, raw 320-byte source pages, four-plane deinterleaving, map-mask controlled partial writes, CRTC motion, and palette work during retrace. Global wall-clock timing is intentionally omitted because these are interactive loops, but the fresh-process runs line up cleanly with the child executable boundaries and their inner VGA kernels.
Public Metadata And Sources
Sources used:
- Demozoo production record
- Pouet production page
- Pouet group page
- Scene.org archive record
- Hornet mirror archive
Demozoo lists the production as an MS-DOS demo released on 30 September 1992 and credits BitFreak, Eedar, Metazor, Twinriter, and Zax. The Pouet production page confirms the MS-DOS platform and September 1992 date, and the comments identify the visible effect family: sine scroller, vector balls, and 3D object rotation. The scene.org file page exposes the archive contents and mirrors the NFO, including the stated 286/386/486 VGA requirement and optional Roland sound.
Archive Layout
Original archive:
realthng.zip 132513 bytes
demosite.com 1104 bytes
loader.exe 24264 bytes
realthng.001 15908 bytes
realthng.002 8584 bytes
realthng.003 48222 bytes
realthng.004 28270 bytes
realthng.005 24001 bytes
realthng.nfo 2327 bytes
The executable files are PKLITE-style packed MZ/COM-like payloads. UNP under DOSBox-X expands them to:
LOADER.EXE 24264 -> 61145 bytes
PART1.EXE 15908 -> 176768 bytes
PART2.EXE 8584 -> 90904 bytes
PART3.EXE 48222 -> 77083 bytes
PART4.EXE 28270 -> 330992 bytes
PART5.EXE 24001 -> 199712 bytes
Flattened MZ load images:
LOADER.EXE hdr 112 load 61033 entry 0000:0000 relocs 19
PART1.EXE hdr 48 load 176720 entry 0000:0000 relocs 5
PART2.EXE hdr 48 load 90856 entry 0000:0000 relocs 4
PART3.EXE hdr 656 load 48256 entry 0000:0000 relocs 154
PART4.EXE hdr 64 load 330928 entry 0000:0000 relocs 8
PART5.EXE hdr 48 load 199664 entry 0000:0000 relocs 5
Important hashes:
a877f79da6d0da623e1d489417ed1a5c9ae3ead15f6d6e007f5eb31f1b3b6743 realthng.zip
8667826ee0be255fe31d78afc2ce11ee4b82b80ee95ee9669720d42abf264ae4 loader.exe packed
ee7a28cd61010fb7b9a23efe29f7521cca922ecba379df8697bb3b159700bb62 realthng.001 packed
1ebad701b3260b822767374ad2dc0ab8656338219bbfb87311383e0d36daf3c9 realthng.002 packed
bfbb136c372208bd7937d7b09513f8ca89392498353b288533316929df636acb realthng.003 packed
e88e5eece9a9b54297adfe076ee4f4ca3cb2c78ef8691bbcad322d3d21a260d8 realthng.004 packed
fee34c2dae0de8a509ddcbc9ccacf4765d5a95749e66e9aeb5f4969fd4d80a88 realthng.005 packed
57648450cf37a89ab25f117162dc481d3ec65d625e20f10fbb8b376157536f6a realthng.nfo
50e99468b182a9540a26a5c98142d81752e4d705e31de6656da6679c4fa05aab LOADER.EXE unpacked
acb693a7fe29067e45a34abbd7995521514eabd3af806ee0249ded5f3054a681 PART1.EXE unpacked
e9244ce0e55c52de2f196bc4cfed4e2968a305ef78c09234e47a08a1d3eee427 PART2.EXE unpacked
9debe8565de41b2952e6769cf7bd441eb9965b611f5bbd843bce5e4f1557b5c2 PART3.EXE unpacked
ad6349eaf25bae4d853c547ff817db74f8b03f2b0114c3a77a9df8efbe28e97c PART4.EXE unpacked
78b72cfdb6409c88bbc41d6b129ed1fe64875a1ae5bbaa0736dee9011907b5c6 PART5.EXE unpacked
The entropy profile matches a multipart demo with large raw art pages and
tables. PART2, PART4, and PART5 have very low entropy because they are
mostly raw planar/linear graphics, font data, palette tables, and scroller text.
PART3 is the exception: it contains Borland C++ runtime code, relocation
tables, and more ordinary compiled functions around Zax's vector part.
NFO And Credits
The NFO describes a VGA demo for 286/386/486 machines, with optional Roland sound. It also explains why the production is multipart: the authors used a loader because the parts were developed separately and could not practically be merged into one smooth executable before release.
Credit map from the NFO, paraphrased:
Intro: BitFreak and Metazor
Sine scroll: BitFreak
Vectors: Zax
Giant scroll: Metazor, with help from BitFreak
Movie scroller: BitFreak
Music system: Phoenix and BitFreak
Main logo/font: Eedar
Other graphics: Metazor
Music: Twinriter
Loader: BitFreak
That credit map also matches the binary split. The first, second, fourth, and fifth parts share small assembly VGA kernels. The vector part is different: it is a Borland C++ program with far-call wrappers, allocation helpers, and a separate 386/VGA guard.
Loader
The loader contains the filenames:
RealThng.001
RealThng.002
RealThng.003
RealThng.004
RealThng.005
It also contains the user-facing setup text for the 286 cut-down path, Roland sound-card choice, and extended timer choice. The important architectural point is that it is not just a cosmetic shell. The parts really are separate child programs. Each child sets up VGA again, runs its own loop, exits through DOS, and hands control back to the loader or next child.
This explains the "not polished with completely smooth changes" warning in the NFO. The visible transitions are process boundaries, not only effect switches.
Shared VGA Idiom
Several parts contain the same low-level VGA vocabulary:
INT 10h AX=0013h enter VGA mode 13h
03C4h index 04h sequencer memory mode, clear chain-style behavior
03C4h index 02h map mask 01/02/04/08/0F
03C0h index 10h attribute controller mode control, usually 61h
03D4h index 0Ch/0Dh display start address
03D4h index 09h/18h scanline/vertical adjustment effects
03C8h/03C9h DAC palette uploads/fades
03DAh bit 3 vertical retrace wait
The repeated image-copy pattern is:
for plane_mask in 01h, 02h, 04h, 08h:
out 03C4h, 02xxh ; sequencer map mask
source_start = plane_index
dest_start = page_base
for column in 0..79:
si = source_start + column * 4
di = dest_start + column
for row in visible_rows:
movsb
si += 013Fh ; after movsb, total source row stride is 0140h
di += 004Fh ; after movsb, total VGA plane row stride is 0050h
For a 320-pixel-wide source image, every visible row is 320 bytes. Unchained VGA
stores only one in four pixels in each plane, so each plane row is 80 bytes.
The movsb, si += 013Fh, di += 004Fh sequence is exactly the conversion:
copy one byte, skip to the same pixel phase on the next 320-byte source row,
and land on the next 80-byte VGA plane row.
Some variants use di += 013Fh, di += 009Fh, or explicit CRTC display-start
offsets depending on whether the destination is a full 320-byte logical page,
a 160-byte interleaved page, or a visible 80-byte plane page.
PART1: Intro And Logo Staging
PART1.EXE enters at load-image offset 07B5h.
High-level entry path:
07B5 call 04D9h VGA setup, blank DAC, unchained-style clear
07B8 push 0191h
07BC call 03EAh vertical/CRTC adjust helper
07BF ES = A000h
07C4 AH = 28h
07C6 call 06B1h CRTC register 13h write
07C9 call 06C6h upload two image regions and palette
07CC call 058Fh CRTC slide/pan sequence
07CF delay loop over retrace waits
07DF call 0620h reverse CRTC slide/pan sequence
07E2 reset display start to 0000h
07F2 blank palette
07F7 clear 3E80h bytes
0803 load another image segment and call 0701h
0819 palette choreography at 03B2h
081F load final image segment and call 0701h
0835 palette fade/color cycle at 049Ch
0838 INT 21h AX=4C00h
Vblank Wait At 01BDh
01BDh is the canonical retrace wait:
01BD mov dx,03DAh
01C0 in al,dx
01C1 and al,08h
01C3 jne 01C0h ; wait until not in vertical retrace
01C5 in al,dx
01C6 and al,08h
01C8 je 01C5h ; wait until retrace starts
01CA ret
This gives the later palette and CRTC writes a stable point in the frame.
VGA Setup At 04D9h
04D9h blanks the DAC twice, enters mode 13h, changes VGA memory behavior,
loads a CRTC table, enables all four maps, and clears 64K:
04D9 CLI
04DF out 03C8h, 0
04E4 CX = 0300h, write zero DAC bytes
04F0 AX = 0013h, INT 10h
050D out 03C4h, AX=0604h
0517 AC index 10h = 61h
052A write CRTC table at 03D1h, 18h entries
053E out 03C4h, AX=0F02h
0544 ES = [CS:0003]
054C CX = 8000h
0551 rep stosw
The CRTC table begins at 03D1h; the bytes are also accidentally disassemblable
as instructions, which is why linear disassembly around this area looks noisy.
Intro Image Upload At 0701h
0701h is the first clear "inner loop" of the demo:
set map mask 01h
for 80 columns:
si = column * 4 + 0
di = destination_base + column
for rows = [CS:0005]:
movsb
si += 013Fh
di += 004Fh
set map mask 02h
repeat with source phase +1
set map mask 04h
repeat with source phase +2
set map mask 08h
repeat with source phase +3
The code implements this literally four times:
0701 out 03C4h,0102h
0708 bx = [CS:0009] ; destination base
070F cx = 0050h ; 80 columns
0712 si = ax ; phase/column source start
0714 di = bx
0717 cx = [CS:0005] ; rows
071C movsb
071D add si,013Fh
0721 add di,004Fh
0724 loop 071Ch
0727 add ax,0004h ; next source column in same phase
072A inc bx ; next destination column
072B loop 0712h
Then it repeats with map masks 0202h, 0402h, and 0802h.
The two calls in 06C6h use two source segments and two bases:
DS = [CS:0842], base 0000h
DS = [CS:0844], base 5DC0h
Later entry code uses:
DS = [CS:0840], base 1DBDh, rows 0012h
DS = [CS:083E], base 0000h, rows 00C8h
So the same plane uploader is used both for small strips and full-height screens.
CRTC Slide Helpers At 058Fh And 0620h
058Fh and 0620h are mirror-image CRTC motion scripts. They repeatedly call
the far helper at 03EAh and write the CRTC start address:
058F phase A: 20 iterations, [000D] -= 8, [000F] -= 0140h
058F phase B: 4 iterations, [000D] -= 6, [000F] -= 00F0h
058F phase C: 4 iterations, [000D] -= 4, [000F] -= 00A0h
0620 phase C: 4 iterations, [000D] += 4, [000F] += 00A0h
0620 phase B: 4 iterations, [000D] += 6, [000F] += 00F0h
0620 phase A: 20 iterations, [000D] += 8, [000F] += 0140h
Each step writes:
mov dx,03D4h
mov al,0Ch
mov ah,bh
out dx,ax
mov al,0Dh
mov ah,bl
out dx,ax
This is a hardware pan/slide, not a redraw. The screen memory stays mostly stable while the display-start registers move the visible window.
PART2: Sine Scroller
PART2.EXE enters at load-image offset 0FE6h.
High-level entry path:
0FE6 call 0917h VGA setup and clear
0FE9 call 08E0h CRTC vertical adjust helper, argument 03FFh
0FF0 set display start to 3CF0h
1000 ES = A000h
1005 DS = source segment
100A [0003] = 3CF0h, call 0D14h
1014 DS = source segment
1019 [0003] = 3CA0h, call 0D14h
1023 map mask = 0Fh
102A upload palette
1030 set CRTC max scanline to 1Fh
103E shrink max scanline from 1Eh downward
1061 main sine-scroll frame loop
Setup At 0917h
0917h is the same blank-DAC, mode-13h, unchained-style setup seen in part 1:
0917 blank 768 DAC bytes
092E INT 10h AX=0013h
094B out 03C4h, AX=0604h
0958 AC mode control 10h = 61h
0968 write CRTC table at 08C7h
097C out 03C4h, AX=0F02h
0982 ES = [CS:02A8]
098A CX = 8000h
098F rep stosw
Static Page Upload At 0D14h
0D14h uploads an 80-column by 60-row planar image. It is the same deinterleave
loop as part 1, but the vertical stride is different:
0D14 out 03C4h,0102h
0D1B bx = [CS:0003] ; page base
0D22 cx = 0050h ; 80 columns
0D25 si = ax
0D27 di = bx
0D2A cx = 003Ch ; 60 rows
0D2D movsb
0D2E add si,013Fh
0D32 add di,009Fh
0D36 loop 0D2Dh
0D39 add ax,0004h
0D3C inc bx
0D3D loop 0D25h
Then the routine repeats for map masks 02h, 04h, and 08h. The 009Fh
post-copy increment means the total destination row advance is 00A0h bytes,
not 0050h. This is why the two pages at 3CF0h and 3CA0h can be addressed
as a vertically interleaved field-like display area.
CRTC Reveal At 1030h
The reveal uses CRTC register 09h, the maximum scanline register:
1030 dx = 03D4h
1033 al = 09h
1035 ah = 1Fh
1037 out dx,ax
103E cx = 001Eh
1041 wait retrace
1044 dx = 03D4h
1047 al = 09h
1049 ah = cl
104B out dx,ax
104C delay
104F loop 1041h
This is a hardware-height/squash reveal. The code is changing scanline duplication/height behavior rather than redrawing the scroller from scratch.
Main Sine Scroll At 0FC5h
The frame loop is:
1061 call 0FC5h
1064 AX = [0294] ; delta
1068 if [0296] == 1 go left else right
1070 [0298] += AX
1075 if [0298] == 00A0h flip direction
1085 [0298] -= AX
108A if [0298] == FF60h flip direction
109A INT 16h AH=01h, repeat until key
0FC5h calls 0E84h to parse/update the scroller script, then calls 0ED1h
sixteen times:
0FC5 call 0E84h
0FC8 [029E] = dx
0FCD cx = 0010h
0FD1 call 0ED1h
0FD5 inc [029E]
0FDA loop 0FD0h
0ED1h is the real scroller blitter. Its structure:
1. Set ES=A000h.
2. Load source pointer from [02A2].
3. Toggle page variables [02AA]/[02AC] by 0050h.
4. Wait for retrace.
5. Write CRTC display start from [02AA].
6. For 80 columns:
destination = sine_offset_table[column] - [02AC] + column_phase
copy 22 vertical bytes:
movsb
di += 013Fh
wrap source pointer after 06E0h bytes
7. If a mode flag allows, draw a second 80-column pass 6400h bytes lower.
8. Advance [029A] by 8 and wrap at 02D0h.
9. Copy a fresh 22-row glyph strip into the rolling source buffer.
The inner vertical copy is:
0F31 cx = 0016h
0F34 movsb
0F35 add di,013Fh
0F39 loop 0F34h
The table at [0317h + bx] supplies the sine-shaped destination row/column
positions, while [0298h] is the horizontal oscillation phase. That is why the
scroll text does not simply move linearly. The scroller is drawing short
vertical strips into a page whose hardware start is also moving.
Keyboard Hook
0DC8h is a small INT 09h keyboard handler. It watches for scan codes 01h
and 39h, acknowledges the keyboard controller, and otherwise chains to the
old handler. The main loop still polls INT 16h; the custom handler appears to
make escape/space behavior more immediate during the scroller.
PART3: Zax Vector/Object Code
PART3.EXE is very different from the surrounding parts. It contains Borland
C++ runtime strings and the marker - Zax / TPC -. It also contains explicit
error strings for missing 386/VGA capability.
The visible screenshots show a cube, a narrow rotating object, and a larger shaded object/logo combination. The binary shape fits that: a C++ shell around mode setup, viewport state, edge tables, span filling, and sprite/block helper functions.
Mode 13h And Planar Mode Paths
The simple 320x200 mode path starts at 2E67h:
2E6A [2999] = 013Fh
2E70 [299B] = 00C7h
2E76 [299D] = 0140h
2E7C [299F] = 0000h
2E82 [29A1] = 0000h
2E88 [2978] = 0
2E8D INT 10h AX=0013h
The more interesting planar path starts at 2F74h:
2F76 mov ax,0013h
2F79 int 10h
2F7C out 03C4h index 04h, modify memory mode
2F89 out 03CEh index 05h, modify graphics mode
2F94 out 03CEh index 06h, modify miscellaneous graphics
2F9D out 03D4h index 14h, clear bit 6
2FA9 out 03D4h index 17h, set bit 6
2FB1 out 03C4h, AX=0F02h
2FB8 ES = A000h
2FC2 CX = 8000h
2FC6 rep stosw
2FC8 reset attribute controller flip-flop via 03DAh
2FCF AC index 10h = 61h
2FD6 CRTC start registers 0Ch/0Dh = 0000h
2FE4 AC index 33h = 0
This is the vector part's Mode-X-like path. It opens all planes, changes addressing, clears 64K, and leaves the display start at zero.
Display Start And Clear
2FEEh is the page flip/display-start helper:
2FF1 bx = [bp+6]
2FF4 dx = 03D4h
2FF7 ah = bh, al = 0Ch, out dx,ax
2FFC ah = bl, al = 0Dh, out dx,ax
3001 retf
3003h clears either the full visible buffer or a clipped viewport:
if [2978] == 0:
ES=A000h
DI=0
CX=7D00h words
AX=color duplicated into AH/AL
rep stosw
else:
ES=A000h
DI=[299F]
CX=([299D] * ([299B]+1)) / 2
AX=color duplicated into AH/AL
rep stosw
The constants set earlier tell the routine whether it is clearing a full 320-wide linear framebuffer or a smaller planar viewport.
Edge Table And Span Fill
The vector renderer uses classic scan conversion. Around the 3Bxxh/3Cxxh
range, the code walks polygon edges and writes per-scanline x-extents into a
table. The edge walker uses an integer error accumulator:
store x for current scanline
advance destination table by 4 bytes
adjust error accumulator
when accumulator crosses zero:
step x
repeat for edge height
The important sign that this is a span renderer is the later loop at 3C92h.
It takes entries from the edge table, computes a video offset, handles left and
right partial planes, then fills the middle with rep stosb:
3C92 DS = ES
3C94 SI = 1874h ; edge/span table
3C97 ES = A000h
3C9C DI = [CS:051E] ; current scan/edge index
3CA1 DX = [CS:0529] + 1
...
3CD8 AX = left_x >> 2
3CE9 BL = left_x & 3
3CF1 AH = mask_table_left[BL]
3D02 DX = 03C4h
3D05 out DX,AX ; map mask for left partial
3D09 stosb
3D0A AX = 0F02h
3D0D out DX,AX ; all middle planes
3D11 rep stosb
3D13 AH = mask_table_right[BL]
3D19 out DX,AX ; right partial
This is not a per-pixel triangle fill. It is an edge-table span fill, with VGA plane masks used for the sub-byte left and right edges.
Sprite And Block Helpers
The 42xxh and 43xxh functions are image/block support routines used by the
vector shell and overlays.
Two address calculators exist:
4246h: linear mode address
DI = y * 0140h + x
ES = A000h
4257h: planar mode address
DI = y * [299D] + (x >> 2) + [299F]
CL = x & 3
ES = A000h
4275h copies a rectangular area from video memory into a caller buffer. In
linear mode it stores width and height, then copies rows with rep movsb and a
0140h stride. In planar mode it samples plane by plane through graphics
controller read-map selection.
4324h restores such a block. In planar mode, the core loop rotates the map
mask across planes:
4370 dx = 03C4h
4373 ax = 0102h
4376 shl ah,cl
4383 out dx,ax
4384 bl = [si]
4387 ES:[di] = bl
438A shl ah,1
438C if ah == 10h: ah = 1, di++
4394 loop
43A5h is a masked sprite draw. It reads pixel data and a trailing mask stream;
only pixels whose mask bit is set are written. The planar version at 43FFh
combines that mask test with the same rotating map-mask logic.
The vector part therefore has a real small graphics library under it: mode selection, clear, page flip, edge table, span fill, block save/restore, and masked blit.
PART4: Giant Scroller
PART4.EXE enters at load-image offset 2484h. The public screenshot sequence
shows the giant text and balls; the NFO credits this part to Metazor with help
from BitFreak.
Entry path:
2484 call 1ADEh VGA setup and clear
2487 call 1F95h opening staged display loop
248A call 1B74h palette upload
248D call 1BC6h text/letter state advance
2490 call 1C5Ch stripe upload
2493 call 1A0Dh vblank
2496 call 1BC6h text/letter state advance
2499 call 1E09h sprite erase/draw
249C call 1D36h CRTC vertical movement
249F call 2401h timed column-stage logic
24A2 call 246Dh VGA latch/self-copy helper
24A5 poll INT 16h, repeat until key
24AD palette fade out and exit
Setup At 1ADEh
1ADEh is the same family as the part 1 and part 2 setup:
1ADE blank DAC
1AF5 INT 10h AX=0013h
1B0D out 03C4h, AX=0604h
1B1B AC mode control 10h = 61h
1B2A write 19 CRTC bytes from table at 1AC5h
1B3E out 03C4h, AX=0F02h
1B45 ES = [CS:1A01] ; A000h
1B4C CX = 8000h
1B51 rep stosw
The CRTC table is stored just before the setup function, again as raw bytes that confuse linear disassembly.
Text/Letter State At 1BC6h
1BC6h advances a character/control stream every twentieth call:
[006C]++
if [006C] != 14h:
return
[006C] = 0
AH = control_or_character_stream[[006D]]
if AH == 0:
fade out and exit
find AH in alphabet table at [007B]
DX = alphabet index
AX = word table[DX] at [19C1]
[0068] = AX ; source offset for glyph/column data
call 1C1Fh ; choose source segment group
[006D]++ ; next stream entry
1C1Fh selects one of four source segments from [24B4], [24B6],
[24B8], or [24BA] depending on the alphabet index. This is a compact way to
split a large font/column dataset over several memory segments.
Stripe Copy At 1C5Ch
1C5Ch is the giant scroller's most important inner loop. It advances a
destination column and copies tall strips from the currently selected font page
into A000h:
[0066]++ ; destination phase
DI = [0066]
SI = [0068]
DS = [006A] ; selected font/source segment
Then it writes each VGA plane separately. The first plane pass:
1C77 ax = 0102h
1C7A dx = 03C4h
1C7D out dx,ax
1C7E cx = 0050h ; 80 rows/columns in this strip
1C81 push si
1C82 push di
1C83 movsb
1C84 add si,013Fh
1C88 add di,013Fh
1C8C loop 1C83h
1C8E pop di
1C8F pop si
Immediately after that, it draws a second copy shifted left by 54h bytes:
1C92 sub di,0054h
1C95 cx = 0050h
1C98 movsb
1C99 add si,013Fh
1C9D add di,013Fh
1CA1 loop 1C98h
Then the routine repeats for map masks 02h, 04h, and 08h, incrementing
SI between planes. At the end:
1D2F add [0068],0004h
That source offset increment steps to the next four-plane column of the large
font. The duplicate di - 54h writes explain the wide/overlapping giant-scroll
look: it is not only a simple column copy, it is laying down offset copies into
the planar page.
CRTC Vertical Motion At 1D36h
1D36h computes a display start from a rolling offset and one of two lookup
tables:
[0062]++
if [0062] == 00A7h:
[0062] -= 0054h
[0066] -= 0054h
if [0060] < 0048h:
table = [0CBAh]
else if [0060] < 008Fh:
table = [0D03h]
else:
[0060] = 0
DX = [0062] + table_value * 0140h
[0059] = DX
write CRTC 0Dh/0Ch from DX
[0060]++
That is a hardware vertical scroll/sway on top of the stripe blitter. The routine uses CRTC start registers rather than moving the whole screen in memory.
Sprite Overlay At 1E09h
1E09h handles the small moving balls/sprites over the giant text. It uses two
support routines:
1E9Bherases an old sprite footprint.1EB3hdraws a new sprite through rotating VGA map masks.
The routine first sets the graphics-controller bit mask:
1E09 out 03CEh index 08h = 1Fh
1E14 out 03C4h, AX=0F02h
Then it erases ten old positions:
for 10 entries:
DI = old_position_table[i]
call 1E9Bh
1E9Bh clears a 3-byte-wide by 7-row footprint with a 013Dh row skip after
the three byte writes. The total row advance is again 0140h.
Then it draws ten new positions from two motion tables:
for 10 entries:
AX = y_table[[005B] + offset]
CX = x_table[[005B] + offset]
call 1DD0h ; convert x/y to DI and starting plane mask DL
call 1EB3h ; draw sprite
[005B] += 000Ch
1DD0h is the x/y-to-planar-address helper:
DI = y * 0140h + (x >> 2)
DL = 1, 2, 4, or 8 according to x & 3
ES = A000h
1EB3h stores the new position, then draws seven rows. For each plane/pixel
phase:
1EE4 dx = 03C4h
1EE7 out dx,ax ; map mask in AH, index 02h in AL
1EE8 al = ES:[di] ; read for VGA latch side effects
1EEB movsb
1EEC add si,013Fh
1EF0 add di,013Fh
1EF4 loop 1EE8h
1EF9 shl dl,1
1EFB if dl == 10h: dl = 1, di++
1F03 si++
1F09 repeat until 7 phases
This is the same planar pixel-phase idea as the image uploaders, but used on a small moving sprite instead of a full screen.
Timed Column Staging At 2039h And 2401h
2401h is a long-running phase counter:
[0016]++
if [0016] < 03E8h:
return
if [0016] < 07D0h:
reset short counters and call 2039h
if [0016] < 0BB8h:
call 224Bh
if [0016] < 0FA0h:
reset short counters and call 2039h
if [0016] == 0FA0h:
[0003] = 0
if [0016] < 1388h:
call 2326h
else:
[0016] = 03E8h
2039h stages more text columns as time passes:
[003F]++
<= 07h: draw one source column
<= 0Eh: draw two
<= 15h: draw three
<= 1Ch: draw four
<= 23h: draw five
<= 258h: rolling six-column queue
The helper at 21FBh begins by setting ES and DS to A000h-related
segments and then uses 1B55h/1B67h to temporarily change the VGA graphics
mode register. The unusual 246Dh routine also performs an A000h-to-A000h
rep movsb under that temporary graphics mode. This is almost certainly a VGA
latch/write-mode trick: reading from video memory loads VGA latches, and writing
under a different graphics mode can copy/merge pixels across planes without a
normal CPU-side unpack.
The important point is that the giant scroller is layered:
strip uploader -> draws new giant-text columns
CRTC display start -> moves the visible window
sprite erase/draw -> overlays moving balls
column staging -> controls how much of the wide text is active
VGA latch helper -> performs fast plane-aware copy/merge work
PART5: Movie / Credits Scroller
PART5.EXE enters at load-image offset 6818h. The visible screenshots show
the credits and the final stacked title text.
Entry path:
6818 call 62F9h VGA setup and clear
681B call 5F2Dh CRTC vertical helper, argument 03FFh
6823 call 659Bh first frame update
6826 SI = 684Ah
6829 wait vblank
682C call 6383h palette upload
682F call 659Bh frame loop
6832 poll INT 16h, repeat until key
683C call 5EC5h clear/reset
683F exit
Setup At 62F9h
62F9h is the familiar VGA setup:
62F9 blank DAC
6310 INT 10h AX=0013h
6328 out 03C4h, AX=0604h
6336 AC mode control 10h = 61h
6345 write 19 CRTC bytes from table at 5F14h
6359 out 03C4h, AX=0F02h
6360 ES = [CS:12A6] ; A000h
6368 CX = 8000h
636D rep stosw
636F initialize 200 row-offset words at 1116h
The row-offset table starts at zero and increments by 0050h, giving a quick
lookup from scanline to planar byte offset.
Full Page Upload At 63D8h
63D8h is part 1's plane uploader with different globals:
map mask 01h, 02h, 04h, 08h
base = [12BBh]
rows = [12ACh]
80 columns
source stride after movsb = 0140h
dest stride after movsb = 0050h
The first call from 5EC5h sets:
[12BB] = 0000h
[12AC] = 00C8h
DS = [6848h]
call 63D8h
That is a full 200-row page upload.
Script Parser At 639Bh
639Bh walks a credits/movie control stream:
BX = [12B3]
AL = stream[BX + 0B59h]
if AL == 0:
[12B3] = 0
call 5EC5h
exit
find AL in alphabet/control table at 106Eh
if found:
DX = word_table[index] at 10A6h
[12B3]++
return DX
This is the same pattern as part 4's text stream: a compact character/control byte becomes a source offset for a blitter.
Strip Upload At 64ABh
64ABh draws a rectangular strip from the current source offset:
for plane 01h:
AX = [12B5] + 0
BX = [12BB] ; destination base
outer count = [12B7]
for each column/group:
CX = 0019h ; 25 rows
movsb
si += 013Fh
di += 004Fh
loop
ax += 4
bx++
repeat for plane 02h with source +1
repeat for plane 04h with source +2
repeat for plane 08h with source +3
This is a 25-row version of the same planar unpacker. It is probably used for movie-font or credits strips rather than whole screens.
Frame Update At 659Bh
659Bh is the movie scroller's frame function:
wait vblank
call 6581h ; write CRTC start from [12AF], then [12AF] += 0050h
call 6765h ; erase old overlay positions
if [12B1] == 0:
if [12B9] == 14h:
[12BD] += 0910h
[12B9] = 0
[12B1] = 1
else:
[12B9]++
call 639Bh
[12B5] = DX
[12BB] = [12BD]
DS = [6842h]
call 64ABh
[12BD] += [12B7]
jump to overlay draw
else:
if [12B1] == 0Ah:
[12B1] = 0
[12AA] = 0
else:
copy 0140h bytes inside A000h
call 66BAh
[12B1]++
[12AA] += 00F0h
if [12AF] == 60E0h:
[12AF] = 1F40h
[12BD] = 6720h
call 656Bh ; A000 self-copy under graphics mode
return
The two phases are:
- new strip material is decoded and uploaded into the scrolling page;
- existing page data is shifted/copied in A000h while the CRTC display start advances by one 80-byte row each frame.
Overlay Erase And Draw At 66BAh / 6765h
667Bh converts an x/y coordinate into planar VGA address and starting map
mask:
667C DX = 0050h
667F MUL DX ; AX = y * 80
6681 CL = BL
6683 CL &= 3 ; x phase
6686 BX >>= 2 ; x byte
6689 AX += BX
668B DI = AX
668D ES = A000h
6693 DL = 01h/02h/04h/08h according to CL
That is the planar equivalent of:
di = y * 80 + (x >> 2)
plane_mask = 1 << (x & 3)
6765h erases eight old footprints by calling 67A2h. The eraser writes three
zero bytes per row and skips 4Dh bytes, so each row advances by 50h.
66BAh draws two groups of four overlay entries. Each entry:
AX = y/source table value
CX = x/position table value
call 667Bh ; get DI and DL
call 67B9h ; draw through map masks
67B9h is the draw loop:
67B9 DS = [6846h]
67BE SI = 0000h
67C0 DI += [12AFh]
67CA store DI in old-position table
67D4 AH = DL
67DC AL = 02h
67DE CX = 0007h
67E3 DX = 03C4h
67E6 out DX,AX
67E7 read ES:[DI] for latch
67EA movsb
67EB SI += 013Fh
67EF DI += 004Fh
67F2 loop 67E7h
67F7 DL <<= 1
67F9 if DL == 10h: DL = 1, DI++
6803 SI++
6809 repeat until 7 phases
This is almost the same sprite kernel as part 4, adjusted to 80-byte planar
rows (004Fh after movsb) instead of 320-byte logical rows.
Palette Fade At 6276h
6276h is a palette fade loop over 32 steps. It builds a temporary 768-byte DAC
table at 5F76h, subtracts a step value from each source DAC byte with clamp
to zero, waits for retrace, optionally calls frame-update helpers, and uploads
two groups of 64 palette entries at a time:
for fade_step in 32 steps:
for 768 DAC bytes:
temp[i] = max(source[i] - brightness, 0)
wait vblank
call frame helpers
out 03C8h, 0
output 64 * 6 DAC bytes
wait vblank
call frame helpers
output next 64 * 6 DAC bytes
The fade is interleaved with rendering work so the screen does not freeze while the palette changes.
Why The Demo Feels Like 1992
The production is a good 1992 snapshot: it has recognizable "standard" effects, but the code is already using serious VGA tricks rather than just mode 13h linear pixel pokes.
What stands out:
- The demo uses a real loader chain, not a monolithic effect scheduler.
- The assembly parts share a disciplined planar image blitter.
- Full-screen art is stored as 320-byte rows and deinterleaved into VGA planes at runtime.
- Several transitions are CRTC/DAC tricks rather than memory redraws.
- The sine scroller and giant scroller mix software strip drawing with hardware display-start movement.
- The vector part is a separate C++/ASM subsystem with edge tables, span fills, and sprite/block helpers.
- The final scroller reuses the same primitives for a different movie/credits layout.
The code is not one unified engine. It is a collection of strong part-local kernels tied together by BitFreak's loader. That matches the NFO's explanation: the separate authors lived apart and merged the demo at the loader level.
Main Takeaway
Even Better Than The Real Thing! is more technically interesting than a quick
view suggests. The effects are familiar early-1990s PC demo material, but the
inner loops are carefully adapted to unchained VGA:
raw 320-byte rows -> four 80-byte VGA planes
short vertical strips -> sine/giant scrollers
CRTC display-start writes -> cheap motion
DAC writes during retrace -> fades and reveals
plane masks -> partial spans and sprites
edge tables -> vector fills without per-pixel plotting
The loader makes the production less seamless, but it also makes the binary clearer to study. Each file is almost a self-contained lesson in the VGA trick it needs for that part.