Analysis model: gpt-5.5 xhigh, sol high

Last edited: 2026-08-25

Nope by Sorcerers - Technical Dissection

Nope is a 1990 MS-DOS intro/demo by Sorcerers. The Hornet 1990 demo index lists nope.zip as Nope by Sorcerers, and the archive timestamp for NOPE.EXE is 1990-03-18.

Release year: 1990

It is a much stranger companion to Dunno: it starts with a small shooting game, installs a keyboard interrupt trap, creates a file in the DOS root, uses text-mode proportional scrollers, and drives a one-bit PC speaker stream through a high-rate timer ISR.

The large scrollers include old private contact details. Those lines are deliberately not reproduced here.

Reconstructed Nope still

The image above is reconstructed from public on-screen strings and the text mode state implied by the code. It is not a raw DOSBox screenshot.

Runtime Capture

I ran the original NOPE.EXE under DOSBox-X 2026.01.02 in two ways. First, a short no-input DX-CAPTURE session documents the opening gate without interference. Second, a keyed run used repeated AUTOTYPE lctrl/lalt pulses to fire through the gate; that confirms the success path rather than leaving the later code as a purely static disassembly claim.

The gate is better shown as motion than as a still. The short GIF below is from the keyed run: the lamer marker sweeps across the text page, the vertical projectile column appears when Ctrl/Alt is caught by the BIOS flag poll, and the success message appears after the hit.

Animated Nope gate playthrough showing the moving lamer, projectile column, and success message

Timestamp Frame Runtime context
00:01.000 Nope runtime frame at 00:01.000 showing the blue shooting gate instructions The gate has drawn its blue text-mode playfield, horizontal divider, Fox marker, target marker, and instruction text. This is the direct B800h game loop described below.
00:05.000 Nope runtime frame at 00:05.000 showing the target moved toward the left edge With no input, the target continues moving while the player marker stays near the center. The frame proves the gate is live, not a static instruction page.
00:12.000 Nope runtime frame at 00:12.000 showing a later target position above the divider A later no-input phase shows the target at another position while the instruction area remains unchanged. The later main scroller parts require winning this gate and a follow-up keypress.
keyed run Nope runtime success frame showing Good work prompt after the gate is beaten The repeated Ctrl/Alt pulse run reaches Good work! Press any key to continue., proving the AL=1 branch out of 0061h and the B1D8h success-message path.

Sources

Archive

The examined archive is nope.zip from the Hornet mirror:

nope.zip      17921 bytes
NOPE.EXE      28671 bytes  1990-03-18 20:29

Hashes:

ada7314fcc0f3d07a6e0e179383a404173bb6a7c2f28b3734456b446489080ad  nope.zip
c4a3a81e392c0ca3f633d2f5800dfb1d83d0c5153f0f0b6d52192e79a67fe218  NOPE.EXE

Executable Shape

NOPE.EXE is an MZ executable:

file size       28671 bytes
declared size   28671 bytes
header size       512 bytes
loaded image    28159 bytes
relocations         0
entry           06CB:0012
stack           0D9C:0080
min alloc       1732 paragraphs
max alloc       FFFFh

The entry is an EXEPACK-style unpacker, not the real program entry. The packed load image begins at file offset 0200h; the wrapper begins near load-image offset 6CC2h.

The useful stub metadata, relative to the packed stub segment, is:

copy length                 014Fh bytes
relocated unpacker segment  loadseg + 0D87h
source segment delta        0001h
stack after unpack          loadseg + 0D77h : 0100h
marker                      "RB"

The unpacker scans backward over FFh padding, then decodes a backward copy/fill stream. The two block classes are the familiar EXEPACK ones:

; DL = packed block tag, CX = byte count, direction flag is set
and  al,0FEh
cmp  al,0B0h
je   fill_block       ; read one byte, STOSB it CX times
cmp  al,0B2h
je   copy_block       ; MOVSB CX bytes
jmp  corrupt_file

The low bit of the tag marks the final block (B1h or B3h). A corrected real-mode decode gives:

blocks decoded      916
source range        0145h..6CA6h
destination range   0145h..D86Fh
final far jump      loadseg:0000
relocation entries  1
relocated word      7F9Fh, the data segment used by the first scroller

The easy unpacking mistake is LODSW under DF=1. The word is read from SI and SI+1, then SI is decremented by two. Reading the high byte from SI-1 makes the stream appear to decode but shifts important routines by several bytes and corrupts the keyboard polling helper at 0139h.

