Analysis model: gpt-5.5 xhigh, sol high
Last edited: 2026-08-25
Dunno by Sorcerers - Technical Dissection
Dunno is a 1990 MS-DOS intro by Sorcerers. The Hornet 1990 demo index lists
dunno.zip as Dunno by Sorcerers, and the archive timestamp for
DUNNO.EXE is 1990-04-29.
Release year: 1990
It is a compact early VGA text-mode production built from:
- an EXEPACK-style MZ wrapper;
- an unpacked tiny-model real-mode program;
- direct
B800htext-memory effects; - VGA font reprogramming through
INT 10h AX=1110h; - CRTC start/line-compare/preset-row writes through ports
3D4h/3D5h; - Attribute Controller horizontal panning and overscan color writes through
3C0h; - a timer-driven one-bit PC speaker sample tail.
The scroller contains old private contact details. Those lines are deliberately not reproduced here.

The image above is reconstructed from the unpacked binary's own text buffers and runtime setup logic. It is not a raw DOSBox screenshot.
Runtime Capture
I ran the original DUNNO.EXE under DOSBox-X 2026.01.02 with a short
DX-CAPTURE session. The program first stops at a VGA compatibility warning,
so the capture queues one keypress to enter the visible loop.
| Timestamp | Frame | Runtime context |
|---|---|---|
00:03.000 |
![]() |
The visible loop is active. The red upper logo and large white block title are both text-mode constructions, matching the reconstructed still but now proven from a live run. |
00:05.000 |
![]() |
The top scroller has started while the right-side group panel and lower title band remain stable. This is the CRTC/font/panning machinery in motion. |
00:08.000 |
![]() |
A later phase shows the red logo shifted and the top scroller advanced. The selected frame is kept to the public effect structure and does not reproduce the old contact-detail portion. |

