Analysis model: gpt-5.5 xhigh

Banana Split by Hitech - Technical Dissection

Scope

Banana Split is Hitech's MS-DOS fast intro from The Party 1994. The result file places it second in the PC fast intro competition:

PC FAST INTRO
     1     305      3  Weener                    P-Nut/Darkzone
     2     278      1  Banana Split              Hitech
     3     236      2  Darkzone                  Rune

Release year: 1994. Demozoo lists the production date as 30 December 1994; the archive's file stamps are from January 1995, which looks like a later fixed upload rather than the party release date.

Public references:

The analysis below is based on archive inspection, static MZ analysis, a DOSBox-X runtime capture, guest RAM carving, and disassembly of the recovered real-mode code. Old contact details and period text from the bundled notes are intentionally not copied here.

Examined Files

Archive:

7804491b1c3fd941ec1fc125bffe300381ba0323549914377ae6f0989c1fe035  bananspl.zip

Extracted files:

20f89a000700742373783ff12e72475374f1f739343750df46bca0e61c5346fd  BANANSPL.EXE
93ac8474b3fac37f5ae6c95cd85613ddecb06f9b4ae6fd9838b580ec0d30ed6e  BANANSPL.NFO
94534ece06cbeac642e8efaa6eb03221a9af3d9e73a85dce9f249db970e6303f  FILE_ID.DIZ
0fd9764f56d835e0f3dd6209737bce241881902e6aa3ead91f2d02ad9d34b1c0  scene.org.txt

The payload is tiny:

BANANSPL.EXE  7906 bytes   MZ executable
BANANSPL.NFO  1193 bytes   release note
FILE_ID.DIZ    414 bytes   short archive description
scene.org.txt  archive mirror note

There are no separate picture or music files. The visual data, text strings, HSC song data, HSC player, and code all live inside the executable image.

Executable Shape

The MZ header is plain, but the entry point is not the real intro. It is a small in-place decoder near the end of the file:

e_magic        5a4dh
e_cblp         00e2h
e_cp           0010h
e_crlc         0000h
e_cparhdr      0006h
e_minalloc     0ba8h
e_maxalloc     ffffh
e_ss:e_sp      01ach:07c2h
e_cs:e_ip      01ach:0000h
declared size  1ee2h bytes
header size    0060h bytes
entry offset   1b20h
relocations    0

The absence of relocations is important. The code is built so that its own data and far-call segments are known after DOS loads it. The loader does not need a relocation walk, and the intro can spend the saved bytes on tables and text.

The Entry Decoder

The executable's official entry at file offset 1B20h starts with a compact decoder. Its setup resolves to a word count of 01CAh and an output pointer of 002Eh relative to the entry segment:

push cs
pop  es
push ds
push cs
pop  ds
mov  di,7324h
sub  di,72f6h       ; DI = 002Eh
mov  dx,5760h
add  dx,aa6ah       ; DX = 01CAh

The loop then rewrites 458 words in place. For each word:

AH = rol8(AH, 1)
AX = AX + 2
AX = AX xor 6400h
AX = AX + 1
AX = AX xor 24f8h
AL = -AL

As Python-like logic:

ax = encrypted_word
al = ax & 0xff
ah = ax >> 8
ah = ((ah << 1) | (ah >> 7)) & 0xff
ax = ((ah << 8) | al)
ax = (ax + 2) & 0xffff
ax ^= 0x6400
ax = (ax + 1) & 0xffff
ax ^= 0x24f8
ax = (ax & 0xff00) | ((-ax) & 0xff)

This is not a compressor; it is an obfuscating tail decode. The real runtime image still contains generated data and self-used tables, so a useful dissection comes from catching the intro after the decode has run and the HSC player has been placed.

Runtime Capture And Segment Map

The runtime image was captured by running the intro in DOSBox-X, breaking the emulator under gdb, dumping core, and carving the guest RAM from the DOS MCB for the program block. The MCB name BANANSPL located the loaded image, and the guest linear image begins at physical 08240h.