After correction, the tiny-model program is coherent: calls in the main entry land exactly on routine starts such as 7F5Dh, 8283h, B361h, and B965h.

The independently rebuilt MZ is 55,920 bytes with a 512-byte header. Its 55,408-byte load image hashes as:

d076bedef7f840ea32cfd30213b0716b380188b934bd3b2dfa6ef6d5122795b6  restored load image

That hash fixes the address space used below without making the unpacker's rewritten MZ header part of the code identity.

Runtime Timeline

This is partly interactive, so there is no single fixed effect timeline like a music-synced multipart demo. Timing zero below is DOS process start; everything after the game depends on the user's keys.

00:00  EXEPACK-style wrapper expands the program and jumps to loadseg:0000.
00:00  DESQview guard runs.
00:00  C:\SS.LGO is created if DOS permits it.
00:00  Cursor is hidden; speaker data is prepared while a DOS text message says
       to wait.
00:00  Custom INT 09h keyboard handler is installed.
00:00  Text-mode shooting gate appears. User must move Fox and shoot the lamer.
after win  success message is printed; a keypress advances to the first main
           proportional-scroller screen.
on key     the first scroller exits; the second text/logo screen starts with
           PC speaker playback and VU-style bars.
on key     timer and text mode are restored; program exits to DOS.

If the game is lost, the demo skips the two main visual parts and exits after printing the failure message.

Top-Level Control Flow

The corrected entry at 0000h is compact and readable:

0000 call 7F5D     ; DESQview guard
0003 call 8283     ; create/write C:\SS.LGO
0006 mov  ah,01h
0008 mov  cx,3201h
000B int  10h      ; hide cursor
000D call 7E94     ; prepare speaker stream, print wait message
0010 call B361     ; install custom INT 09h handler
0013 mov  ah,1Fh
0015 call 011C     ; clear B800h with attr 1Fh
0018 call B32A     ; draw game instructions
001B call 0061     ; play the gate game
001E call B1D8     ; print success/failure text
0021 or   al,al
0023 je   0052     ; failure path: restore and exit
0025 call 0139     ; flush pending key
0028 call 0134     ; wait for key
002B mov  ah,04h
002D call 011C
0030 call 7F99     ; first proportional scroller
0033 call 0139
0036 mov  ah,07h
0038 call 011C
003B call B37B     ; restore old INT 09h
003E call 7D8A     ; install high-rate timer/speaker ISR
0041 call B965     ; copy prepared text screen from CS:84EEh
0044 call B93B     ; second text/logo loop
0047 call 7E73     ; restore timer vector/PIT
004A call 0139
004D mov  ah,1Fh
004F call 011C
0052 call B37B     ; harmless second restore if already restored
0055 mov  ah,01h
0057 mov  cx,0607h
005A int  10h      ; restore cursor shape
005C mov  ax,4C00h
005F int  21h

The helpers at 0134h and 0139h are simple BIOS keyboard waits:

0134 xor  ah,ah
0136 int  16h
0138 ret

0139 mov  ah,01h
013B int  16h      ; key pending?
013D jne  0140
013F ret
0140 call 0134     ; consume it
0143 jmp  0139

DESQview Guard

The guard at 7F5Dh uses the DESQview API probe:

7F5D mov  cx,4445h  ; "ED" in register order
7F60 mov  dx,5351h  ; "QS"
7F63 mov  ax,2B01h
7F66 int  21h
7F68 cmp  al,0FFh
7F6A jne  not_plain_dos
7F6C ret

If the call does not return AL=FFh, the program prints Can't run under DESQview! and exits. It is protecting direct video, timer, and keyboard interrupt code from a multitasker that would virtualize or intercept those devices.

File Side Effect

Routine 8283h creates a file named C:\SS.LGO and writes 0241h bytes from the program image:

8283 push cs
8284 pop  ds
8285 mov  ah,3Ch
8287 xor  cx,cx
828A mov  dx,82A3h      ; "C:\SS.LGO"
828D int  21h           ; create
828F jb   82A2          ; ignore failure
8291 mov  bx,ax
8293 mov  ah,40h
8295 mov  cx,0241h
8299 mov  dx,82ADh
829C int  21h           ; write payload
829E mov  ah,3Eh
82A0 int  21h           ; close
82A2 ret

