SSG Protection
Jump to navigation
Jump to search
SSG Protection
This analysis is based on the state of the wiki from 25 Nov 2026.
SSG Protection is the name used on this wiki for a check on disk releases of Strategic Studies Group (SSG) from 1984 to 1987. The disk is a normal CBM DOS disk on which sector 18 of track 18 has a data block with a wrong checksum.
In short: the program reads track 18 sector 18 with the DOS command U1 and needs a read error.
The check
Battlefront (Source 1), routine at $2F63:
$2F63 AD BE 2F LDA $2FBE ; open channel 5 with the name "#" $2F66 A2 BF LDX #$BF $2F68 A0 2F LDY #$2F $2F6A 20 BD FF JSR $FFBD $2F6D A9 05 LDA #$05 $2F6F A2 08 LDX #$08 $2F71 A0 05 LDY #$05 $2F73 20 BA FF JSR $FFBA $2F76 20 C0 FF JSR $FFC0 $2F79 AD C0 2F LDA $2FC0 ; open the command channel with the command U1:5,0,18,18 $2F7C A2 C1 LDX #$C1 $2F7E A0 2F LDY #$2F $2F80 20 BD FF JSR $FFBD $2F83 A9 0F LDA #$0F $2F85 A2 08 LDX #$08 $2F87 A0 0F LDY #$0F $2F89 20 BA FF JSR $FFBA $2F8C 20 C0 FF JSR $FFC0 $2F8F A9 05 LDA #$05 ; close channel 5 $2F91 20 C3 FF JSR $FFC3 $2F94 A2 0F LDX #$0F ; read the answer of the drive to $0340 $2F96 20 C6 FF JSR $FFC6 $2F99 A0 40 LDY #$40 $2F9B 20 CF FF JSR $FFCF $2F9E 99 00 03 STA $0300,Y $2FA1 C8 INY $2FA2 30 04 BMI $2FA8 $2FA4 C9 0D CMP #$0D $2FA6 D0 F3 BNE $2F9B $2FA8 A9 00 LDA #$00 $2FAA 20 C6 FF JSR $FFC6 $2FAD A9 0F LDA #$0F $2FAF 20 C3 FF JSR $FFC3 $2FB2 AD 40 03 LDA $0340 ; first character $2FB5 C9 32 CMP #$32 ; must be "2": an error 20 to 29 $2FB7 D0 02 BNE $2FBB ; no: to the SEC inside the next instruction $2FB9 18 CLC ; passed: carry clear $2FBA 24 38 BIT $38 ; BIT hides a SEC ($38) for the failed case $2FBC 60 RTS
- The command
U1:5,0,18,18is sent as the name of the command channel. Only the first character of the answer is tested: every error code from 20 to 29 passes. - The routine returns the result in the carry flag. The caller goes on to load the program with carry clear and jumps to the reset routine (
JMP $FCE2) with carry set. - Battlefront and Russia have the same bytes; Carriers at War and Europe Ablaze have the routine at another address.
Copying
- A sector copy stops at the sector; a copy that skips it or writes it without error returns to BASIC.
Titles on this wiki
Battlefront (Sources 1 and 3), Carriers at War 1941-1945: Fleet Carrier Operations in the Pacific, Europe Ablaze, Russia: The Great War in the East 1941-1945.
Verification on this wiki
- The sector images of all G64 on the wiki were searched for the command. It is on the titles above and on Battles in Normandy.
- Each source of the titles above was run against a copy in which the data block of the sector has the correct checksum: the copy shows READY, the original starts.
- Battles in Normandy has the routine, but the jump to the reset routine is replaced by the jump that loads the program: the check is removed, and the disk has no faulty sector.
- Rommel: Battles for North Africa (Source 1) has the faulty sector; the command was not found on its disk and the copy starts like the original in the tested part. Not confirmed.