Useful runtime map:

08240h  loaded code/data image start
08640h  HSC OBJ 1.4 far-call entry
08F40h  HSC/music data segment and scratch buffer
0B268h  HSC song data at 08F4:2328
0EA20h  visual data segment used as DS
0EA20:2397  first full-screen text-cell picture source
0EA20:42D7  second picture source
0EA20:1FAF  vertical strip/banner data
0EA20:529F  scroll text stream
B800:0000  text-mode screen memory

The code stores the key segments in its own low data words:

CS:0010 = 0EA2h   visual data segment
CS:0012 = B800h   text screen segment
CS:0014 = 08F4h   HSC segment and random-visit map

The signature string in the resident player is:

HSCOBJ 1.4 (C)93/94 by Chicken/ECR

That is the music side of the intro. Visually, the important conclusion is that Banana Split is not a chunky Mode 13h intro. It is a VGA text-mode intro using 80 by 50 cells, CP437 block characters, attribute bytes, BIOS font glyphs, and direct writes to B800:0000.

Top-Level Runtime Timeline

The decoded main flow at 8250h is short:

call 8516h          ; set text/VGA state and clear B800
int  10h, ax=1130h ; fetch BIOS font pointers
call 0864:0000      ; HSC init, AH=0

ds = [cs:0010]      ; 0EA2h
es = [cs:0012]      ; B800h
call 83C1h          ; first mirrored reveal

call 8516h          ; reset and clear the screen again
es = B800h
ds = 0EA2h
fs = 08F4h
bx = 0003h
call 846Dh          ; random full-screen fill
call 844Bh          ; 10-column vertical strip

main_loop:
    call 8508h      ; wait one video frame edge
    call 8584h      ; scroll buffer and maybe add a glyph
    if ax != 0: end_sequence
    call HSC tick   ; AH=1
    call 832Ah      ; side-column motion
    jump main_loop

end_sequence:
    call 849Fh      ; random clear
    call HSC tick
    int  10h        ; return to text mode
    set cursor
    call 8406h      ; shorter second reveal
    call HSC command 3
    wait 64 vblanks while ticking HSC
    call HSC command 2
    exit to DOS

The screen is never treated as a bitmap. Every visual operation is a write of text words:

low byte   CP437 character code, often a block character
high byte  VGA text attribute

This is why the intro can be flashy in under 8 KiB. A text cell gives it a character pattern and a color attribute for the price of two bytes, and the VGA hardware supplies the glyph expansion.

Runtime-To-Code Concordance

The DOSBox-X/gdb memory capture gives this article a runtime map rather than a frame sheet. That is enough to tie the visual sequence to code paths without inventing screenshots that were not produced.

The captured program block starts at physical 08240h. The active code path is the decoded entry at 8250h, not the on-disk tail decoder at 1B20h. From there, 8516h sets the VGA text-mode state and clears B800:0000; INT 10h AX=1130h fetches the BIOS font pointer used later by the scroller; and the far call 0864:0000 initializes the resident HSCOBJ 1.4 player.

The first visible phase is the mirrored text-cell reveal. Runtime CS:0010 points to visual segment 0EA2h, and the source page at 0EA20:2397 feeds routine 83C1h. That routine writes paired cells from the left and right edges into B800:0000, waiting through 8508h and ticking the HSC player between row steps. The end-section reveal is the same mechanism at 8406h, but with source 0EA20:42D7 and a shorter row count.

The second screen build is the random permutation fill. Routine 846Dh uses FS=08F4h as a 4000-byte visit map, rejects duplicate or out-of-range cell indices from 84E8h, and commits each accepted source word to the matching B800 cell. Routine 849Fh reuses the same idea for the exit clear, proving that the apparent disorder is deliberate address scheduling rather than an uninitialized-video accident.