The failure path is silent, so a DOS setup where root-directory creation is blocked does not stop the demo. The payload looks like text/character art data, not an executable child process.

Text Clear and Text Writer

The clear helper at 011Ch fills all 80x25 text cells:

011C push es
011D push di
011E push cx
011F pushf
0120 mov  cx,0B800h
0123 mov  es,cx
0125 xor  di,di
0127 mov  al,20h
0129 mov  cx,0FA0h      ; 4000 bytes / 2
012C cld
012D rep  stosw         ; AL = space, AH = caller-selected attribute
012F popf
0130 pop  cx
0131 pop  di
0132 pop  es
0133 ret

The small writer at B34Fh prints zero-terminated strings into text memory without touching attributes:

B34F push cs
B350 pop  ds
B351 mov  ax,0B800h
B354 mov  es,ax
B356 cld
B357 lodsb
B358 or   al,al
B35A je   done
B35C stosb             ; character byte
B35D inc  di           ; skip attribute byte
B35E jmp  B357
B360 ret

This is why the program can set the whole screen's color once with 011Ch, then draw only character bytes for instructions, messages, and the fake reset screen.

The Gate Game

The game starts at 0061h. It is not a separate engine; it is one tight loop over B800h, BIOS keyboard flags, and the BIOS tick counter.

Setup:

0061 mov ax,0B800h
0064 mov es,ax
0066 xor ax,ax
0068 mov ds,ax
006A mov al,[046Ch]    ; BIOS tick low byte
006D push ax
006E mov di,07D0h      ; Fox position; immediate word is later mutated
0071 mov byte [es:di],01h
0075 mov byte [es:di-2],20h
007A mov byte [es:di+2],20h
007F mov di,0000h      ; lamer position; immediate word is later mutated

Two positions are stored as self-modifying immediates:

CS:006F  current Fox position, initially 07D0h
CS:0080  current lamer position, initially 0000h

The lamer is placed first. If the current lamer location is not a space, the player failed:

0082 cmp byte [es:di],20h
0086 je  free
0088 jmp failure
008B mov byte [es:di],0Fh

Movement does not use BIOS keystrokes. It reads the BIOS keyboard flag byte at 0040:0417:

008F test byte [0417h],0Ch  ; Ctrl or Alt: fire
0094 jne  fire
0096 test byte [0417h],02h  ; left shift
009B jne  move_left
009D test byte [0417h],01h  ; right shift
00A2 jne  move_right

The Fox is bounded between text offsets 0782h and 081Ch, stepping by two bytes so only character cells are addressed:

00A6 cmp word [cs:006Fh],0782h
00AD je  no_move
00AF sub word [cs:006Fh],2

00B7 cmp word [cs:006Fh],081Ch
00BE je  no_move
00C0 add word [cs:006Fh],2

Firing checks twelve rows above the Fox. One row in 80-column text mode is A0h bytes, so each projectile step subtracts A0h:

00C8 mov cx,000Ch
00CB mov di,[cs:006Fh]
00D0 sub di,00A0h
00D4 cmp byte [es:di],20h
00D8 jne hit
00DA mov byte [es:di],18h
00DE loop 00D0

The projectile is removed after the next BIOS tick:

00E0 pop  ax
00E1 cmp  al,[046Ch]
00E5 je   00E1          ; wait for tick change
00E7 mov  cx,000Ch
00EA mov  di,[cs:006Fh]
00EF sub  di,00A0h
00F3 mov  byte [es:di],20h
00F7 loop 00EF

Whether the player moves or fires, the loop paces itself from the same BIOS tick byte. At the end of a non-hit frame it erases the old lamer position, advances the lamer by one cell, and restarts:

0102 mov di,[cs:0080h]
0107 mov byte [es:di],20h
010B add word [cs:0080h],2
0111 jmp 006A

The return value controls the whole demo:

0114 xor al,al
0117 ret       ; failure

0118 mov al,1
011B ret       ; projectile hit

The gate's direct-video workload is small enough to state exactly. A normal no-input tick writes the Fox byte and its two neighboring spaces, draws the lamer byte, then erases that lamer byte before advancing it: five B800h character-byte writes. A complete missed shot adds twelve projectile writes and twelve clears, raising that iteration to 29 writes. A hit exits immediately on the first non-space cell, so it leaves both the already drawn projectile prefix and the current lamer marker in place for the success screen; it does not run the twelve-cell clear loop. All of these stores skip attributes. The BIOS tick wait therefore gates object motion at about 18.2 updates per second without rebuilding the 4,000-byte text page.

