Commodore Protection

From Software Archive
Revision as of 22:35, 24 November 2026 by Enigma (talk | contribs) (New protection page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Commodore Protection

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

Commodore Protection is the name used on this wiki for a check on disk releases of Commodore from 1983 and 1984. The disk is a normal CBM DOS disk on which one sector has a header but no data block.

In short: the loader reads the sector without data block with the DOS command U1 and needs a read error: track 1 sector 5 on the UK releases, track 18 sector 18 on the US releases.

The disk

  • The header of the sector is good; no data block follows it (CBM DOS: error 22, also shown as error 4). All other sectors are normal.
  • The duplicator text of the US releases reads CMDR SPCL/ID-PROT DUP 5"-48/35 1S DD SS (Satan's Hollow, The Hulk).

The check

Track 1 sector 5 (UK)

The loader is the same on all four titles, at $9E80. Commodore Music Maker:

$9E80  20 CC FF  JSR $FFCC
$9E83  A9 0F     LDA #$0F         ; open the command channel with the command I0
$9E85  A2 08     LDX #$08
$9E87  A0 0F     LDY #$0F
$9E89  20 BA FF  JSR $FFBA
$9E8C  A9 02     LDA #$02
$9E8E  A2 DD     LDX #$DD
$9E90  A0 9E     LDY #$9E
$9E92  20 BD FF  JSR $FFBD
$9E95  20 C0 FF  JSR $FFC0
$9E98  A9 02     LDA #$02         ; open channel 2 with the name "#"
$9E9A  A2 08     LDX #$08
$9E9C  A0 02     LDY #$02
$9E9E  20 BA FF  JSR $FFBA
$9EA1  A9 01     LDA #$01
$9EA3  A2 DF     LDX #$DF
$9EA5  A0 9E     LDY #$9E
$9EA7  20 BD FF  JSR $FFBD
$9EAA  20 C0 FF  JSR $FFC0
$9EAD  A2 0F     LDX #$0F         ; send the command at $9ED1: U1:2 0 1 5
$9EAF  20 C9 FF  JSR $FFC9
$9EB2  A0 00     LDY #$00
$9EB4  B9 D1 9E  LDA $9ED1,Y
$9EB7  F0 06     BEQ $9EBF
$9EB9  20 D2 FF  JSR $FFD2
$9EBC  C8        INY
$9EBD  D0 F5     BNE $9EB4
$9EBF  20 CC FF  JSR $FFCC
$9EC2  A2 0F     LDX #$0F
$9EC4  20 C6 FF  JSR $FFC6
$9EC7  20 CF FF  JSR $FFCF        ; first character of the answer
$9ECA  C9 32     CMP #$32         ; must be "2": an error 20 to 29
$9ECC  F0 12     BEQ $9EE0        ; passed: load the program
$9ECE  6C FC FF  JMP ($FFFC)      ; failed: reset
  • Only the first character of the answer is tested. After a passed check the loader loads the main program, which is stored with the bits of each byte in reverse order, turns the bits back and starts it.

Track 18 sector 18 (US)

Satan's Hollow (Source 1); The Hulk has the same routine at $C000:

$081A  20 72 08  JSR $0872        ; read the answer of the drive
$081D  20 CF FF  JSR $FFCF
$0820  C9 32     CMP #$32         ; first character must be "2"
$0822  D0 11     BNE $0835
$0824  20 CF FF  JSR $FFCF
$0827  C9 32     CMP #$32         ; second character must be "2": error 22
$0829  D0 0A     BNE $0835
$082B  20 CF FF  JSR $FFCF
$082E  C9 0D     CMP #$0D
$0830  D0 F9     BNE $082B
$0832  4C CC FF  JMP $FFCC        ; passed
$0835  8D FF FF  STA $FFFF        ; failed: fill the memory
$0838  EE 36 08  INC $0836
$083B  D0 F8     BNE $0835
$083D  EE 37 08  INC $0837
$0840  4C 35 08  JMP $0835

$08A7  A9 12     LDA #$12         ; track 18, sector 18
$08A9  8D A7 02  STA $02A7
$08AC  8D A8 02  STA $02A8
$08AF  20 43 08  JSR $0843        ; send U1: 2 0 018 018
$08B2  20 1A 08  JSR $081A        ; and test the answer
  • The answer must be error 22 exactly. After a failed check the routine overwrites the memory.

Copying

  • A sector copy stops at the sector; a copy with a normal sector in its place fails the check.
  • A copy needs a header without data block (or, for the UK form, any read error) on the sector.

Titles on this wiki

Track 1 sector 5: Commodore Music Maker, Commodore Music Maker Playalong Album Popular Classics, Future Finance, High Flyer, Spirit of the Stones.

Track 18 sector 18: Satan's Hollow, The Hulk (Sources 1 and 2).

Verification on this wiki

  • Each source was run against a copy in which the sector has a data block with a correct checksum. The copy returns to BASIC with READY (track 1 sector 5) or shows a screen filled with one character (track 18 sector 18); the original starts. Not run: Future Finance (Sources 2 and 3), which have the same loader in their sectors.

Pages that refer to this protection