<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%3AWriting_a_sector_to_disc</id>
		<title>Programming:Writing a sector to 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%3AWriting_a_sector_to_disc"/>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:Writing_a_sector_to_disc&amp;action=history"/>
		<updated>2026-08-29T11:07:25Z</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:Writing_a_sector_to_disc&amp;diff=15012&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:Writing_a_sector_to_disc&amp;diff=15012&amp;oldid=prev"/>
				<updated>2007-03-13T20:34:31Z</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;defs 512&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;defs 512&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;!-- diff cache key wikidb:diff:version:1.11a:oldid:14912:newid:15012 --&gt;
&lt;/table&gt;</summary>
		<author><name>CPCLER</name></author>	</entry>

	<entry>
		<id>https://oldwiki.cpcwiki.eu/index.php?title=Programming:Writing_a_sector_to_disc&amp;diff=14912&amp;oldid=prev</id>
		<title>CPCLER at 22:52, 12 March 2007</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.cpcwiki.eu/index.php?title=Programming:Writing_a_sector_to_disc&amp;diff=14912&amp;oldid=prev"/>
				<updated>2007-03-12T22:52:50Z</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 write a sector to&lt;br /&gt;
;; a DATA format disc&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: WRITE SECTOR 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_write_sector&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_write_sector),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_write_sector+2),a&lt;br /&gt;
&lt;br /&gt;
;;------------------------------------------------------------------&lt;br /&gt;
;; fill buffer with data&lt;br /&gt;
&lt;br /&gt;
ld hl,buffer&lt;br /&gt;
ld bc,512&lt;br /&gt;
ld e,0&lt;br /&gt;
.fb ld (hl),e&lt;br /&gt;
inc hl&lt;br /&gt;
inc e&lt;br /&gt;
dec bc&lt;br /&gt;
ld a,b&lt;br /&gt;
or c&lt;br /&gt;
jr nz,fb&lt;br /&gt;
&lt;br /&gt;
;;------------------------------------------------------------------&lt;br /&gt;
;; write 512 bytes of data to track 0, sector &amp;amp;C1 from disc drive 0&lt;br /&gt;
&lt;br /&gt;
;; HL = address of buffer&lt;br /&gt;
;; (change this value to define a different buffer address)&lt;br /&gt;
ld hl,buffer&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;
;; 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;
;; C = sector id&lt;br /&gt;
;; &lt;br /&gt;
;; sector ids for DATA format disc: &amp;amp;C1, &amp;amp;C2, &amp;amp;C3, &amp;amp;C4, &amp;amp;C5, &amp;amp;C6, &amp;amp;C7, &amp;amp;C8, &amp;amp;C9&lt;br /&gt;
;; sector ids for SYSTEM/VENDOR format disc: &amp;amp;41, &amp;amp;42, &amp;amp;43, &amp;amp;44, &amp;amp;45, &amp;amp;46, &amp;amp;47, &amp;amp;48, &amp;amp;49&lt;br /&gt;
;;&lt;br /&gt;
;; (change this value to define the id of the sector to write to)&lt;br /&gt;
ld c,&amp;amp;c1&lt;br /&gt;
&lt;br /&gt;
;; execute command&lt;br /&gt;
rst 3&lt;br /&gt;
defw bios_write_sector&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: WRITE SECTOR&amp;quot; RSX has been found.&lt;br /&gt;
.bios_write_sector&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_write_sector&lt;br /&gt;
defb 5+&amp;amp;80				;; this is the &amp;quot;BIOS: WRITE SECTOR&amp;quot; RSX&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;;------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
.buffer &lt;br /&gt;
defs 512&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>CPCLER</name></author>	</entry>

	</feed>