The success/failure message routine at B1D8h prints one of two strings at text offset 0988h. It preserves AL so the top-level branch can still decide whether to continue.

The keyed DOSBox-X capture exercises this exact path. The no-input stills show the lamer moving because 010B mutates CS:0080; the GIF shows the vertical shot column generated by the 00C8 loop; and the success still shows that the collision branch returned AL=1 rather than falling into the failure/exit path. That makes the interactive opener part of the demo structure, not just a curiosity in front of the scrollers.

Keyboard Trap

B361h installs a custom INT 09h handler:

B361 push cs
B362 pop  ds
B363 mov  ax,3509h
B366 int  21h
B368 mov  [cs:B38Dh],bx
B36D mov  [cs:B38Fh],es
B372 mov  ax,2509h
B375 mov  dx,B391h
B378 int  21h
B37A ret

The restore routine at B37Bh restores the saved vector through DOS function 2509h.

The handler only steals Ctrl/Alt/Delete. Otherwise it jumps to the original INT 09h handler:

B391 sti
B392 push ds
B393 push ax
B394 xor  ax,ax
B396 mov  ds,ax
B398 test byte [0417h],0Ch   ; Ctrl or Alt down?
B39D je   chain
B39F in   al,60h
B3A1 cmp  al,53h             ; Delete scan code?
B3A3 jne  chain

If the combination is seen, it acknowledges the keyboard through port 61h, switches to text mode, clears the screen, prints a fake Commodore 64 BASIC screen, positions/hides the cursor, disables interrupts, and loops forever:

B3A5 cli
B3A6 in   al,61h
B3A8 mov  ah,al
B3AA or   al,80h
B3AC out  61h,al
B3AE xchg ah,al
B3B0 out  61h,al
B3B2 mov  ax,0001h
B3B5 int  10h
B3B7 mov  ax,0500h
B3BA int  10h
B3BC mov  ah,13h
B3BE call 011Ch
...
B3EC cli
B3ED jmp  B3ED

The printed strings are:

**** COMMODORE 64 BASIC V2 ****
64K RAM SYSTEM  38911 BASIC BYTES FREE
READY.

That trap is why the scroller hints that resetting during the game is worth trying. It is not a reboot; it is an intentional dead-end joke.

First Proportional Scroller

The first main visual part begins at 7F99h. It sets ES=B800h and, after EXEPACK relocation, sets DS=loadseg+0B97h, a data-window segment into the same loaded program image:

7F99 mov ax,0B800h
7F9C mov es,ax
7F9E mov ax,loadseg+0B97h
7FA1 mov ds,ax

The loop exits when BIOS says a key is pending:

7FAB mov ah,01h
7FAD int 16h
7FAF je  no_key
7FB1 jmp 80BEh

It maintains two independent proportional text streams. Their state words live in the relocated data segment:

1646h  current column in upper glyph
164Ah  width of current upper glyph
164Eh  output-column cursor for upper glyph
1655h  index into upper text stream at 0D5Ah

1648h  current column in lower glyph
164Ch  width of current lower glyph
1650h  output-column cursor for lower glyph
1657h  index into lower text stream at 1336h

When the upper stream needs a new glyph:

7FBB mov di,[1655h]
7FBF mov cl,[di+0D5Ah]   ; next character
7FC3 cmp cl,0
7FC6 jne got_char
7FC8 mov byte [0D5Ah],0
7FCD xor di,di
7FD0 mov cl,40h          ; wrap marker '@'
7FD2 inc di
7FD3 mov ax,0037h
7FD6 sub cl,20h
7FD9 mul cx              ; glyph record = (char - 20h) * 37h
7FDB mov si,ax
7FDD mov bl,[si+8]       ; proportional width
7FE1 mov [164Ah],bx
7FE5 mov word [1646h],0
7FEB mov [1655h],di

Then it copies 37h bytes of glyph data into a staging buffer at 1D91h:

7FEF inc si
7FF0 xor di,di
7FF3 mov bl,[si+8]
7FF7 mov [di+1D91h],bl
7FFB inc si
7FFC inc di
7FFD cmp di,0037h
8000 jne 7FF3

The lower stream repeats the same logic with its own text pointer and staging buffer at 1DC7h.

Scrolling Existing Columns

