Ocean Protection Track 1 Sector 5

From Software Archive
Revision as of 17:46, 24 November 2026 by Enigma (talk | contribs) (Related forms: track 18 sector 18)
Jump to navigation Jump to search

Ocean Protection Track 1 Sector 5

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

Ocean Protection Track 1 Sector 5 is the name used on this wiki for a check on disk releases of Ocean from 1990 to 1992 and on single releases of Codemasters and U.S. Gold of the same years. It is not related to the Ocean Protection of the years before. The disk is a normal CBM DOS disk on which sector 5 of track 1 has a data block with a wrong checksum.

In short: the boot program reads track 1 sector 5 with a DOS command and needs a read error. Without the error it does not load the file LOADER.

The disk

  • Sector 5 of track 1 has a good header and a data block with a wrong checksum (CBM DOS: error 23, also shown as error 5). No other sector has an error.
  • The sector is not part of a file.

The check

The first file of the disk is loaded to $4000. Smash T.V. (Source 1):

$4005  A9 30     LDA #$30         ; flag: "0"
$4007  8D 98 40  STA $4098

$4035  A9 08     LDA #$08         ; send the command to the drive
$4037  20 B1 FF  JSR $FFB1
$403A  A9 6F     LDA #$6F
$403C  20 93 FF  JSR $FF93
$403F  A2 00     LDX #$00
$4041  8E 97 40  STX $4097
$4044  BD 8A 40  LDA $408A,X      ; U1:2,0,01,05
$4047  F0 09     BEQ $4052
$4049  20 A8 FF  JSR $FFA8
$404C  AE 97 40  LDX $4097
$404F  E8        INX
$4050  D0 EF     BNE $4041
$4052  20 AE FF  JSR $FFAE
$4055  A2 0F     LDX #$0F         ; read the first character of the answer
$4057  20 C6 FF  JSR $FFC6
$405A  20 E4 FF  JSR $FFE4
$405D  48        PHA
$405E  20 CC FF  JSR $FFCC
$4061  68        PLA
$4062  C9 0D     CMP #$0D         ; skip a RETURN
$4064  F0 EF     BEQ $4055
$4066  C9 32     CMP #$32         ; "2": an error 20 to 29
$4068  D0 07     BNE $4071
$406A  A9 30     LDA #$30         ; yes: go on
$406C  8D 98 40  STA $4098
$406F  D0 08     BNE $4079
$4071  A9 37     LDA #$37         ; no error: flag "7"
$4073  8D 98 40  STA $4098
$4076  4C 50 01  JMP $0150        ; and jump into the stack area
$4079  A9 02     LDA #$02         ; close the channels
$407B  20 C3 FF  JSR $FFC3
$407E  A9 0F     LDA #$0F
$4080  20 C3 FF  JSR $FFC3
$4083  4C 99 40  JMP $4099        ; load the file LOADER and start it
  • The command is U1:2,0,01,05. Only the first character of the answer of the drive is tested: every error code from 20 to 29 passes.
  • After a passed check the program loads the file LOADER (CJ's Elephant Antics: LOADIT) and starts it. After a failed check it jumps to $0150 in the stack area; the computer returns to BASIC.
  • The routine is the same byte for byte on all titles listed below.

Related forms

  • Track 18 sector 18: Lethal Weapon (1992) and The Simpsons: Bart vs. the Space Mutants (1991) of Ocean have the same routine, byte for byte; only the command differs (U1:2,0,18,18), and the faulty sector is sector 18 of track 18. A copy without the error shows READY.
  • Track 1 sector 1: Operation Thunderbolt (1990) and The Untouchables (1989) of Ocean have an older form: the same loop sends U1:2,0,1,1, the faulty sector is sector 1 of track 1, and after a failed check the routine changes the border colour and returns. A copy without the error shows READY there too.

These titles are not in the list below.

Copying

  • A sector copy stops at the sector; a copy that skips it or writes it without error returns to BASIC with READY after the first file.
  • A copy needs a read error on track 1 sector 5.

Titles on this wiki

Battle Command, CJ's Elephant Antics, Hook, Smash T.V., Street Fighter II, The Addams Family, WWF Wrestlemania.

Verification on this wiki

  • The sector images of all G64 on the wiki were searched for the command. It is on the seven titles above and on no other.
  • Each source of these titles was run against a copy in which the data block of track 1 sector 5 has the correct checksum: the copy shows READY after the first file, the original loads. WWF Wrestlemania Source 3 has no G64, and the image of Source 4 has no error on this sector: these two were not tested.

Pages that refer to this protection