The vertical/banner material is tied to 0EA20:1FAF through 844Bh, which copies a 10-cell strip one row per frame. The long scroller is tied to 0EA20:529F, the work buffer at 5444h, the eight-column countdown at 5442h, and the BIOS-font expansion loop at 861Fh. The side-column motion uses the HSC state query AH=7, table data around 5289h, and routine 832Ah to turn music/player state into small vertical text-cell chunks.

So the bounded runtime conclusion is: the capture proves a decoded 80x50 VGA text-mode runtime, with B800:0000 as the sole visible target; the recovered code explains the mirrored reveal, random fill/clear, strip copy, scroller glyph expansion, and HSC-driven side columns. No image or GIF is published for this pass because the useful evidence was a memory dump and disassembly, not a trustworthy video slice.

Text-Mode VGA Setup

Routine 8516h establishes the unusual text display:

8516: mov ax,0003h
      int 10h              ; text mode
      mov ax,1202h
      mov bl,30h
      int 10h              ; EGA/VGA alternate setup
      mov ax,1112h
      mov bx,2800h
      int 10h              ; load/select 8x8 text font
      ...
      mov es,[cs:0012]     ; B800h
      xor di,di
      mov cx,0fa0h         ; 4000 cells
      mov ax,0f20h         ; blank, bright white attribute
      rep stosw

0FA0h words is 4000 cells, i.e. 80 columns by 50 rows. The later code uses 0A0h bytes as the row stride, which is exactly 80 cells times two bytes.

After the clear it touches the VGA register ports:

mov dx,03cch
in  al,dx
and al,0f3h
sub dx,000ah       ; 03c2h
out dx,al
add dx,0002h       ; 03c4h
mov ax,0100h
out dx,ax
mov ax,0101h
out dx,ax
mov ax,0300h
out dx,ax
mov ax,1000h
mov bl,13h
int 10h

The visible result is still text memory, but with small font cells and altered VGA state. The intro gets a dense block-art canvas while keeping the cheap B800 address model.

Vertical Retrace Wait

All the visible reveal loops use 8508h:

8508: mov dx,03dah
850b: in  al,dx
      test al,08h
      je  850b      ; wait until retrace starts
8510: in  al,dx
      test al,08h
      jne 8510      ; wait until retrace ends
      ret

The routine waits for one full edge of the VGA status bit. It is not just a delay; it pins the row/cell updates to the display rhythm so that the reveal effects have a stable cadence and the AdLib tick can be interleaved without racing the video writes.

First Mirrored Reveal

Routine 83C1h draws the first full-screen source image from DS:2397h to B800. It reveals each row from both sides at once:

83c1: xor di,di
      mov bx,013eh       ; last word offset in an 80-cell row
      mov bp,0019h       ; 25 rows
row:
      push di
      push bx
      mov cx,0028h       ; 40 row steps
step:
      call 8508h

      mov ax,[di+2397h]  ; next left cell
      stosw
      mov ax,[di+2397h]  ; next left cell
      stosw

      mov ax,[bx+2397h]  ; next right cell
      mov es:[bx],ax
      sub bx,2
      mov ax,[bx+2397h]  ; next right cell
      mov es:[bx],ax
      sub bx,2

      call HSC tick
      loop step

      pop bx
      pop di
      add bx,0140h       ; next 80-cell row, right edge
      add di,0140h       ; next 80-cell row, left edge
      dec bp
      jne row
      ret

The address math is the entire effect. DI moves forward from the left side, BX moves backward from the right side, and both source and destination use the same cell offsets. Each inner pass writes four cells, two on each side. After 40 passes, the whole 80-cell row is filled. After 25 rows, the upper half of the 50-row text screen has been revealed.

Routine 8406h is the same loop with a different source offset and a shorter row count:

source  DS:42D7h
rows    000Ch
steps   0028h per row

That second reveal is used during the end section after the random clear.

Vertical Strip Copy

Routine 844Bh overlays a narrow repeated strip down the 50-row canvas:

844b: mov di,0008h       ; screen column 4
      mov si,1fafh       ; strip source
      mov bp,0032h       ; 50 rows