80BFh shifts the upper six-row text band left. Instead of using large absolute DI values, it changes the segment to a convenient alias of B800h:

80BF push ds
80C0 mov  ax,0B80Ah
80C3 mov  es,ax
80C5 mov  ds,ax
80C7 mov  si,0002h
80CA mov  di,0000h
80CD mov  cx,0006h
80D0 call 811Bh
80D3 add  si,2
80D6 add  di,2
80D9 loop 80D0
80DB pop  ds
80DC ret

811Bh copies 4Fh character bytes while skipping the interleaved attribute bytes:

811B push cx
811C mov  cx,004Fh
811F cld
8120 movsb
8121 inc  di
8122 inc  si
8123 loop 8120
8125 pop  cx
8126 ret

The lower band uses the same helper from segment alias B8BEh.

Injecting New Glyph Columns

8133h emits the next upper glyph column into six screen rows. The offsets are A0h bytes apart, which is one 80-column text row:

8148 mov al,[si+1D91h]
814C mov [es:013Eh],al
8150 mov al,[si+1D9Ah]
8154 mov [es:01DEh],al
8158 mov al,[si+1DA3h]
815C mov [es:027Eh],al
8160 mov al,[si+1DACh]
8164 mov [es:031Eh],al
8168 mov al,[si+1DB5h]
816C mov [es:03BEh],al
8170 mov al,[si+1DBEh]
8174 mov [es:045Eh],al

The lower injection routine at 817Dh writes to 0C7Eh, 0D1Eh, 0DBEh, 0E5Eh, 0EFEh, and 0F9Eh.

Background and Bar Motion

The proportional text is not the only thing moving. Three small routines update other text-mode bands:

This is all text mode. The smoothness comes from byte-moving character columns inside B800h, not from VGA graphics mode or hardware scrolling.

One unpaced steady iteration has a fixed text-memory ledger. The upper and lower six-row shifts each copy 6*79 = 474 character bytes. The middle-table pass writes eight 80-byte rows (640 bytes), the edge pass writes six bytes and reverse-copies another 474, and the seven-row bottom pattern writes 7*80 = 560 bytes. That is 2,628 mandatory B800h writes. Each proportional stream can also inject six new right-edge bytes, giving a range of 2,628..2,640 writes per iteration; the three copy passes account for 1,422 matching B800h reads. There is no retrace or BIOS-tick wait in 7F99h: after the one keyboard-ready probe, the loop runs at CPU/memory speed. A new character additionally causes a 55-byte glyph record to be copied into that stream's conventional-memory staging buffer, but it does not change the screen-write bound.

PC Speaker Preparation

7E94h first prints the DOS text wait message:

7E94 push cs
7E95 pop  ds
7E96 mov  ah,09h
7E98 mov  dx,7F3Fh      ; "Please wait a moment..."
7E9B int  21h

Then it prepares the one-bit speaker stream. There are three source streams:

2060h..3F6Eh
3F6Eh..5E7Ch
5E7Ch..7D8Ah

For 1F0Fh bytes, it ORs the three streams into the playback stream at 0145h:

7EAB mov cx,1F0Fh
7EAE mov bx,cx
7EB0 dec bx
7EB1 mov al,[cs:bx+5E7Ch]
7EB6 or  al,[cs:bx+3F6Eh]
7EBB or  al,[cs:bx+2060h]
7EC0 mov [cs:bx+0145h],al

It also converts each source byte into a popcount value with 7EF1h:

7EF1 mov cx,0008h
7EF4 xor ah,ah
7EF6 shr al,1
7EF8 adc ah,0
7EFB loop 7EF6
7EFD ret

Those popcounts are later used by 7EFEh to draw three horizontal activity bars for the speaker data.

The preparation pass runs exactly 7,951 times. Per source position it reads the three channel bytes once to form the OR-combined stream, reads all three a second time for popcount conversion, writes one combined byte, and overwrites the three channel bytes with their counts. The total is therefore 47,706 source-byte reads, 31,804 writes, and 190,824 executions of the inner SHR/ADC bit-count step. This is startup work done before INT 08h is replaced, not recurring mixer work in the visual loop.

The three nominal source ranges share their endpoints at 3F6Eh and 5E7Ch. Because the loop runs backward and overwrites channels with popcounts, its final BX=0 iteration sees those two boundary bytes after the earlier high-end conversions, not in their original bitstream form. That quirk affects the first combined byte at 0145h; it is part of the released preprocessing order rather than three perfectly independent arrays.

