doc/classes/AppleDos.src/M000224.html in ripxplore-0.8.0 vs doc/classes/AppleDos.src/M000224.html in ripxplore-0.11.0
- old
+ new
@@ -1,43 +1,18 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>delete_file (AppleDos)</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/AppleDos.rb, line 349</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">delete_file</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">filename</span>)
- <span class="ruby-identifier">this_files_catalog_slot</span>=<span class="ruby-identifier">find_catalog_slot</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">filename</span>)
- <span class="ruby-comment cmt">#if file not in catalog, do nothing</span>
- <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">this_files_catalog_slot</span>.<span class="ruby-identifier">nil?</span>
- <span class="ruby-identifier">file_descriptive_entry</span>=<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">get_sector</span>(<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">0</span>],<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">1</span>])[<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">2</span>],<span class="ruby-value">0x23</span>]
-
- <span class="ruby-comment cmt">#mark sector as free in sector usage list</span>
- <span class="ruby-identifier">sector_usage_bitmap_sector</span>=<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">get_sector</span>(<span class="ruby-identifier">vtoc_track_no</span>,<span class="ruby-identifier">vtoc_sector_no</span>)
- <span class="ruby-identifier">sectors_to_mark_available</span>=<span class="ruby-identifier">get_track_sector_list</span>(<span class="ruby-identifier">file_system_image</span>,<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0x00</span>],<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0x01</span>])
- <span class="ruby-identifier">sectors_to_mark_available</span><span class="ruby-operator"><<</span>[<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0x01</span>],<span class="ruby-identifier">file_descriptive_entry</span>[<span class="ruby-value">0x00</span>]]
-
- <span class="ruby-identifier">sectors_to_mark_available</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ts</span><span class="ruby-operator">|</span>
- <span class="ruby-identifier">offset_of_byte_containing_this_sector</span>=<span class="ruby-value">0x38</span><span class="ruby-operator">+</span>(<span class="ruby-identifier">ts</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">*</span><span class="ruby-value">4</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ts</span>[<span class="ruby-value">1</span>]<span class="ruby-operator"><</span><span class="ruby-value">8</span> <span class="ruby-keyword kw">then</span>
- <span class="ruby-identifier">offset_of_byte_containing_this_sector</span><span class="ruby-operator">+=</span><span class="ruby-value">1</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-identifier">byte_containing_this_sector</span>=<span class="ruby-identifier">sector_usage_bitmap_sector</span>[<span class="ruby-identifier">offset_of_byte_containing_this_sector</span>]
- <span class="ruby-identifier">byte_containing_this_sector</span>=<span class="ruby-identifier">byte_containing_this_sector</span><span class="ruby-operator">|</span>(<span class="ruby-value">2</span><span class="ruby-operator">**</span>(<span class="ruby-identifier">ts</span>[<span class="ruby-value">1</span>]<span class="ruby-operator">%</span><span class="ruby-value">8</span>))
- <span class="ruby-identifier">sector_usage_bitmap_sector</span>[<span class="ruby-identifier">offset_of_byte_containing_this_sector</span>]=<span class="ruby-identifier">byte_containing_this_sector</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">set_sector</span>(<span class="ruby-identifier">vtoc_track_no</span>,<span class="ruby-identifier">vtoc_sector_no</span>,<span class="ruby-identifier">sector_usage_bitmap_sector</span>)
-
- <span class="ruby-comment cmt">#mark slot as available in catalog</span>
- <span class="ruby-identifier">catalog_sector</span>=<span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">get_sector</span>(<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">0</span>],<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">1</span>])
- <span class="ruby-identifier">catalog_sector</span>[<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">2</span>]<span class="ruby-operator">+</span><span class="ruby-value">0x20</span>]=<span class="ruby-identifier">catalog_sector</span>[<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">2</span>]] <span class="ruby-comment cmt">#save the current "first track no" in last byte of filename</span>
- <span class="ruby-identifier">catalog_sector</span>[<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">2</span>]]=<span class="ruby-value">0x</span><span class="ruby-constant">FF</span>
- <span class="ruby-identifier">file_system_image</span>.<span class="ruby-identifier">set_sector</span>(<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">0</span>],<span class="ruby-identifier">this_files_catalog_slot</span>[<span class="ruby-value">1</span>],<span class="ruby-identifier">catalog_sector</span>)
- <span class="ruby-keyword kw">end</span></pre>
-</body>
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>host_system (AppleDos)</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/AppleDos.rb, line 88</span>
+<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">host_system</span>
+ <span class="ruby-constant">Apple2</span>
+<span class="ruby-keyword kw">end</span></pre>
+</body>
</html>
\ No newline at end of file