<br />
<b>Notice</b>:  Trying to access array offset on value of type bool in <b>/mnt/cpcwiki-httpdocs/includes/libs/IPSet.php</b> on line <b>243</b><br />
<br />
<b>Notice</b>:  Trying to access array offset on value of type bool in <b>/mnt/cpcwiki-httpdocs/includes/libs/IPSet.php</b> on line <b>246</b><br />
<br />
<b>Notice</b>:  Trying to access array offset on value of type bool in <b>/mnt/cpcwiki-httpdocs/includes/libs/IPSet.php</b> on line <b>243</b><br />
<br />
<b>Notice</b>:  Trying to access array offset on value of type bool in <b>/mnt/cpcwiki-httpdocs/includes/libs/IPSet.php</b> on line <b>246</b><br />
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://oldwiki.cpcwiki.eu/index.php?action=history&amp;feed=atom&amp;title=Programming%3AFormatting_a_track_on_a_disc</id>
		<title>Programming:Formatting a track on a disc - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://oldwiki.cpcwiki.eu/index.php?action=history&amp;feed=atom&amp;title=Programming%3AFormatting_a_track_on_a_disc"/>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:Formatting_a_track_on_a_disc&amp;action=history"/>
		<updated>2026-08-29T04:47:35Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://oldwiki.cpcwiki.eu/index.php?title=Programming:Formatting_a_track_on_a_disc&amp;diff=15013&amp;oldid=prev</id>
		<title>CPCLER at 20:34, 13 March 2007</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:Formatting_a_track_on_a_disc&amp;diff=15013&amp;oldid=prev"/>
				<updated>2007-03-13T20:34:55Z</updated>
		
		<summary type="html">&lt;p&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 style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:34, 13 March 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L97&quot; &gt;Line 97:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 97:&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;defb &amp;amp;0, &amp;amp;0, &amp;amp;c5,&amp;amp;2&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;defb &amp;amp;0, &amp;amp;0, &amp;amp;c5,&amp;amp;2&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Programming]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>CPCLER</name></author>	</entry>

	<entry>
		<id>https://oldwiki.cpcwiki.eu/index.php?title=Programming:Formatting_a_track_on_a_disc&amp;diff=14913&amp;oldid=prev</id>
		<title>CPCLER at 22:53, 12 March 2007</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:Formatting_a_track_on_a_disc&amp;diff=14913&amp;oldid=prev"/>
				<updated>2007-03-12T22:53:42Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
;; This example shows how to format a track to &lt;br /&gt;
;; DATA format&lt;br /&gt;
;;&lt;br /&gt;
;; This code is public domain and can be used in your&lt;br /&gt;
;; own programs.&lt;br /&gt;
;; &lt;br /&gt;
;; Written by Kevin Thacker, 2002.&lt;br /&gt;
;;&lt;br /&gt;
;;------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
;; firmware function to find a RSX&lt;br /&gt;
.kl_find_command equ &amp;amp;bcd4&lt;br /&gt;
&lt;br /&gt;
org &amp;amp;8000&lt;br /&gt;
nolist&lt;br /&gt;
&lt;br /&gt;
;;------------------------------------------------&lt;br /&gt;
;; find BIOS: FORMAT TRACK command&lt;br /&gt;
;;&lt;br /&gt;
;; This method is compatible with other DOSs that&lt;br /&gt;
;; override or provide this command. If the command&lt;br /&gt;
;; is not found, then there is no furthur action. Therefore&lt;br /&gt;
;; on tape based systems, this code will have no effect.&lt;br /&gt;
&lt;br /&gt;
ld hl,cmd_bios_format_track&lt;br /&gt;
call kl_find_command&lt;br /&gt;
ret nc&lt;br /&gt;
&lt;br /&gt;
;; command found&lt;br /&gt;
&lt;br /&gt;
;; store address of command&lt;br /&gt;
ld (bios_format_track),hl&lt;br /&gt;
&lt;br /&gt;
;; store &amp;quot;rom select&amp;quot; of command&lt;br /&gt;
ld a,c&lt;br /&gt;
ld (bios_format_track+2),a&lt;br /&gt;
&lt;br /&gt;
;;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
;; D = track number&lt;br /&gt;
;; (change this value to define the track to write to )&lt;br /&gt;
ld d,0&lt;br /&gt;
&lt;br /&gt;
;; HL = address of C,H,R,N table &lt;br /&gt;
ld hl,sectorIDs&lt;br /&gt;
;; number of sectors defined in table&lt;br /&gt;
ld b,9&lt;br /&gt;
.setup_track&lt;br /&gt;
;; write D value into C parameter of each sector&lt;br /&gt;
ld (hl),d&lt;br /&gt;
;; go to next C,H,R,N entry in table&lt;br /&gt;
inc hl&lt;br /&gt;
inc hl&lt;br /&gt;
inc hl&lt;br /&gt;
inc hl&lt;br /&gt;
djnz setup_track&lt;br /&gt;
&lt;br /&gt;
;; E = drive number (0 or 1)&lt;br /&gt;
;; (change this value to define the disc drive to write to)&lt;br /&gt;
ld e,0&lt;br /&gt;
&lt;br /&gt;
;; execute command&lt;br /&gt;
rst 3&lt;br /&gt;
defw bios_format_track&lt;br /&gt;
&lt;br /&gt;
ret&lt;br /&gt;
&lt;br /&gt;
;;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
;; this is initialised when the &amp;quot;BIOS: FORMAT TRACK&amp;quot; RSX has been found.&lt;br /&gt;
.bios_format_track&lt;br /&gt;
defw 0                    ;; address of function&lt;br /&gt;
defb 0                    ;; &amp;quot;rom select&amp;quot; for function&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
.cmd_bios_format_track&lt;br /&gt;
defb 6+&amp;amp;80				;; this is the &amp;quot;BIOS: FORMAT TRACK&amp;quot; RSX&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
.sectorIDs&lt;br /&gt;
;; C, H, R, N&lt;br /&gt;
;; N = 2 defines a sector size of 512 bytes&lt;br /&gt;
;; R defines id of each sector&lt;br /&gt;
;; H = 0 for DATA format&lt;br /&gt;
;; C will be setup to be the number of the track&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c1,&amp;amp;2&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c6,&amp;amp;2&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c2,&amp;amp;2&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c7,&amp;amp;2&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c3,&amp;amp;2&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c8,&amp;amp;2&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c4,&amp;amp;2&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c9,&amp;amp;2&lt;br /&gt;
defb &amp;amp;0, &amp;amp;0, &amp;amp;c5,&amp;amp;2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>CPCLER</name></author>	</entry>

	</feed>