Timer ISR and One-Bit Playback

7D8Ah installs the playback interrupt. It initializes the stream pointer at 0145h, saves the old INT 08h vector, and reprograms the PIT:

7D8A push cs
7D8B pop  ds
7D8C mov  si,0145h
7D8F mov  [cs:2054h],si
7D94 lodsb
7D95 mov  [cs:205Dh],al
7D99 inc  word [cs:2054h]
7D9E mov  ax,0078h
7DA1 mov  [cs:7E02h],ax  ; patches ISR fractional increment / PIT reload
7DA5 add  si,1F0Eh
7DA9 mov  [cs:205Ah],si  ; end pointer
7DAE mov  byte [cs:205Ch],8
7DB4 mov  word [cs:205Eh],0
...
7DD4 mov  ax,7DECh
7DD7 cli
7DD8 stosw              ; IVT offset
7DD9 mov  ax,cs
7DDB stosw              ; IVT segment
7DDC mov  al,36h
7DDE out  43h,al
7DE0 mov  ax,[cs:7E02h] ; 0078h
7DE4 out  40h,al
7DE6 mov  al,ah
7DE8 out  40h,al
7DEA sti

0078h as a PIT divisor gives 1193182 / 120 = 9943.1833 interrupts per second. Since the ISR consumes one bit per interrupt, the byte stream advances at about 1,242.898 bytes per second.

The ISR at 7DECh shifts out one bit at a time:

7DEC push ax
7DED mov  al,patched_off_state
7DEF shl  byte [cs:205Dh],1
7DF4 jb   output
7DF6 mov  al,patched_on_state
7DF8 out  61h,al
7DFA dec  byte [cs:205Ch]
7DFF je   next_byte

The two mov al,imm8 immediates are patched by 7E94h from the original port 61h value. That preserves unrelated bits and only changes the speaker-control state needed by the sample.

The ISR also patches 7E02h so this instruction becomes mov ax,0078h:

7E01 mov ax,0078h
7E04 add [cs:205Eh],ax
7E09 jb  update_bios_tick

On accumulator carry, it manually advances the BIOS tick counter at 0040:006Ch. That compensates for replacing the normal 18.2 Hz timer interrupt with the much faster speaker interrupt.

When eight bits have been consumed, it loads the next byte:

7E3D inc  word [cs:2054h]
7E42 mov  si,[cs:2054h]
7E47 push cs
7E48 pop  ds
7E49 lodsb
7E4A mov  [cs:205Dh],al
7E4E mov  byte [cs:205Ch],8
7E54 cmp  si,[cs:205Ah]
7E59 ja   wrap_to_start

7E73h restores the original PIT mode and old INT 08h vector.

There is a subtle pointer boundary in that byte loader. Setup loads byte 0145h, then records 2054h = 0146h. On the first byte rollover the ISR increments that pointer again before LODSB, so prepared byte 0146h is never played. It then consumes 0147h..2053h; the attempted read at 2054h is detected after LODSB and immediately replaced by a reload of 0145h. Thus the 7,951-byte prepared buffer has a 7,950-byte audible cycle, lasting about 6.39634 seconds, with one generated byte permanently skipped. The VU reader uses the stored pointer directly, so during the wrapped first byte it shows the skipped byte's popcounts while the speaker is actually shifting byte 0145h; the two are aligned again for the rest of the cycle.

The accumulator repair is exact in the long-term average: adding 120 on each divisor-120 interrupt carries at 9943.1833*120/65536 = 18.206512 Hz, the normal BIOS timer rate. On carry the ISR increments 0040:006Ch and wraps it at 0018:00B0h, but it never sets the BIOS midnight-rollover flag at 0040:0070h. Cleanup restores PIT channel 0 and the old vector, but it does not write port 61h; bits 0..1 remain in the last patched off/on state rather than being restored from the original latch byte.

Speaker Bars

7EFEh is called from the second visual loop. It reads the current byte index from 2054h, then uses three popcount tables to draw activity bars:

7EFE xor cx,cx
7F00 mov di,0010h
7F03 mov bx,[cs:2054h]
7F08 mov ah,[cs:bx+1F1Bh]
7F0D call 7F27
7F10 mov di,00B0h
7F13 mov ah,[cs:bx+3E29h]
7F18 call 7F27
7F1B mov di,0150h
7F1E mov ah,[cs:bx+5D37h]
7F23 call 7F27