The GIF above is assembled directly from those three 720x400 DOSBox-X frames. It shows the same text-mode construction in motion: red logo state, entering top scroller, shifted logo/title state, and the stable group panel.
Runtime-To-Code Concordance
The live frames confirm that Dunno is not a graphics-mode bitmap effect. The motion is built from text memory, a custom VGA font, Attribute Controller horizontal panning, CRTC split/start registers, and timed overscan color writes.
The 00:03.000 frame matches the state after 0D0Bh has finished the VGA text
setup. The program has copied the ROM 8x16 font to 0FAFh, generated shifted
custom glyph variants, loaded the modified font with INT 10h AX=1110h, filled
the text page, and installed the CRTC split/start-address state:
0DAE mov bx,1000h
0DB1 mov cx,0100h
0DB6 mov ax,1110h
0DB9 int 10h ; load 256 custom 8x16 glyphs
...
0E00 mov al,0Ch
0E04 mov al,08h ; start address high
0E09 mov al,0Dh
0E0C mov al,00h ; start address low
That explains why the reconstructed still and the first runtime frame have the same block identity: both are text-cell compositions, but the runtime frame also proves the actual VGA setup path and live text-memory display state.
The 00:05.000 frame shows the top scroller entering. That movement is the
smooth-scroller path at 0E3Eh..0E83h. For eight frames the code changes
Attribute Controller register 13h, which gives pixel panning inside text
mode. On the ninth tick it shifts 78 text cells left in B800h and inserts the
next character at the right edge:
0E40 mov al,33h ; AC index 13h with PAS bit set
0E45 out dx,al ; panning value
...
0E53 mov si,10A4h
0E56 mov di,10A2h
0E59 mov cx,004Eh
0E5C rep movsw ; shift 78 text cells left by one
0E7F mov es:[113Eh],al ; new rightmost character
The visible scroller is therefore sub-character text panning plus occasional text-memory shifts, not pixel plotting. This is why the scroller moves more smoothly than an ordinary character-cell scroll even though the screen is still 80x25 text mode.
The 00:08.000 frame shows the red logo/title area in a later phase. That maps
to the pre-expanded logo/member frame table at 384Dh..9C4Ch and the copy at
0F05h. During setup, the template at 352Dh is expanded into 16 complete
10-row by 80-column text blocks, replacing placeholder byte 01h with a
different animated character code for each frame. The frame loop then copies
one full block to text memory and advances the source pointer:
0F05 mov di,06E0h
0F08 mov si,384Dh ; self-modified frame pointer
0F0B mov cx,0320h ; 800 words = 10 rows * 80 columns
0F0E rep movsw
0F19 mov cs:[0F0Dh],si
That is the mechanism behind the stable but animated group panel in the GIF. It is not rebuilding the logo every frame; it is cycling complete prepared text panels whose animated fill depends on the custom glyph bank.
The moving split/wrap feel in the captures is also tied to CRTC register 18h.
The loop advances a pointer through the table at 2244h, then writes the
selected byte as the line-compare low value:
0F1E mov bx,2244h ; self-modified table pointer
0F30 mov dx,03D4h
0F33 mov al,18h
0F37 mov al,cs:[bx]
0F3A out dx,al
Combined with the fixed text-memory start address of 0800h, this lets the
display wrap at a moving split line while the underlying page remains ordinary
text memory.
The border motion visible around the text page comes from the overscan loop at
0EAAh. It counts display-enable transitions on 3DAh, then races the beam by
writing Attribute Controller register 11h once per scanline-ish interval:
0EC9 mov dl,0C0h ; 03C0h
0ECB mov al,31h ; AC index 11h, overscan color
0ECD out dx,al
0ECE lodsb
0ECF out dx,al ; new border color
So the captured runtime sequence is a layered VGA text-mode effect: custom font
blocks, smooth AC panning for the top scroller, pre-expanded animated text
panels, CRTC start/line-compare motion, and per-scanline overscan color writes.
The PC speaker tail is not visible in the no-key frames; it starts only after
the keyboard-buffer test exits the visual loop and startup calls C762h, which
copies a final text page and installs a high-rate INT 08h one-bit sample player.
Sources
- Hornet 1990 demo index: https://ftp.scene.org/mirrors/hornet/demos/1990/00_index.txt
- Scene.org archive: https://ftp.scene.org/mirrors/hornet/demos/1990/dunno.zip
- Scene.org file page: https://files.scene.org/view/mirrors/hornet/demos/1990/dunno.zip
Archive
The examined archive is dunno.zip from the Hornet mirror:
dunno.zip 13005 bytes
DUNNO.EXE 14509 bytes 1990-04-29 17:00
Hashes:
2d2956305815ed34bb1026398b1a4dc0e5651a3f5d802971d11b76e338736455 dunno.zip
0dea27e8e751efdabeec33506cb2fe95d101d866242143912c1ab546699163ad DUNNO.EXE
Executable Shape
DUNNO.EXE is an MZ executable with no relocation table in the shipped header:
file size 14509 bytes
declared size 14509 bytes
header size 512 bytes
loaded image 13997 bytes
relocations 0
entry 0356:0012
stack 0CAA:0080
min alloc 2375 paragraphs
max alloc FFFFh
The entry is not the real demo code. It enters an EXEPACK-style unpacker near the end of the load image. The unpacker is easy to recognize from:
RB marker near the stub
DESQview guard string
"Packed file is corrupt" error path
backward copy/fill decompressor
far jump through restored original entry pointer
The stub expands the real program upward/backward in memory. Its core decoder uses two block types:
; DL = packed block tag, CX = count
and al,0FEh
cmp al,0B0h
je fill_block ; read one byte, STOSB it CX times with DF=1
cmp al,0B2h
je copy_block ; MOVSB CX bytes with DF=1
jmp corrupt_file
In this copy the unpacker produced 113 blocks. The largest zero run is
4101 bytes, and the final expanded image is a COM-like/tiny-model program
with most effect code below 1000h plus a retained unpacker/timer support area
near C760h..CA7Fh.
There is one tiny-model alignment wrinkle: the EXEPACK metadata stores original
entry 0000:0100, while the restored image also contains a short jump at
00FC into the first meaningful startup block. I use load-image offsets below
and identify routines by call targets and hardware behavior rather than by a
compiler-style entry symbol.
Runtime Timeline
This is a prompt-then-loop intro, not a long multipart demo. A short DOSBox-X run confirmed that the executable starts; the VM's dummy video path was not usable for a raw screen capture or precise wall-clock timestamps.
Practical sequence:
00:00 EXEPACK-style wrapper expands the tiny-model program.
00:00 DESQview guard and VGA adapter probe run.
00:00 DOS text prompt warns about VGA compatibility and waits for a key.
after key main VGA text-mode effect initializes and enters a continuous loop.
on key font/text mode are restored; a PC-speaker sample/title tail runs;
the program waits again and exits to DOS.
The main visual state is one continuous effect: a horizontally smooth scroller, animated Sorcerers logo/member text, moving border bars, and CRTC split-line motion.
Startup Path
The first useful startup block begins around 0133h. It checks for DESQview,
then probes the video adapter:
0133 call C8E1 ; DESQview API guard
0136 push cs
0137 pop ds
0138 call C89B ; VGA/MCGA adapter probe
013B cmp al,03h
013D jne 015F ; print "need VGA" and exit
013F mov dx,016Ch ; compatibility warning
0142 mov ah,09h
0144 int 21h
0146 call C91D ; wait for key
0149 call 0D0Bh ; main text/VGA effect
014C call C922 ; flush pending key
014F call C762 ; speaker sample/title tail
0152 call C91D ; wait before final clear/exit
0155 mov ah,1Fh
0157 call C92E ; blank B800h text page
015A mov ax,4C00h
015D int 21h
The VGA probe at C89B first tries INT 10h AX=1A00h. If that is available,
it uses the returned display combination code as a compact lookup. If not, it
falls back to INT 10h AH=12h BL=10h, the older EGA/VGA information call:
C89B mov ax,1A00h
C89E int 10h
C8A0 cmp al,1Ah
C8A2 jne old_probe
C8A4 xor bh,bh
C8A6 mov al,cs:[bx+C8D2h]
C8AB jmp done
old_probe:
C8AD mov ah,12h
C8AF mov bl,10h
C8B1 int 10h
C8B3 or bl,bl
C8B5 jne ega_present
C8B7 mov al,04h
...
C8C2 shr cl,1
C8C8 mov al,cs:[bx+C8DFh]
The startup wants return value 3, which corresponds to a VGA-capable path.
Main Setup At 0D0B
The main effect starts by printing Please wait..., then enters text mode:
0D0B mov dx,0F9Ch
0D10 mov ah,09h
0D12 int 21h
0D14 mov ax,0003h
0D17 int 10h ; 80x25 color text
0D19 mov ax,1202h
0D1C mov bl,30h
0D1E int 10h ; VGA/EGA mode helper
Then it obtains the ROM font and copies 4096 bytes into its own segment:
0D21 push bp
0D22 mov ax,1130h
0D25 mov bh,06h
0D27 int 10h ; ES:BP = ROM 8x16 font
0D29 push es
0D2A pop ds
0D2B mov si,bp
0D2D push cs
0D2E pop es
0D2F mov di,0FAFh
0D32 mov cx,1000h
0D35 rep movsb ; copy 256 glyphs * 16 bytes
0D37 pop bp
This is the key to the visual style. The program remains in text mode, but it owns the glyph shapes. It can animate blocks and logo fills by changing character codes and using a custom font rather than plotting pixels.
Custom Glyph Seed
Immediately after copying the ROM font, the code writes a 16-byte custom glyph
at 0FBFh:
0D38 mov di,0FBFh
0D3B mov ax,FEFFh
0D3E stosw
0D3F mov ax,E8D4h
0D42 stosw
0D43 stosw
0D44 stosw
0D45 stosw
0D46 mov ax,80C0h
0D49 stosw
0D4A xor ax,ax
0D4C stosw
0D4D stosw
Then it creates 16 shifted/rotated variants starting at 0FD0h:
0D50 mov si,0FBFh
0D53 mov di,0FD0h
0D56 mov cx,0010h
outer:
0D59 push cx
0D5A mov cx,0010h
0D5D rep movsb ; copy one 16-byte glyph
0D5F mov al,[si-1]
0D62 mov es:[di-11h],al ; feed previous edge byte into next glyph
0D66 pop cx
0D67 loop outer
That loop is a tiny glyph animator. Instead of redrawing pixels, it builds a bank of related character shapes and later cycles text characters through that bank.
Logo/Member Frame Builder
The logo template lives at 352Dh and is 0x320 bytes: 800 character cells,
or a 10-row by 80-column text block. Byte 01h is not meant to be shown
literally. It is a placeholder replaced by an animated character code:
0D69 mov di,384Dh
0D6C mov cx,0010h ; 16 animation frames
0D6F xor ah,ah
0D71 mov si,352Dh
frame:
0D74 inc ah ; next animated character code
0D76 push cx
0D77 mov cx,0320h ; 800 cells
cell:
0D7A lodsb
0D7B cmp al,01h
0D7D jne literal
0D7F mov al,ah ; animated fill code
literal:
0D81 stosb ; character
0D82 mov al,07h
0D84 stosb ; attribute
0D85 loop cell
0D87 pop cx
0D88 loop frame
The result is a 0x6400-byte table at 384Dh..9C4Ch: 16 complete text blocks.
The main loop later copies one block per frame to text memory and advances the
source pointer. This gives the Sorcerers logo/member panel its animated fill
without touching the font every frame.
Screen And CRTC Setup
The program loads its modified font into VGA:
0DA8 push bp
0DA9 mov bp,0FAFh
0DAC push cs
0DAD pop es
0DAE mov bx,1000h
0DB1 mov cx,0100h
0DB4 xor dx,dx
0DB6 mov ax,1110h
0DB9 int 10h ; load 256 custom 8x16 glyphs
0DBB pop bp
It hides the cursor with INT 10h AH=01h CX=3201h, clears all 4000 text
bytes, then programs split-screen registers:
0DC3 mov ax,0B800h
0DC6 mov es,ax
0DCA push cs
0DCB pop ds
0DCC mov ax,0720h
0DCF mov cx,0140h
0DD2 rep stosw ; top text band
0DD4 mov ah,04h
0DD6 mov cx,0320h
0DD9 rep stosw ; red middle band
0DDB mov ah,07h
0DDD mov cx,0B40h
0DE0 rep stosw ; remaining band
The CRTC writes are the classic VGA trick:
0DE2 mov dx,03D4h
0DE5 mov al,18h
0DE7 out dx,al
0DE8 inc dx
0DE9 mov ax,0040h
0DEC out dx,al ; line compare low = 64
0DEE dec dx
0DEF mov al,07h
0DF0 out dx,al
0DF1 inc dx
0DF2 in al,dx
0DF3 and al,0EFh
0DF5 out dx,al ; clear line-compare bit 8
0DF7 dec dx
0DF8 mov al,09h
0DFA inc dx
0DFB in al,dx
0DFC and al,0BFh
0DFE out dx,al ; clear line-compare bit 9
0E00 mov al,0Ch
0E02 out dx,al
0E03 inc dx
0E04 mov al,08h
0E06 out dx,al ; start address high
0E08 dec dx
0E09 mov al,0Dh
0E0B inc dx
0E0C mov al,00h
0E0E out dx,al ; start address low
So the display starts at text-memory word offset 0800h, while the line-compare
split wraps part of the display back to the beginning of text memory. That lets
the intro use text memory as a scrolled page without moving the whole screen.
Frame Loop Overview
The frame loop begins at 0E14h and returns there while no key is pending:
0E14 in al,3DAh
0E15 test al,08h
0E17 je 0E14h ; wait for vertical retrace
0E19 cli
...
0F43 mov cx,es:[041Ah] ; BIOS keyboard buffer head
0F48 cmp cx,es:[041Ch] ; keyboard buffer tail
0F4D jne exit
0F4F jmp 0E14h
Inside one frame it performs five jobs:
1. change CRTC preset-row scan during retrace;
2. update Attribute Controller horizontal panning for smooth scroll;
3. shift and feed one new scroll character when panning wraps;
4. rewrite overscan/border color per scanline;
5. copy animated text panels and update the line-compare table pointer.
The fixed display-memory budget is 1,440 word reads and 1,440 word writes per
refresh: the shifted upper panel contributes 8 * 80 = 640 words and the
logo/member panel contributes 800. Thus 2,880 prepared source bytes become
2,880 B800h bytes without a full 4,000-byte page copy. Every ninth refresh
adds the in-place 78-word scroller shift, or 156 source bytes and 156
destination bytes, plus the new character byte and any encountered control
bytes.
The fixed video-register output count is 428 per refresh: two CRTC writes for
preset-row scan, two Attribute Controller writes for smooth panning, two more
to force panning value 8 after the initial beam delay, 210 overscan index/value
pairs, and two CRTC line-compare writes. Port 3DAh input count is deliberately
not fixed: the code waits for 43 display-enable cycles before the bars and one
more cycle for each of the 210 bar rows, but every edge loop can poll more than
once. This is a transfer ledger, not an instruction-cycle estimate.
Smooth Scroller
The scroller is text-mode but not cell-stepped. It uses VGA horizontal pixel
panning through Attribute Controller register 13h.
At the top of the frame:
0E3E mov dl,0C0h ; DX was 03DAh, so this is 03C0h
0E40 mov al,33h ; attribute index 13h with PAS bit set
0E42 out dx,al
0E43 mov al,00h ; self-modified panning value
0E45 out dx,al
0E46 inc al
0E48 cmp al,09h
0E4A jne store_pan
The self-modified byte at 0E44h walks from 0 to 8. Values 0..7 are
normal VGA text-mode subcharacter panning positions; the ninth tick triggers a
real one-character memory shift:
0E4C mov ax,0B800h
0E4F mov es,ax
0E51 mov ds,ax
0E53 mov si,10A4h
0E56 mov di,10A2h
0E59 mov cx,004Eh
0E5C rep movsw ; shift 78 text cells left by one
Then it pulls the next byte from the scroll text. The pointer operand at
0E60h is self-modified:
0E5E mov si,023Dh ; patched after every accepted byte
0E61 mov ax,cs
0E63 mov ds,ax
next_token:
0E65 lodsb
0E66 or al,al
0E68 jne not_end
0E6A mov si,023Dh
0E6D jmp next_token ; zero terminator loops text
not_end:
0E6F cmp al,02h
0E71 jne normal_char
0E73 lodsb
0E74 mov es:[113Fh],al ; color/control byte for new tail cell
0E78 jmp next_token
normal_char:
0E7A mov cs:[0E63h],si ; store updated stream pointer
0E7F mov es:[113Eh],al ; new rightmost character
0E83 xor al,al ; reset panning to 0
0E85 mov cs:[0E48h],al ; store next pan value
This is the classic 1990 PC text-mode smooth scroller trick: let VGA hardware
move the row by pixels for eight frames, then shift text memory once and insert
one new character. The panning state is therefore a nine-refresh cycle. The
token loop can consume an arbitrary run of zero terminators and 02h color
controls before finding the next printable byte, but it publishes exactly one
new character on each memory-shift refresh. The stream contents remain omitted;
the recovered control grammar and byte traffic do not require reproducing the
private text.
Border Bars
The scroller itself is only part of the frame. The more unusual loop is the
per-scanline overscan update at 0EAAh.
First the code burns through 0x2B display-enable transitions on port 3DAh:
0E89 mov dl,0DAh
0E8B mov cx,002Bh
wait_line:
0E8E in al,dx
0E8F shr al,1
0E91 jae wait_line
0E93 in al,dx
0E94 shr al,1
0E96 jb 0E93h
0E98 loop wait_line
Bit 0 of 3DAh is display enable. Waiting for both edges repeatedly is a crude
scanline counter. After the delay, it writes Attribute Controller register
13h back to panning value 8, then starts the border-color loop:
0EA2 mov dl,0DAh
0EA4 mov cx,00D2h ; 210 scanline-ish updates
0EA7 mov bx,0001h ; self-modified phase
bar_loop:
0EAA dec bx
0EAB jne phase_ok
0EAD mov bx,00D1h
phase_ok:
0EB0 mov cs:[0EACh],bx ; store phase for next frame
0EB5 mov bl,cs:[bx+2172h]
0EBA mov si,1FDEh
0EBD add si,bx ; pick color-wave table entry
0EBF in al,dx ; wait display-enable edge
0EC0 shr al,1
0EC2 jae 0EBFh
0EC4 in al,dx
0EC5 shr al,1
0EC7 jb 0EC4h
0EC9 mov dl,0C0h ; 03C0h
0ECB mov al,31h ; attribute index 11h, overscan color
0ECD out dx,al
0ECE lodsb
0ECF out dx,al ; new border color
0ED0 mov dl,0DAh
0ED2 loop bar_loop
The author text mentions "moving bars in border"; this is the exact mechanism.
The main display remains text mode, while the visible overscan border is
painted by racing the beam and changing the VGA overscan color once per
scanline-like interval. The phase ring contains 209 entries. Although the loop
steps it 210 times per refresh, 210 mod 209 = 1, so its final self-modified
phase moves backward by exactly one entry per frame and repeats after 209
frames. Each bar iteration reads one phase byte and one color-wave byte, for
420 table-byte reads and 420 Attribute Controller writes per refresh.
Animated Text Panel Copy
After the border loop, the program updates text memory. The first copy uses a
phase table at 2172h to select a horizontally shifted source block at
2885h:
0ED4 mov ax,0B800h
0ED7 mov es,ax
0ED9 mov bx,0001h ; self-modified phase
0EDC dec bx
0EDF mov bx,00D1h ; wrap
0EE2 mov cs:[0EDEh],bx
0EE7 mov bl,cs:[bx+2172h]
0EEC shl bx,1
0EEE mov di,00A0h ; screen row 1
0EF1 mov si,2885h
0EF4 add si,bx
0EF6 mov bx,0008h ; 8 rows
row_loop:
0EF9 mov cx,0050h ; 80 words
0EFC rep movsw
0EFE add si,00C2h ; next shifted source row
0F02 dec bx
0F03 jne row_loop
This path reads and writes 640 words, or 1,280 bytes. The source advances 160
bytes through each rep movsw, then skips C2h = 194 bytes, so authored rows
are 354 bytes apart while destination rows remain contiguous 160-byte text
rows. Its independent phase uses the same 209-entry waveform and advances one
entry per refresh.
Then it copies one of the 16 prebuilt Sorcerers/logo frames:
0F05 mov di,06E0h
0F08 mov si,384Dh ; self-modified frame pointer
0F0B mov cx,0320h ; 800 words = 10 rows * 80 columns
0F0E rep movsw
0F10 cmp si,9C4Dh
0F14 jne keep_frame
0F16 mov si,384Dh
keep_frame:
0F19 mov cs:[0F0Dh],si
That is why the logo/member box appears animated although the program is in
plain 80x25 text mode: it is cycling through pre-expanded complete text pages,
not redrawing a shape procedurally every frame. One copy is 800 source-word
reads plus 800 B800h word writes, or 1,600 bytes in each direction; advancing
by that exact amount walks all 16 prepared frames before wrapping.
Moving Line Compare
The last visual update changes CRTC register 18h, the low byte of the VGA
line-compare register:
0F1E mov bx,2244h ; self-modified table pointer
0F21 inc bx
0F22 cmp bx,22ACh
0F26 jne keep_lc
0F28 mov bx,2244h
keep_lc:
0F2B mov cs:[0F23h],bx
0F30 mov dx,03D4h
0F33 mov al,18h
0F35 out dx,al
0F36 inc dx
0F37 mov al,cs:[bx]
0F3A out dx,al
The table at 2244h is prepared during setup from data at 2173h:
0D99 mov di,2244h
0D9C mov si,2173h
0D9F mov cx,0069h
0DA2 lodsw
0DA3 add al,30h
0DA5 stosb
0DA6 loop 0DA2h
Only the low byte is stored, with 30h added. This creates a compact animated
line-compare path. Combined with the fixed start address of 0800h, it makes
the wrap/split position drift over time. Setup generates 105 bytes, but the
steady loop's compare-before-read wrap uses 104 positions, 2244h..22ABh;
22ACh is the generated boundary byte and is not selected. The preset-row
table at 1FAFh independently walks indexes 1..2Eh, a 46-refresh cycle.
The visual loop keeps interrupts disabled from the first retrace entry through
the 43-cycle delay, all 210 border updates, both panel copies, and the final
line-compare write. It reenables them only immediately before checking the BIOS
keyboard buffer. IRQs are delayed across almost the complete beam-raced update,
which protects the port timing and self-modified state from interruption; the
page is nevertheless single-buffered, and presentation is the CRTC/Attribute
Controller state plus direct writes to the displayed B800h page.
Exit And Restore
The loop tests the BIOS keyboard buffer directly instead of calling INT 16h
every frame:
0F3F xor cx,cx
0F41 mov es,cx
0F43 mov cx,es:[041Ah] ; head
0F48 cmp cx,es:[041Ch] ; tail
0F4D jne exit
0F4F jmp 0E14h
On exit it restores the ROM 8x16 font, returns to mode 3, makes the cursor reasonable again, restores CRTC split bits, and returns to the caller:
0F52 mov ax,1104h
0F55 int 10h ; reload ROM 8x16 font
0F57 mov ax,0003h
0F5A int 10h ; text mode
0F5C mov ax,1202h
0F5F mov bl,30h
0F61 int 10h
0F63 mov ah,01h
0F65 mov cx,0D0Eh
0F68 int 10h ; cursor shape
...
0F96 ret
PC Speaker Tail
After the main VGA text loop returns, startup calls C762h. This is a
timer-interrupt PC speaker player plus a final text screen.
Setup:
C762 in al,61h
C764 and al,0FCh
C766 mov cs:[C803h],al ; speaker off state
C76A or al,02h
C76C mov cs:[C80Ch],al ; speaker bit enabled state
C770 push cs
C771 pop ds
C772 mov si,B7C6h
C775 mov ax,0B800h
C778 mov es,ax
C77A xor di,di
C77C mov cx,07D0h
C780 rep movsw ; copy 4000-byte final text screen
C782 call C79Bh ; install timer ISR
C785 cmp byte cs:[C792h],01h
C78B jne C785h ; wait until ISR finishes sample
C78D ret
C79B installs an INT 08h handler at C801h, stores the old vector, and
programs the PIT:
C7C5 mov word cs:[C79Dh],0000h
C7CC xor ax,ax
C7CE mov ds,ax
C7D0 mov si,0020h ; old INT 08h vector
C7D3 lea di,[C795h]
C7DA movsw
C7DB movsw
...
C7E2 mov di,0020h
C7E5 mov ax,C801h
C7E9 stosw
C7EA mov ax,cs
C7EC stosw
C7ED mov al,36h
C7EF out 43h,al
C7F1 mov ax,0078h
C7F5 out 40h,al
C7F9 out 40h,al
The programmed divisor is 0078h = 120, giving approximately 9,943.183 IRQs
per second from the 1.193182 MHz PIT input. Since the handler emits one packed
bit per IRQ and reloads after eight, its byte cadence is about 1,242.898 bytes
per second. This is a one-bit stream driven through speaker port 61h, not PIT
channel-2 frequency synthesis.
The handler consumes one bit per interrupt. It shifts the current sample byte
left, writes port 61h, and reloads the next byte every eight interrupts:
C7FD push ax
C7FE mov al,11h
C800 shl byte cs:[C79Ch],1
C805 jb bit_one
C807 mov al,11h ; patched/off-state byte in packed copy
bit_one:
C809 out 61h,al
C80B dec byte cs:[C79Bh]
C810 je next_byte
...
C84C push si
C84D push ds
C84E inc word cs:[C793h]
C853 mov si,cs:[C793h]
C858 push cs
C859 pop ds
C85A lodsb
C85B mov cs:[C79Ch],al
C85F mov byte cs:[C79Bh],08h
C865 cmp si,cs:[C799h]
C86A ja finished
It also repairs the BIOS time-of-day tick when enough high-rate interrupts have accumulated:
C812 mov ax,0000h ; patched accumulator step
C815 add cs:[C79Dh],ax
C81A jc bios_tick
...
bios_tick:
C824 xor ax,ax
C826 mov ds,ax
C828 mov si,046Ch
C82B add word [si],1
C82E adc word [si+2],0
Setup patches the displayed zero placeholder to accumulator increment 0078h,
the same value as the PIT divisor. The carry rate is therefore
9,943.183 * 120 / 65,536 = 18.2065 Hz, closely reproducing the normal BIOS
tick while the old INT 08h vector is not chained. The repair updates the
doubleword at 0040:006Ch directly and applies the usual 0018:00B0h
midnight wrap, but it does not set the BIOS midnight-rollover flag at
0040:0070h.
At sample end, it restores the PIT divisor to zero, restores the old INT 08h
vector, sets the done flag at C792h, and returns through the normal IRQ
acknowledge path.
What The Parts Do
Dunno is not a graphics-mode bitmap demo. Its trick is squeezing VGA hardware
motion out of the text adapter:
EXEPACK wrapper keeps the tiny program and its large tables small.
VGA probe rejects non-VGA systems before touching CRTC/AC state.
Font copy/load turns text cells into controllable visual blocks.
Frame table builder pre-expands 16 logo/member text panels.
Horizontal panning gives the scroller pixel movement between cell shifts.
CRTC start/compare splits and wraps text memory for page-like motion.
Overscan loop 210 beam-timed rows and a 209-frame phase ring.
Keyboard-buffer poll avoids BIOS call overhead in the per-frame loop.
Timer speaker tail 9.943 kHz one-bit stream with direct BIOS-tick repair.
For April 1990 PC code, the interesting part is not only the content but the choice of battlefield: it stays in 80x25 text mode and still uses VGA-only features that many later demos would use in graphics modes.


