<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://preservation64.de/index.php?action=history&amp;feed=atom&amp;title=SSG_Protection</id>
	<title>SSG Protection - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://preservation64.de/index.php?action=history&amp;feed=atom&amp;title=SSG_Protection"/>
	<link rel="alternate" type="text/html" href="https://preservation64.de/index.php?title=SSG_Protection&amp;action=history"/>
	<updated>2026-11-25T19:52:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://preservation64.de/index.php?title=SSG_Protection&amp;diff=86668&amp;oldid=prev</id>
		<title>Enigma: New protection page</title>
		<link rel="alternate" type="text/html" href="https://preservation64.de/index.php?title=SSG_Protection&amp;diff=86668&amp;oldid=prev"/>
		<updated>2026-11-24T22:35:56Z</updated>

		<summary type="html">&lt;p&gt;New protection page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= SSG Protection =&lt;br /&gt;
&lt;br /&gt;
This analysis is based on the state of the wiki from 25 Nov 2026.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SSG Protection&amp;#039;&amp;#039;&amp;#039; 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&lt;br /&gt;
sector 18 of track 18 has a data block with a wrong checksum.&lt;br /&gt;
&lt;br /&gt;
In short: &amp;#039;&amp;#039;&amp;#039;the program reads track 18 sector 18 with the DOS command U1 and needs a read error.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== The check ==&lt;br /&gt;
&lt;br /&gt;
Battlefront (Source 1), routine at &amp;lt;code&amp;gt;$2F63&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$2F63  AD BE 2F  LDA $2FBE        ; open channel 5 with the name &amp;quot;#&amp;quot;&lt;br /&gt;
$2F66  A2 BF     LDX #$BF&lt;br /&gt;
$2F68  A0 2F     LDY #$2F&lt;br /&gt;
$2F6A  20 BD FF  JSR $FFBD&lt;br /&gt;
$2F6D  A9 05     LDA #$05&lt;br /&gt;
$2F6F  A2 08     LDX #$08&lt;br /&gt;
$2F71  A0 05     LDY #$05&lt;br /&gt;
$2F73  20 BA FF  JSR $FFBA&lt;br /&gt;
$2F76  20 C0 FF  JSR $FFC0&lt;br /&gt;
$2F79  AD C0 2F  LDA $2FC0        ; open the command channel with the command U1:5,0,18,18&lt;br /&gt;
$2F7C  A2 C1     LDX #$C1&lt;br /&gt;
$2F7E  A0 2F     LDY #$2F&lt;br /&gt;
$2F80  20 BD FF  JSR $FFBD&lt;br /&gt;
$2F83  A9 0F     LDA #$0F&lt;br /&gt;
$2F85  A2 08     LDX #$08&lt;br /&gt;
$2F87  A0 0F     LDY #$0F&lt;br /&gt;
$2F89  20 BA FF  JSR $FFBA&lt;br /&gt;
$2F8C  20 C0 FF  JSR $FFC0&lt;br /&gt;
$2F8F  A9 05     LDA #$05         ; close channel 5&lt;br /&gt;
$2F91  20 C3 FF  JSR $FFC3&lt;br /&gt;
$2F94  A2 0F     LDX #$0F         ; read the answer of the drive to $0340&lt;br /&gt;
$2F96  20 C6 FF  JSR $FFC6&lt;br /&gt;
$2F99  A0 40     LDY #$40&lt;br /&gt;
$2F9B  20 CF FF  JSR $FFCF&lt;br /&gt;
$2F9E  99 00 03  STA $0300,Y&lt;br /&gt;
$2FA1  C8        INY&lt;br /&gt;
$2FA2  30 04     BMI $2FA8&lt;br /&gt;
$2FA4  C9 0D     CMP #$0D&lt;br /&gt;
$2FA6  D0 F3     BNE $2F9B&lt;br /&gt;
$2FA8  A9 00     LDA #$00&lt;br /&gt;
$2FAA  20 C6 FF  JSR $FFC6&lt;br /&gt;
$2FAD  A9 0F     LDA #$0F&lt;br /&gt;
$2FAF  20 C3 FF  JSR $FFC3&lt;br /&gt;
$2FB2  AD 40 03  LDA $0340        ; first character&lt;br /&gt;
$2FB5  C9 32     CMP #$32         ; must be &amp;quot;2&amp;quot;: an error 20 to 29&lt;br /&gt;
$2FB7  D0 02     BNE $2FBB        ; no: to the SEC inside the next instruction&lt;br /&gt;
$2FB9  18        CLC              ; passed: carry clear&lt;br /&gt;
$2FBA  24 38     BIT $38          ; BIT hides a SEC ($38) for the failed case&lt;br /&gt;
$2FBC  60        RTS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The command &amp;lt;code&amp;gt;U1:5,0,18,18&amp;lt;/code&amp;gt; is 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.&lt;br /&gt;
* 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 (&amp;lt;code&amp;gt;JMP $FCE2&amp;lt;/code&amp;gt;) with carry set.&lt;br /&gt;
* Battlefront and Russia have the same bytes; Carriers at War and Europe Ablaze have the routine at another address.&lt;br /&gt;
&lt;br /&gt;
== Copying ==&lt;br /&gt;
&lt;br /&gt;
* A sector copy stops at the sector; a copy that skips it or writes it without error returns to BASIC.&lt;br /&gt;
&lt;br /&gt;
== Titles on this wiki ==&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Verification on this wiki ==&lt;br /&gt;
&lt;br /&gt;
* 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.&lt;br /&gt;
* 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.&lt;br /&gt;
* 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.&lt;br /&gt;
* 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.&lt;br /&gt;
&lt;br /&gt;
==== Pages that refer to this protection ====&lt;br /&gt;
&lt;br /&gt;
{{Special:Whatlinkshere/SSG Protection}}&lt;/div&gt;</summary>
		<author><name>Enigma</name></author>
	</entry>
</feed>