7F27h draws AH copies of character FEh, then pads with spaces until AH reaches 9:

7F27 mov cl,ah
7F29 or  cx,cx
7F2B je  pad
7F2D mov al,0FEh
7F2F stosb
7F30 inc di
7F31 loop 7F2F
7F33 mov al,20h
7F35 stosb
7F36 inc di
7F37 inc ah
7F39 cmp ah,09h
7F3C jne 7F35

This creates three small VU-style bars in text mode, synchronized to the same bitstream that drives the speaker.

Each helper call writes exactly nine character bytes regardless of popcount: 0..8 block bytes followed by enough spaces to reach nine. The three bars therefore cost a fixed 27 B800h writes on every second-screen tick, with no attribute writes.

Second Text/Logo Loop

After the first scroller exits, B965h copies a prepared 4000-byte text screen from CS:84EEh to B800:0000:

B965 mov ax,0B800h
B968 mov es,ax
B96A push cs
B96B pop  ds
B96C xor di,di
B96E mov si,84EEh
B971 mov cx,0FA0h
B974 rep movsb
B976 ret

That template includes labels such as Melody:, Bass:, and Drums: plus block-character art. The loop at B93Bh then updates both the scripted text and the speaker bars once per BIOS tick:

B93B xor ax,ax
B93D mov ds,ax
B93F mov al,[046Ch]
B942 push ax
B943 mov ax,0B800h
B946 mov ds,ax
B948 mov es,ax
B94A call B7C8       ; scripted text renderer
B94D call 7EFE       ; speaker bars
B950 xor ax,ax
B952 mov ds,ax
B954 pop ax
B955 test byte [0417h],0Fh
B95A jne done
B95C cmp al,[046Ch]
B960 je  B95C
B962 jmp B93F

The loop exits when any of the low four BIOS keyboard-flag bits are set.

Scripted Text Renderer

The second text renderer begins around B7C8h. It is a compact bytecode interpreter for a large text stream at CS:948Eh.

State lives in and around B7BCh:

B7BC  flags
B7BD  current text attribute
B7BE  stream index
B7C0  glyph column index
B7C2  clear/blanking counter
B7C3  destination pointer in B800h
B7C5  source pointer in B800h

Bytes below 20h are commands:

00h  reset stream index to zero
01h  toggle bit-reversal / mirror flag
02h  toggle an animation flag used by the clear path
03h  load a new text attribute from the following byte
04h  load a clear-count value from the following byte
05h  start a row-blanking animation
06h  toggle inverse-video rendering

Printable characters go through an 8-byte font at B444h:

B8AA sub al,20h
B8AC xor ah,ah
B8AE shl ax,1
B8B0 shl ax,1
B8B2 shl ax,1              ; (char - 20h) * 8
B8B4 mov bx,[cs:B7C0h]     ; current glyph column
B8B9 add bx,ax
B8BB mov al,[cs:bx+B444h]  ; one 8-pixel font column

If the mirror flag is set, the byte is bit-reversed:

B8C0 test byte [cs:B7BCh],1
B8C6 je   not_mirrored
B8C8 mov  cx,8
B8CB mov  dl,al
B8CD shr  dl,1
B8CF rcl  al,1
B8D1 loop B8CD

Before drawing the new column, it scrolls an 8-row text area left by copying 9Eh bytes per row. DS and ES are both already B800h:

B8D3 mov di,[cs:B7C3h]
B8D8 mov si,[cs:B7C5h]
B8DD mov cx,8
B8E0 mov bx,cx
B8E2 mov cx,009Eh
B8E5 rep movsb
B8E7 add di,2
B8EA add si,2
B8ED mov cx,bx
B8EF loop B8E0

Then it draws the new column at the right edge. A set bit becomes DBh; a clear bit becomes a space. The attribute byte comes from B7BDh.

B8FB mov si,[cs:B7C3h]
B900 add si,009Eh
B904 mov bl,20h
B906 mov bh,0DBh
B908 mov ah,[cs:B7BDh]
B90D mov cx,8
B910 shr al,1
B912 jae space
B914 mov [si],bh
B916 jmp attr
B918 mov [si],bl
B91A mov [si+1],ah
B91D add si,00A0h
B921 loop B910

After eight columns, it advances to the next script byte:

