Spinnaker Protection

From Software Archive
Revision as of 20:24, 24 November 2026 by Enigma (talk | contribs) (Telarium loader sources listed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Spinnaker Protection

This analysis is based on the state of the wiki from 24 Nov 2026.

Spinnaker Protection is the name used on this wiki for the disk check of Spinnaker Software and its labels Fisher-Price Learning Software and UXB from 1983 to 1987. The disk is a normal CBM DOS disk on which one sector has a data block with a wrong checksum.

In short: the program reads one faulty sector with the DOS command U1 and needs error 23: sector 18 of track 18 on the releases from 1983 to 1985, sector 1 of track 1 on the releases from 1985 to 1987.

The disk

Form Faulty sector Command Years
Track 18 Track 18 sector 18: good header, data block with a wrong checksum U1: 5 0 18 18 1983 to 1985
Track 1 Track 1 sector 1: good header, data block with a wrong checksum U1: 5 0 1 1 1985 to 1987
  • CBM DOS reports error 23 for the sector (also shown as error 5). All other sectors are normal.
  • Sector 18 of track 18 is the last sector of the directory track; it is not part of the directory chain. Sector 1 of track 1 is not part of a file.

The check

The check runs on the C64 and uses only commands of CBM DOS. The same routine is in all titles; it was moved to another address for each program.

Track 18 form

The six titles Alpha Build, Cosmic Life, Logic Levels, Number Tumblers, Sea Speller and Up & Add´em are cartridge programs put on disk. They have the same loader, byte for byte, with the check at $7F44. Alpha Build (Source 1):

$7F44  A9 0F     LDA #$0F         ; open the command channel
$7F46  A8        TAY
$7F47  A2 08     LDX #$08
$7F49  20 BA FF  JSR $FFBA
$7F4C  A9 00     LDA #$00
$7F4E  20 BD FF  JSR $FFBD
$7F51  20 C0 FF  JSR $FFC0
$7F54  A9 05     LDA #$05         ; open channel 5 with the name "#": a buffer of the drive
$7F56  A8        TAY
$7F57  A2 08     LDX #$08
$7F59  20 BA FF  JSR $FFBA
$7F5C  A9 01     LDA #$01
$7F5E  A2 34     LDX #$34
$7F60  A0 7F     LDY #$7F
$7F62  20 BD FF  JSR $FFBD
$7F65  4C C0 FF  JMP $FFC0

$7F68  A2 05     LDX #$05
$7F6A  20 C6 FF  JSR $FFC6
$7F6D  A0 12     LDY #$12         ; sector 18: write its two digits into the command
$7F6F  98        TYA
$7F70  38        SEC
$7F71  A2 2F     LDX #$2F
$7F73  E8        INX
$7F74  E9 0A     SBC #$0A
$7F76  B0 FB     BCS $7F73
$7F78  69 3A     ADC #$3A
$7F7A  8E 40 7F  STX $7F40
$7F7D  8D 41 7F  STA $7F41
$7F80  A2 0F     LDX #$0F         ; send the 13 characters at $7F35: U1: 5 0 18 18
$7F82  20 C9 FF  JSR $FFC9
$7F85  A2 00     LDX #$00
$7F87  BD 35 7F  LDA $7F35,X
$7F8A  20 D2 FF  JSR $FFD2
$7F8D  E8        INX
$7F8E  E0 0D     CPX #$0D
$7F90  D0 F5     BNE $7F87
$7F92  20 CC FF  JSR $FFCC
$7F95  A9 08     LDA #$08
$7F97  85 BA     STA $BA
$7F99  20 B4 FF  JSR $FFB4
$7F9C  A9 6F     LDA #$6F
$7F9E  85 B9     STA $B9
$7FA0  20 96 FF  JSR $FF96
$7FA3  20 A5 FF  JSR $FFA5        ; first character of the answer
$7FA6  CD 42 7F  CMP $7F42        ; must be "2" ($7F42)
$7FA9  D0 08     BNE $7FB3
$7FAB  20 A5 FF  JSR $FFA5        ; second character
$7FAE  CD 43 7F  CMP $7F43        ; must be "3" ($7F43): error 23
$7FB1  F0 0B     BEQ $7FBE        ; passed
$7FB3  20 BE 7F  JSR $7FBE        ; read the rest of the answer
$7FB6  C8        INY              ; try again,
$7FB7  C0 17     CPY #$17         ; five times in all
$7FB9  D0 C5     BNE $7F80
$7FBB  4C BB 7F  JMP $7FBB        ; failed: endless loop
$7FBE  A9 08     LDA #$08         ; read the rest of the answer
$7FC0  20 B4 FF  JSR $FFB4
$7FC3  20 96 FF  JSR $FF96
$7FC6  20 A5 FF  JSR $FFA5
$7FC9  24 90     BIT $90
$7FCB  50 F9     BVC $7FC6
$7FCD  20 AB FF  JSR $FFAB
$7FD0  60        RTS

$7FD1  20 44 7F  JSR $7F44        ; entry
$7FD4  20 68 7F  JSR $7F68
$7FD7  A9 05     LDA #$05         ; close the channels and start the program
$7FD9  20 C3 FF  JSR $FFC3
$7FDC  A9 0F     LDA #$0F
$7FDE  20 C3 FF  JSR $FFC3
  • The command and the two characters of the answer are plain text at $7F34: #U1: 5 0 18 1823.
  • After a passed check the loader writes the start vectors of the cartridge to $8000 and jumps to the reset routine; the program starts like the cartridge.
  • After a failed check the computer stays in the endless loop; the screen keeps the title and LOADING.....
  • Early Learning Friends has the same routine at $9011 with a failed check that ends in an endless loop too.

Track 1 form

Bazooka Bill (Source 2), routine at $175E:

$1784  A2 05     LDX #$05
$1786  20 C6 FF  JSR $FFC6
$1789  A2 0F     LDX #$0F
$178B  20 C9 FF  JSR $FFC9
$178E  A2 00     LDX #$00
$1790  BD 41 17  LDA $1741,X      ; the command is stored in every second byte,
$1793  E9 01     SBC #$01         ; each character raised by 2
$1795  20 D2 FF  JSR $FFD2
$1798  E8        INX
$1799  E8        INX
$179A  E0 16     CPX #$16         ; 11 characters: U1: 5 0 1 1
$179C  D0 F2     BNE $1790
$179E  20 CC FF  JSR $FFCC
$17A1  A9 08     LDA #$08
$17A3  85 BA     STA $BA
$17A5  20 B4 FF  JSR $FFB4
$17A8  A9 6F     LDA #$6F
$17AA  85 B9     STA $B9
$17AC  20 96 FF  JSR $FF96
$17AF  20 A5 FF  JSR $FFA5        ; first character of the answer
$17B2  CD 5A 17  CMP $175A        ; must be "2"
$17B5  D0 08     BNE $17BF
$17B7  20 A5 FF  JSR $FFA5        ; second character
$17BA  CD 5D 17  CMP $175D        ; must be "3": error 23
$17BD  F0 1E     BEQ $17DD        ; passed
$17BF  20 DD 17  JSR $17DD
$17C2  C8        INY              ; try again until Y is 9
$17C3  C0 09     CPY #$09
$17C5  D0 BD     BNE $1784
$17C7  78        SEI              ; failed: switch the ROMs off
$17C8  A5 01     LDA $01
$17CA  29 F8     AND #$F8
$17CC  85 01     STA $01
$17CE  A9 00     LDA #$00         ; and fill the memory from $17DD on with zeros
$17D0  AA        TAX
$17D1  9D DD 17  STA $17DD,X
$17D4  E8        INX
$17D5  D0 FA     BNE $17D1
$17D7  EE D3 17  INC $17D3
$17DA  4C D1 17  JMP $17D1
  • The routine is the one of the track 18 form with two changes: the command text is hidden (only every second byte counts, and each character is raised by 2), and after a failed check the routine erases the memory.
  • Movie Creator (1985) has this later routine but still reads sector 18 of track 18.

Related forms

  • Below the Root (Windham Classics, 1984) uses the routine on a disk of the XEMAG 1.0 kind: it sends U1: 5 0 02 with the sectors 1 to 16 until one gives error 23, then changes the track to 03 and needs error 27.
  • Learn the Alphabet has the loader of the track 18 form, but the two characters of the answer are set to 00: the check passes on a disk without error, and the disk has no faulty sector.
  • The Telarium titles of Spinnaker (Amazon, Dragonworld, Fahrenheit 451, Nine Princes in Amber, Perry Mason: The Case of the Mandarin Murder) have the same faulty sectors, track 18 sector 18 or track 1 sector 1, but another routine: the "Telarium Game Loader" reads the sector with the disk routine of its program system (U1:13 0 18 18, U1:13 0 01 01) and needs error 23. On a copy without the error it shows This disk is defective. Please contact Telarium Corp. The older Trillium releases of Amazon and Fahrenheit 451 have the faults on the tracks 34 and 35 instead (every data block of track 34, every header of track 35, as on XEMAG 1.0 disks), and the loader needs error 23 on track 34 and error 27 on track 35. The Telarium sources are listed below with the note "Telarium loader"; the Trillium sources are listed on the page XEMAG 1.0.

Copying

  • A sector copy stops at the faulty sector; a copy that skips it or writes it without error fails the check.
  • A copy needs a data block with a wrong checksum on the sector.

Titles on this wiki

Track 18 form: Alpha Build, Cosmic Life, Early Learning Friends, Logic Levels, Movie Creator, Number Tumblers, Sea Speller, Up & Add´em.

Telarium loader, track 18 form: Amazon (Sources 1, 2 and 4). Telarium loader, track 1 form: Dragonworld, Fahrenheit 451 (Source 3), Nine Princes in Amber, Perry Mason: The Case of the Mandarin Murder.

Track 1 form: Bazooka Bill (Sources 2 and 3), Cartoon Programmer, Dark Tower / Invaders of the Lost Tomb, Penetrator / Star Trooper (side 1), Rogue Trooper, Strike Force: Cobra.

Verification on this wiki

  • The sector images of all G64 on the wiki were searched for the bytes of the routine (the two compares of the answer). It is on the titles above, on Below the Root and Learn the Alphabet, and as a copy on a disk of the copy program Maverick.
  • Each source was run against a copy in which the data block of the sector has the correct checksum. On the copy the track 18 form stays at LOADING.... (Early Learning Friends and Movie Creator: blank screen); the track 1 form shows a blank or garbled screen. The original starts.
  • Telarium loader: each source was run against a copy with the sector corrected; the copy shows the message that the disk is defective, the original starts.
  • Below the Root: a copy with the tracks 2 and 3 written without errors shows a black screen after the title picture; the original goes on.

Pages that refer to this protection