row:
      call 8508h
      mov cx,000ah       ; 10 cells
      push di
      rep movsw
      pop di
      add di,00a0h       ; next text row
      call HSC tick
      dec bp
      jne row
      ret

It is a simple 10-cell column at byte offset 8, but it is timed one row per frame and calls the HSC tick between rows. The visual result is not a raw blit dumped at once; it appears as a descending side element while the music keeps running.

Random Full-Screen Fill

Routine 846Dh is one of the classic inner loops in the intro. It fills all 4000 text cells in pseudo-random order:

846d: mov cx,0fa0h       ; 4000 cells
      xor bp,bp
next:
      inc bp
      and bp,01ffh
      jne no_wait
      call 8508h         ; every 512 accepted cells
no_wait:
      call 84E8h         ; random AX
      cmp ax,0fa0h
      jae no_wait        ; reject outside 0..3999
      mov di,ax
      cmp byte fs:[di],0
      jne no_wait        ; reject duplicate cell
      mov byte fs:[di],0ffh
      shl di,1
      mov ax,[bx+di]     ; BX is 3, so use source at DS:0003+cell*2
      stosw              ; write to B800 at the same offset
      call HSC tick
      loop next
      ret

FS points at the HSC/scratch segment, reused here as a 4000-byte visit map. The intro asks the random generator for a cell number, rejects out-of-range values, rejects cells already used, marks the chosen cell, doubles the index into a byte offset, fetches the source word, and writes it to the screen.

Two details matter:

  1. The visit map makes the reveal a true permutation. Every cell appears once.
  2. BX=3 biases the source pointer by three bytes, so the source text words are intentionally phase-shifted. This helps turn packed visual data into different-looking cell/attribute pairs without another stored copy.

Because each accepted cell also ticks HSC command AH=1, the visual fill and the music engine are interwoven. Even though the visual path is CPU-heavy from all the rejection sampling, the player keeps advancing.

Random Clear

Routine 849Fh is the same idea in reverse. First it clears the visit map:

mov es,[cs:0014]     ; 08F4h scratch segment
xor di,di
mov ecx,000007d0h    ; 2000 dwords = 8000 bytes
xor eax,eax
rep stosd

Then it visits 4000 cells in random order and writes zero words to B800:

mov es,[cs:0012]     ; B800h
mov cx,0fa0h
xor bp,bp
next:
    inc bp
    and bp,003fh
    jne no_wait
    call 8508h       ; every 64 accepted cells
no_wait:
    call 84E8h
    cmp ax,0fa0h
    jae no_wait
    mov di,ax
    cmp byte fs:[di],0
    jne no_wait
    mov byte fs:[di],0ffh
    shl di,1
    xor ax,ax
    stosw
    call HSC tick
    loop next

The only real differences from the fill are the clear value and the pacing. Waiting every 64 cells makes the wipe visibly chunkier and faster than the fill, which fits its role as a transition into the end reveal.

The 32-Bit Random Generator

Both random loops call 84E8h:

84e8: mov eax,41fbf0e7h
      mul dword ptr cs:[02c4h]
      add eax,00017b99h
      mov dword ptr cs:[02c4h],eax
      shr eax,0fh
      ret

This is a 386 real-mode linear congruential step using a 32-bit multiply and a 32-bit seed stored at CS:02C4h. The caller only needs AX, so shifting right by 15 exposes higher bits to the 16-bit caller.

The generator is not masked to 4000. Instead, the caller rejects AX >= 4000. That costs cycles, but it avoids modulo bias and keeps the loop tiny: one compare, one branch, and the same visit-map rejection path.

Scroller Copy Pass

Routine 8584h maintains a scrolling work buffer in the visual data segment and copies two pieces of it to the screen each frame:

8584: mov si,5444h
      mov di,0140h
      mov dx,0008h
band_a:
      push si
      add di,001ch
      mov cl,42h
      rep movsw          ; 66 cells
      add si,001ch
      dec dx
      jne band_a
      pop si

      mov dx,0008h
      mov di,0140h