B923 inc word [cs:B7C0h]
B928 cmp word [cs:B7C0h],8
B92E jne done
B930 inc word [cs:B7BEh]
B935 mov [cs:B7C0h],cx

This part is therefore a software text-mode column renderer: it treats font columns like tiny bitplanes, shifts an 8-row window, and injects one new column per frame.

On a normal printable-column tick, the eight REP MOVSB rows copy 8*158 = 1,264 bytes inside B800h, then the right-edge writer stores eight character/attribute pairs (16 writes). Adding the fixed 27 VU-bar characters gives 1,307 text-memory writes and 1,264 text-memory reads per BIOS-tick iteration. Script command 05h takes a different eight-step blanking route: successive ticks zero 160*n-1 bytes for n=1..8, or 5,752 bytes over the whole wipe, while the bars continue to update. Unlike the first scroller, the outer B93Bh loop explicitly waits for the BIOS tick byte to change after each iteration.

What Each Part Does

The important overall pattern is that Nope is not primitive because it is text mode. It uses text memory as a byte-addressable framebuffer, mutates code operands as state, aliases B800h through nearby segments to simplify scroll copies, and treats the PC speaker stream as both sound data and visualizer input.

Runtime-To-Code Concordance

The media set is one reconstructed still plus a DOSBox-X no-input gate capture, a keyed gate playthrough GIF, and a success frame. This pass does not recapture, crop, pad, resize, regenerate, or alter those assets. The later proportional scrollers and speaker screen are not shown as direct runtime frames here, so their mapping is from corrected static disassembly and the reconstructed still, not from a claimed full post-gate video timeline.

Visual evidence Code evidence What it means
Reconstructed still Public-safe on-screen strings plus text-mode primitives 011Ch and B34Fh The still summarizes the text-mode layout without republishing private contact lines or pretending to be a raw screenshot.
00:01.000 blue gate instructions Top-level entry calls B32A to draw instructions, then 0061h starts the gate; ES=B800h and BIOS tick byte 0040:046Ch pace the loop The opening is an actual text-mode game state, not a static title card.
00:05.000 and 00:12.000 moving target frames Self-modifying lamer position immediate at CS:0080, advanced by 010B, and Fox position immediate at CS:006F The target motion visible in no-input frames is direct evidence of the mutable in-code positions.
Keyed gate playthrough GIF BIOS keyboard flag byte 0040:0417 polling, Ctrl/Alt fire path at 00C8, 12-row projectile loop, and collision return AL=1 The GIF proves the success branch through the interactive gate, not just the existence of a disassembled collision routine.
Runtime success frame B1D8h prints the success/failure message while preserving AL for the top-level branch Reaching Good work! confirms the demo can continue past the gate when the shot hits.
Ctrl/Alt/Delete fake reset behavior described by the article INT 09h install at B361h, handler at B391h, port 60h Delete scan check, port 61h keyboard acknowledge, text-mode fake C64 screen, and infinite loop The reset joke is an interrupt trap, not an emulator artifact or DOS reboot.
First main proportional scroller represented by the reconstructed article still 7F99h, two text streams, glyph staging buffers 1D91h / 1DC7h, 80BFh / 811Bh column shifts, and 8133h / 817Dh injection routines The first post-gate visual is a software proportional text-mode scroller using B800h as a framebuffer.
Speaker-preparation and VU-bar explanation 7E94h OR-combines three one-bit streams, 7EF1h builds popcounts, 7D8Ah installs high-rate INT 08h, 7DECh shifts bits to port 61h, and 7EFEh draws bars The PC speaker data is both audio and visualizer input; the bars are derived from the same stream.
Second text/logo screen described by the article B965h copies the prepared 4000-byte template from CS:84EEh; B93Bh runs the loop; B7C8h interprets bytecode at CS:948Eh The second screen is a scripted text-mode renderer, not plain scrolling DOS text.
Corrected EXEPACK decode boundary Backward B0/B2 stream correction, final far jump to loadseg:0000, and relocated word 7F9Fh The routine addresses used above depend on the corrected decode; the earlier off-by-one LODSW interpretation would corrupt the map.

The result is a coherent runtime/code story: the keyed GIF proves the interactive gate, the static analysis proves the two post-gate text-mode engines, and the timer/speaker routines explain why the later screen can mix one-bit audio with VU-style bars. The remaining visual gap is a full direct post-gate capture of the two scroller sections; the code evidence is already strong enough to map their mechanisms.