<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://fileformats.archiveteam.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=CP2</id>
		<title>CP2 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=CP2"/>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=CP2&amp;action=history"/>
		<updated>2026-04-24T14:20:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=CP2&amp;diff=50497&amp;oldid=prev</id>
		<title>John e: /* File structure */</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=CP2&amp;diff=50497&amp;oldid=prev"/>
				<updated>2025-07-04T21:20:29Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;File structure&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:20, 4 July 2025&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Files begin with a 30-byte header:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Files begin with a 30-byte header:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;+0x00&amp;#160; DB&amp;#160; 'SOFTWARE &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Pirates&lt;/del&gt;'&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;+0x00&amp;#160; DB&amp;#160; 'SOFTWARE &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;PIRATES&lt;/ins&gt;'&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;+0x10&amp;#160; DB&amp;#160; 'Release '&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;+0x10&amp;#160; DB&amp;#160; 'Release '&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;+0x18&amp;#160; DB&amp;#160; release (printable ASCII)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;+0x18&amp;#160; DB&amp;#160; release (printable ASCII)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>John e</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=CP2&amp;diff=50492&amp;oldid=prev</id>
		<title>John e: /* File structure */</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=CP2&amp;diff=50492&amp;oldid=prev"/>
				<updated>2025-07-04T16:42:30Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;File structure&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:42, 4 July 2025&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160;  DB&amp;#160; sector data&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160;  DB&amp;#160; sector data&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/del&gt;length &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;To find the sector data &lt;/ins&gt;length &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and sector data, take the offset in the file of the segment header and add the segment header length + 2. This address may overlap with the end of the last sector header.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A sector header is 16 bytes:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A sector header is 16 bytes:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;+0x08&amp;#160; DW&amp;#160; Offset to sector data from start of sector data area + 0x16AD&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;+0x08&amp;#160; DW&amp;#160; Offset to sector data from start of sector data area + 0x16AD&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To find the actual offset of a sector in the file, take its offset value in the header, subtract 0x16AD, and add the segment header &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;length + &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To find the actual offset of a sector in the file, take its offset value in the header, subtract 0x16AD, and add &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the offset to the address of the sector data as determined from &lt;/ins&gt;the segment header&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Software ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Software ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>John e</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=CP2&amp;diff=50491&amp;oldid=prev</id>
		<title>John e: Created page with &quot;{{FormatInfo |formattype=electronic |subcat=Disk Image Formats |extensions={{ext|cp2}} }} '''CP2''' is a disk image format created by the commercial disk copier Copy-II-PC in ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=CP2&amp;diff=50491&amp;oldid=prev"/>
				<updated>2025-07-04T16:38:56Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{FormatInfo |formattype=electronic |subcat=Disk Image Formats |extensions={{ext|cp2}} }} &amp;#039;&amp;#039;&amp;#039;CP2&amp;#039;&amp;#039;&amp;#039; is a disk image format created by the commercial disk copier Copy-II-PC in ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FormatInfo&lt;br /&gt;
|formattype=electronic&lt;br /&gt;
|subcat=Disk Image Formats&lt;br /&gt;
|extensions={{ext|cp2}}&lt;br /&gt;
}}&lt;br /&gt;
'''CP2''' is a disk image format created by the commercial disk copier Copy-II-PC in conjunction with a separate program, Snatch-It. &lt;br /&gt;
&lt;br /&gt;
== Identification ==&lt;br /&gt;
The first 24 bytes of the file are ASCII 'SOFTWARE PIRATESRelease '. &lt;br /&gt;
&lt;br /&gt;
== File structure ==&lt;br /&gt;
Files begin with a 30-byte header:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
+0x00  DB  'SOFTWARE Pirates'&lt;br /&gt;
+0x10  DB  'Release '&lt;br /&gt;
+0x18  DB  release (printable ASCII)&lt;br /&gt;
+0x1C  DB  '$'&lt;br /&gt;
+0x1D  DB  volume number (ASCII, starting with '0')&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Following the header will be one or more segments, each 64k or less in size. A segment is formed:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
+0x00  DW  segment header length, little-endian word.&lt;br /&gt;
+0x02  DB  cylinder&lt;br /&gt;
+0x03  DB  head&lt;br /&gt;
+0x04  DB  sector&lt;br /&gt;
+0x05      Sector headers, 384 bytes per track.&lt;br /&gt;
       DW  length of sector data&lt;br /&gt;
       DB  sector data&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The length &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A sector header is 16 bytes:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
+0x00  DB  read result&lt;br /&gt;
+0x01  DB  8272 status register 0&lt;br /&gt;
+0x02  DB  8272 status register 1&lt;br /&gt;
+0x03  DB  8272 status register 2&lt;br /&gt;
+0x04  DB  Sector ID: cylinder&lt;br /&gt;
+0x05  DB  Sector ID: head&lt;br /&gt;
+0x06  DB  Sector ID: sector&lt;br /&gt;
+0x07  DB  Sector ID: size (0 for 128 bytes, 1 for 256 bytes, 2 for 512 bytes etc.)&lt;br /&gt;
+0x08  DW  Offset to sector data from start of sector data area + 0x16AD&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To find the actual offset of a sector in the file, take its offset value in the header, subtract 0x16AD, and add the segment header length + &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
* [h ttps://github.com/retrohun/pce/blob/master/src/drivers/psi/psi-img-cp2.c PCE] contains some code to parse .CP2 disk images.&lt;br /&gt;
&lt;br /&gt;
== Sample files ==&lt;br /&gt;
* ht tps://discmaster.textfiles.com/browse/29984/wbiz0000-0009/wbiz0008.tar/wbiz0008&lt;/div&gt;</summary>
		<author><name>John e</name></author>	</entry>

	</feed>