band_b:
      mov cl,04h
      rep movsw          ; 4 cells
      add di,0098h
      add si,0098h
      dec dx
      jne band_b

The first band draws an 8-row, 66-column body with a 14-column indent. The second band draws a narrow 4-cell vertical part from the same buffer. This is not a simple one-line text scroller; it is copying a multi-row glyph field laid out in text cells.

After the copy, the routine advances its glyph-column state:

add word cs:[0345],2
dec word [5442]
jnz return_zero

[5442] is an eight-column countdown for the current character. When it reaches zero, the routine shifts the work buffer left by 0x27C words:

push ds
pop  es
mov  di,5444h
mov  si,5454h
mov  cx,027ch
rep  movsw

Then it reads the next byte from the scroll stream pointer at [5440]. A zero byte resets the stream pointer to 529Fh and returns AX=FFFFh, which the main loop uses as the signal to leave the scroller and start the end sequence.

Bytes below space are commands for the scroller state. Printable bytes become BIOS font lookups:

lodsb
or   al,al
jz   end_of_text
inc  word [5440]
cmp  al,20h
jb   command_byte

cbw
shl  ax,3
mov  si,cs:[03feh]  ; BIOS font offset
add  si,ax
mov  dl,08h
mov  [5442],dx      ; eight columns to emit
mov  cs:[0345],5444h
mov  ds,cs:[03fch]  ; BIOS font segment
mov  di,54e2h
mov  bl,0feh
call 861Fh

The intro got the font pointer earlier with int 10h, ax=1130h, so it does not need to carry its own 8x8 font.

BIOS Font To Text-Cell Glyph Loop

Routine 861Fh is the glyph renderer. It expands one 8x8 BIOS font character into eight rows of text words inside the scroller work buffer:

861f: mov cl,08h
row:
      lodsb              ; one BIOS font row
bit:
      xor bh,bh
      shr al,1
      jae blank
      mov bh,cs:[67e0h]  ; active attribute/color
blank:
      mov es:[di],bx     ; BL is the character, BH is attribute
      sub di,2
      loop bit
      add di,00b0h
      dec dx
      jne row
      ret

BL is set to FEh by the caller, so lit bits become CP437 character FEh with the active attribute, while unlit bits become the same character with attribute zero. The loop writes from right to left (sub di,2) and then jumps down one row by adding 00B0h.

The row stride looks odd until the negative write direction is included. Eight backward word writes move DI by -10h; adding 00B0h gives a net row advance of 00A0h, exactly one 80-column text row. That is the main trick of the loop: it can draw a character cell field backward and still land on the next row with one add.

Side-Column Motion

Routine 832Ah is called once per main-frame pass after the HSC tick. It asks the HSC object for state with command AH=7, then uses a small table around DS:5289h to draw nine moving column chunks:

832a: mov ah,07h
      mov es,[cs:0010]
      mov si,5277h
      call 0864:0000

      mov es,[cs:0012]
      mov si,5289h
      xor bx,bx
      mov cx,0009h
channel:
      lodsb
      inc al
      jz  skip
      ...
      clear a 10-row column area
      copy three 3-word slices from DS:1F43h + phase
      draw a tail blank
skip:
      loop channel
      add word [0001],6
      if [0001] >= 24h: subtract 24h
      ret

The exact source table is tiny, but the structure is clear: nine HSC-linked values are mapped into vertical offsets, each chunk clears its old area and copies a few text-word slices into the new one. It gives the border elements motion without needing a sprite engine.

HSC Player Interface

The far-call entry at 0864:0000 is a compact command dispatcher:

8640: push ds
      push es
      push di
      cmp  ah,07h
      jg   done
      shl  ah,1
      mov  al,ah
      xor  ah,ah
      mov  di,ax
      jmp  word ptr cs:[di+0044h]
done:
      pop  es
      pop  ds
      retf

The intro uses only a few commands:

AH=0  initialize with ES:SI pointing at HSC data
AH=1  advance playback/tick
AH=2  stop or shut down playback
AH=3  late wait-state command
AH=7  expose state used by the side-column routine

