doc/classes/CbmDos.src/M000105.html in ripxplore-0.14.0 vs doc/classes/CbmDos.src/M000105.html in ripxplore-0.14.1
- old
+ new
@@ -8,10 +8,10 @@
<title>mark_sector_as_free (CbmDos)</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/file_systems/CbmDos.rb, line 212</span>
+ <pre><span class="ruby-comment cmt"># File lib/file_systems/CbmDos.rb, line 216</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">mark_sector_as_free</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">track_no</span>,<span class="ruby-identifier">sector_no</span>)
<span class="ruby-identifier">bam</span>=<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">get_sector</span>(<span class="ruby-value">18</span>,<span class="ruby-value">0</span>)
<span class="ruby-identifier">bam_entry_offset</span>=<span class="ruby-identifier">track_no</span><span class="ruby-operator">*</span><span class="ruby-value">4</span>
<span class="ruby-identifier">sector_offset</span>=<span class="ruby-identifier">sector_no</span><span class="ruby-operator">/</span><span class="ruby-value">8</span>
<span class="ruby-identifier">bitmask</span>=<span class="ruby-value">2</span><span class="ruby-operator">**</span>(<span class="ruby-identifier">sector_no</span> <span class="ruby-operator">%</span> <span class="ruby-value">8</span>)
\ No newline at end of file