During init, the player probes AdLib/OPL base ports, sets up its song pointers, and installs an INT 1Ch timer path through DOS. The main intro still calls AH=1 explicitly in its visual loops, which is why the music remains tied to the visual cadence even inside long reveal or random-order loops.

HSC Pattern Decode

The player updates nine OPL channels per row. The row address calculation is:

si = pattern_data
al = order_table[current_order]
si += ax * 0480h        ; 64 rows * 9 channels * 2 bytes
si += current_row * 12h ; 9 channels * 2 bytes
cx = 9
call decode_channel nine times

Each channel consumes note/instrument/effect bytes:

8893: xor ax,ax
      mov al,[si]
      inc si
      cmp al,80h
      je  instrument_event
      cmp al,00h
      je  no_note
      mov ah,09h
      sub ah,cl          ; channel number
      call 8BBCh         ; note/frequency update

no_note:
      mov al,[si]
      inc si
      cmp al,00h
      je  done
      cmp al,01h
      je  row_break
      ...

The high nibble of the second byte is interpreted as compact effect codes:

1x  pitch add for this channel
2x  pitch subtract for this channel
Ax  set first operator volume-ish value
Bx  set second operator volume-ish value
Cx  set first value and maybe mirrored second value
Fx  set speed

The row reader is small because HSC is already close to OPL's native model. Most events update per-channel fields, mark dirty flags, and let later routines translate those fields into OPL writes.

HSC Instrument Setup

Instrument events call 8ADBh. Instruments are 12-byte records. The setup routine writes all the usual OPL operator groups for the channel:

8adb: ; AL = instrument, AH = channel
      if current_instrument[channel] == AL: return
      current_instrument[channel] = AL
      si = instrument_table + AL * 12

      write B0+channel, 00h      ; key off
      write C0+channel, si[8]    ; feedback/connection
      write 20+op0,     si[0]    ; trem/vib/sustain/KSR/mult
      write 20+op1,     si[1]
      write 60+op0,     si[4]    ; attack/decay
      write 60+op1,     si[5]
      write 80+op0,     si[6]    ; sustain/release
      write 80+op1,     si[7]
      write E0+op0,     si[9]    ; waveform
      write E0+op1,     si[10]
      write 40+op0,     si[2]    ; total level
      write 40+op1,     si[3]

The operator offset table is stored in the player, so each channel can be mapped to its two OPL operators without a branch tree. This keeps the update routine short and regular.

HSC Voice Commit And OPL Write Loop

After pattern decode, the player runs volume/envelope work at 8C3Dh and commits dirty channels at 8C98h. The commit path writes frequency and key-on registers when a channel has changed:

8ca5: if key/frequency dirty:
          write A0+channel, low_frequency
          write B0+channel, high_frequency_and_key

      if operator volume dirty:
          calculate total level with fade/volume
          write 40+operator, value

All OPL writes go through 8E32h:

8e32: push ax
      push cx
      push dx
      mov  dx,cs:[0865h] ; detected OPL base, usually 388h
      out  dx,al         ; register index
      in   al,dx
      in   al,dx
      in   al,dx
      in   al,dx
      in   al,dx
      in   al,dx
      inc  dx
      mov  al,ah
      out  dx,al         ; register value
      mov  cx,0023h
wait:
      in   al,dx
      loop wait
      pop  dx
      pop  cx
      pop  ax
      ret

This is the classic AdLib write discipline: index port, short wait, data port, longer wait. In a fast intro, using a prebuilt HSC object like this is a good trade. The intro spends its custom code budget on visual timing and cell-order effects while the music engine handles OPL detection, speed, instruments, rows, and per-channel state.

Why It Looks Rich In 8K

Banana Split leans hard into what VGA text mode gives for free:

The intro's custom visual code is therefore mostly address scheduling:

That is why the code feels more substantial than a normal text-mode intro. It uses text mode as a packed graphics target, but all the inner loops are written as direct, frame-paced memory motion.