dsktool 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. data/bin/dsktool.rb +157 -0
  2. data/doc/classes/AppleSoftFile.html +215 -0
  3. data/doc/classes/AppleSoftFile.src/M000005.html +18 -0
  4. data/doc/classes/AppleSoftFile.src/M000006.html +18 -0
  5. data/doc/classes/AppleSoftFile.src/M000008.html +18 -0
  6. data/doc/classes/AppleSoftFile.src/M000009.html +18 -0
  7. data/doc/classes/AppleSoftFile.src/M000010.html +18 -0
  8. data/doc/classes/AppleSoftFile.src/M000011.html +18 -0
  9. data/doc/classes/AppleSoftFile.src/M000012.html +18 -0
  10. data/doc/classes/BinaryFile.html +179 -0
  11. data/doc/classes/BinaryFile.src/M000015.html +18 -0
  12. data/doc/classes/BinaryFile.src/M000020.html +18 -0
  13. data/doc/classes/BinaryFile.src/M000021.html +18 -0
  14. data/doc/classes/BinaryFile.src/M000022.html +19 -0
  15. data/doc/classes/BinaryFile.src/M000023.html +18 -0
  16. data/doc/classes/BinaryFile.src/M000024.html +18 -0
  17. data/doc/classes/BinaryFile.src/M000025.html +19 -0
  18. data/doc/classes/D65.html +180 -0
  19. data/doc/classes/D65.src/M000002.html +18 -0
  20. data/doc/classes/D65.src/M000003.html +18 -0
  21. data/doc/classes/D65.src/M000004.html +64 -0
  22. data/doc/classes/D65.src/M000005.html +18 -0
  23. data/doc/classes/D65.src/M000006.html +18 -0
  24. data/doc/classes/D65.src/M000007.html +18 -0
  25. data/doc/classes/D65.src/M000008.html +18 -0
  26. data/doc/classes/D65.src/M000009.html +64 -0
  27. data/doc/classes/DOSDisk.html +272 -0
  28. data/doc/classes/DOSDisk.src/M000007.html +20 -0
  29. data/doc/classes/DOSDisk.src/M000008.html +77 -0
  30. data/doc/classes/DOSDisk.src/M000010.html +20 -0
  31. data/doc/classes/DOSDisk.src/M000011.html +20 -0
  32. data/doc/classes/DOSDisk.src/M000012.html +19 -0
  33. data/doc/classes/DOSDisk.src/M000013.html +20 -0
  34. data/doc/classes/DOSDisk.src/M000014.html +19 -0
  35. data/doc/classes/DOSDisk.src/M000015.html +76 -0
  36. data/doc/classes/DOSFile.html +221 -0
  37. data/doc/classes/DOSFile.src/M000016.html +22 -0
  38. data/doc/classes/DOSFile.src/M000017.html +17 -0
  39. data/doc/classes/DOSFile.src/M000018.html +18 -0
  40. data/doc/classes/DOSFile.src/M000021.html +22 -0
  41. data/doc/classes/DOSFile.src/M000022.html +22 -0
  42. data/doc/classes/DOSFile.src/M000023.html +22 -0
  43. data/doc/classes/DOSFile.src/M000024.html +17 -0
  44. data/doc/classes/DOSFile.src/M000025.html +18 -0
  45. data/doc/classes/DOSFile.src/M000026.html +22 -0
  46. data/doc/classes/DOSFile.src/M000027.html +17 -0
  47. data/doc/classes/DOSFile.src/M000028.html +18 -0
  48. data/doc/classes/DSK.html +285 -0
  49. data/doc/classes/DSK.src/M000009.html +22 -0
  50. data/doc/classes/DSK.src/M000010.html +27 -0
  51. data/doc/classes/DSK.src/M000011.html +19 -0
  52. data/doc/classes/DSK.src/M000012.html +18 -0
  53. data/doc/classes/DSK.src/M000013.html +22 -0
  54. data/doc/classes/DSK.src/M000014.html +22 -0
  55. data/doc/classes/DSK.src/M000015.html +22 -0
  56. data/doc/classes/DSK.src/M000016.html +22 -0
  57. data/doc/classes/DSK.src/M000017.html +22 -0
  58. data/doc/classes/DSK.src/M000018.html +27 -0
  59. data/doc/classes/DSK.src/M000019.html +19 -0
  60. data/doc/classes/DSK.src/M000020.html +18 -0
  61. data/doc/classes/DSK.src/M000021.html +40 -0
  62. data/doc/classes/DSK.src/M000022.html +23 -0
  63. data/doc/classes/IntegerBasicFile.html +276 -0
  64. data/doc/classes/IntegerBasicFile.src/M000001.html +18 -0
  65. data/doc/classes/IntegerBasicFile.src/M000004.html +18 -0
  66. data/doc/classes/IntegerBasicFile.src/M000005.html +18 -0
  67. data/doc/classes/IntegerBasicFile.src/M000006.html +18 -0
  68. data/doc/classes/TestDOSDisks.html +174 -0
  69. data/doc/classes/TestDOSDisks.src/M000001.html +19 -0
  70. data/doc/classes/TestDOSDisks.src/M000002.html +19 -0
  71. data/doc/classes/TestDOSDisks.src/M000003.html +43 -0
  72. data/doc/classes/TestDisassembly.html +144 -0
  73. data/doc/classes/TestDisassembly.src/M000005.html +19 -0
  74. data/doc/classes/TestDisassembly.src/M000006.html +19 -0
  75. data/doc/classes/TestDisassembly.src/M000007.html +19 -0
  76. data/doc/classes/TextFile.html +179 -0
  77. data/doc/classes/TextFile.src/M000019.html +18 -0
  78. data/doc/classes/TextFile.src/M000020.html +20 -0
  79. data/doc/classes/TextFile.src/M000024.html +18 -0
  80. data/doc/classes/TextFile.src/M000025.html +18 -0
  81. data/doc/classes/TextFile.src/M000026.html +18 -0
  82. data/doc/classes/TextFile.src/M000027.html +20 -0
  83. data/doc/classes/TextFile.src/M000029.html +18 -0
  84. data/doc/classes/TextFile.src/M000030.html +18 -0
  85. data/doc/classes/TextFile.src/M000031.html +20 -0
  86. data/doc/created.rid +1 -0
  87. data/doc/dot/f_0.dot +14 -0
  88. data/doc/dot/f_0.png +0 -0
  89. data/doc/dot/f_1.dot +23 -0
  90. data/doc/dot/f_1.png +0 -0
  91. data/doc/dot/f_2.dot +32 -0
  92. data/doc/dot/f_2.png +0 -0
  93. data/doc/dot/f_3.dot +75 -0
  94. data/doc/dot/f_3.png +0 -0
  95. data/doc/dot/f_4.dot +23 -0
  96. data/doc/dot/f_4.png +0 -0
  97. data/doc/dot/f_5.dot +32 -0
  98. data/doc/dot/f_5.png +0 -0
  99. data/doc/dot/f_6.dot +32 -0
  100. data/doc/dot/f_6.png +0 -0
  101. data/doc/dot/f_7.dot +14 -0
  102. data/doc/dot/f_7.png +0 -0
  103. data/doc/files/bin/dsktool_rb.html +171 -0
  104. data/doc/files/lib/D65_rb.html +114 -0
  105. data/doc/files/lib/DOSDisk_rb.html +115 -0
  106. data/doc/files/lib/DOSFile_rb.html +118 -0
  107. data/doc/files/lib/DSK_rb.html +114 -0
  108. data/doc/files/test/tc_disassembly_rb.html +117 -0
  109. data/doc/files/test/tc_dos_disks_rb.html +116 -0
  110. data/doc/files/test/test_dos_disks_rb.html +109 -0
  111. data/doc/files/test/ts_test_all_rb.html +114 -0
  112. data/doc/fr_class_index.html +36 -0
  113. data/doc/fr_file_index.html +34 -0
  114. data/doc/fr_method_index.html +57 -0
  115. data/doc/index.html +24 -0
  116. data/lib/D65.rb +178 -0
  117. data/lib/DOSDisk.rb +186 -0
  118. data/lib/DOSFile.rb +356 -0
  119. data/lib/DSK.rb +121 -0
  120. data/lib/a2_symbols.yaml +199 -0
  121. data/test/dos33_with_adt.dsk +0 -0
  122. data/test/tc_disassembly.rb +16 -0
  123. data/test/tc_dos_disks.rb +49 -0
  124. data/test/ts_test_all.rb +5 -0
  125. metadata +184 -0
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 6</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">locked</span>,<span class="ruby-identifier">sector_count</span>,<span class="ruby-identifier">contents</span>)
15
+ <span class="ruby-ivar">@filename</span>=<span class="ruby-identifier">filename</span>
16
+ <span class="ruby-ivar">@locked</span>=<span class="ruby-identifier">locked</span>
17
+ <span class="ruby-ivar">@sector_count</span>=<span class="ruby-identifier">sector_count</span>
18
+ <span class="ruby-ivar">@file_type</span>=<span class="ruby-value str">&quot;?&quot;</span>
19
+ <span class="ruby-ivar">@contents</span>=<span class="ruby-identifier">contents</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>file_type (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 15</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_type</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>to_s (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 19</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-value str">&quot;&lt;TBD&gt;&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 8</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">locked</span>,<span class="ruby-identifier">sector_count</span>,<span class="ruby-identifier">contents</span>)
15
+ <span class="ruby-ivar">@filename</span>=<span class="ruby-identifier">filename</span>
16
+ <span class="ruby-ivar">@locked</span>=<span class="ruby-identifier">locked</span>
17
+ <span class="ruby-ivar">@sector_count</span>=<span class="ruby-identifier">sector_count</span>
18
+ <span class="ruby-ivar">@file_type</span>=<span class="ruby-value str">&quot;?&quot;</span>
19
+ <span class="ruby-ivar">@contents</span>=<span class="ruby-identifier">contents</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 10</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">locked</span>,<span class="ruby-identifier">sector_count</span>,<span class="ruby-identifier">contents</span>)
15
+ <span class="ruby-ivar">@filename</span>=<span class="ruby-identifier">filename</span>
16
+ <span class="ruby-ivar">@locked</span>=<span class="ruby-identifier">locked</span>
17
+ <span class="ruby-ivar">@sector_count</span>=<span class="ruby-identifier">sector_count</span>
18
+ <span class="ruby-ivar">@file_type</span>=<span class="ruby-value str">&quot;?&quot;</span>
19
+ <span class="ruby-ivar">@contents</span>=<span class="ruby-identifier">contents</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 10</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">locked</span>,<span class="ruby-identifier">sector_count</span>,<span class="ruby-identifier">contents</span>)
15
+ <span class="ruby-ivar">@filename</span>=<span class="ruby-identifier">filename</span>
16
+ <span class="ruby-ivar">@locked</span>=<span class="ruby-identifier">locked</span>
17
+ <span class="ruby-ivar">@sector_count</span>=<span class="ruby-identifier">sector_count</span>
18
+ <span class="ruby-ivar">@file_type</span>=<span class="ruby-value str">&quot;?&quot;</span>
19
+ <span class="ruby-ivar">@contents</span>=<span class="ruby-identifier">contents</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>file_type (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 19</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_type</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>to_s (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 22</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-ivar">@contents</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 10</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">locked</span>,<span class="ruby-identifier">sector_count</span>,<span class="ruby-identifier">contents</span>)
15
+ <span class="ruby-ivar">@filename</span>=<span class="ruby-identifier">filename</span>
16
+ <span class="ruby-ivar">@locked</span>=<span class="ruby-identifier">locked</span>
17
+ <span class="ruby-ivar">@sector_count</span>=<span class="ruby-identifier">sector_count</span>
18
+ <span class="ruby-ivar">@file_type</span>=<span class="ruby-value str">&quot;?&quot;</span>
19
+ <span class="ruby-ivar">@contents</span>=<span class="ruby-identifier">contents</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>file_type (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 19</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_type</span>
15
+ <span class="ruby-keyword kw">end</span></pre>
16
+ </body>
17
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>to_s (DOSFile)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 22</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-ivar">@contents</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,285 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: DSK</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">DSK</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/DSK_rb.html">
59
+ lib/DSK.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+ <div id="diagram">
81
+ <map id="map" name="map">
82
+ <area shape="RECT" coords="5,5,77,53" href="DSK.html" alt="DSK">
83
+ </map>
84
+ <img src="../dot/f_4.png" usemap="#map" border=0 alt="TopLevel">
85
+ </div>
86
+
87
+ <div id="description">
88
+ <p>
89
+ For manipulating <a href="DSK.html">DSK</a> files, as created by ADT (<a
90
+ href="http://adt.berlios.de">adt.berlios.de</a>) and ADTPRo (<a
91
+ href="http://adtpro.sourceforge.net">adtpro.sourceforge.net</a>) used by
92
+ many Apple 2 emulators.
93
+ </p>
94
+
95
+ </div>
96
+
97
+
98
+ </div>
99
+
100
+ <div id="method-list">
101
+ <h3 class="section-bar">Methods</h3>
102
+
103
+ <div class="name-list">
104
+ <a href="#M000022">dump_disk</a>&nbsp;&nbsp;
105
+ <a href="#M000021">dump_sector</a>&nbsp;&nbsp;
106
+ <a href="#M000020">files</a>&nbsp;&nbsp;
107
+ <a href="#M000019">get_sector</a>&nbsp;&nbsp;
108
+ <a href="#M000016">is_dos33?</a>&nbsp;&nbsp;
109
+ <a href="#M000017">new</a>&nbsp;&nbsp;
110
+ <a href="#M000018">read</a>&nbsp;&nbsp;
111
+ </div>
112
+ </div>
113
+
114
+ </div>
115
+
116
+
117
+ <!-- if includes -->
118
+
119
+ <div id="section">
120
+
121
+
122
+ <div id="constants-list">
123
+ <h3 class="section-bar">Constants</h3>
124
+
125
+ <div class="name-list">
126
+ <table summary="Constants">
127
+ <tr class="top-aligned-row context-row">
128
+ <td class="context-item-name">DSK_FILE_LENGTH</td>
129
+ <td>=</td>
130
+ <td class="context-item-value">143360</td>
131
+ </tr>
132
+ </table>
133
+ </div>
134
+ </div>
135
+
136
+
137
+
138
+ <div id="attribute-list">
139
+ <h3 class="section-bar">Attributes</h3>
140
+
141
+ <div class="name-list">
142
+ <table>
143
+ <tr class="top-aligned-row context-row">
144
+ <td class="context-item-name">file_bytes</td>
145
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
146
+ <td class="context-item-desc"></td>
147
+ </tr>
148
+ </table>
149
+ </div>
150
+ </div>
151
+
152
+
153
+
154
+ <!-- if method_list -->
155
+ <div id="methods">
156
+ <h3 class="section-bar">Public Class methods</h3>
157
+
158
+ <div id="method-M000017" class="method-detail">
159
+ <a name="M000017"></a>
160
+
161
+ <div class="method-heading">
162
+ <a href="DSK.src/M000017.html" target="Code" class="method-signature"
163
+ onclick="popupCode('DSK.src/M000017.html');return false;">
164
+ <span class="method-name">new</span><span class="method-args">(file_bytes=&quot;\0&quot;*DSK_FILE_LENGTH)</span>
165
+ </a>
166
+ </div>
167
+
168
+ <div class="method-description">
169
+ <p>
170
+ create a new <a href="DSK.html">DSK</a> structure (in memory, not on disk)
171
+ </p>
172
+ </div>
173
+ </div>
174
+
175
+ <div id="method-M000018" class="method-detail">
176
+ <a name="M000018"></a>
177
+
178
+ <div class="method-heading">
179
+ <a href="DSK.src/M000018.html" target="Code" class="method-signature"
180
+ onclick="popupCode('DSK.src/M000018.html');return false;">
181
+ <span class="method-name">read</span><span class="method-args">(filename)</span>
182
+ </a>
183
+ </div>
184
+
185
+ <div class="method-description">
186
+ <p>
187
+ read in an existing <a href="DSK.html">DSK</a> file (must exist)
188
+ </p>
189
+ </div>
190
+ </div>
191
+
192
+ <h3 class="section-bar">Public Instance methods</h3>
193
+
194
+ <div id="method-M000022" class="method-detail">
195
+ <a name="M000022"></a>
196
+
197
+ <div class="method-heading">
198
+ <a href="DSK.src/M000022.html" target="Code" class="method-signature"
199
+ onclick="popupCode('DSK.src/M000022.html');return false;">
200
+ <span class="method-name">dump_disk</span><span class="method-args">()</span>
201
+ </a>
202
+ </div>
203
+
204
+ <div class="method-description">
205
+ <p>
206
+ print to stdout a formatted hex dump of all sectors on all tracks
207
+ </p>
208
+ </div>
209
+ </div>
210
+
211
+ <div id="method-M000021" class="method-detail">
212
+ <a name="M000021"></a>
213
+
214
+ <div class="method-heading">
215
+ <a href="DSK.src/M000021.html" target="Code" class="method-signature"
216
+ onclick="popupCode('DSK.src/M000021.html');return false;">
217
+ <span class="method-name">dump_sector</span><span class="method-args">(track,sector)</span>
218
+ </a>
219
+ </div>
220
+
221
+ <div class="method-description">
222
+ <p>
223
+ print to stdout a formatted hex dump of a single 256 byte sector
224
+ </p>
225
+ </div>
226
+ </div>
227
+
228
+ <div id="method-M000020" class="method-detail">
229
+ <a name="M000020"></a>
230
+
231
+ <div class="method-heading">
232
+ <a href="DSK.src/M000020.html" target="Code" class="method-signature"
233
+ onclick="popupCode('DSK.src/M000020.html');return false;">
234
+ <span class="method-name">files</span><span class="method-args">()</span>
235
+ </a>
236
+ </div>
237
+
238
+ <div class="method-description">
239
+ </div>
240
+ </div>
241
+
242
+ <div id="method-M000019" class="method-detail">
243
+ <a name="M000019"></a>
244
+
245
+ <div class="method-heading">
246
+ <a href="DSK.src/M000019.html" target="Code" class="method-signature"
247
+ onclick="popupCode('DSK.src/M000019.html');return false;">
248
+ <span class="method-name">get_sector</span><span class="method-args">(track,sector)</span>
249
+ </a>
250
+ </div>
251
+
252
+ <div class="method-description">
253
+ </div>
254
+ </div>
255
+
256
+ <div id="method-M000016" class="method-detail">
257
+ <a name="M000016"></a>
258
+
259
+ <div class="method-heading">
260
+ <a href="DSK.src/M000016.html" target="Code" class="method-signature"
261
+ onclick="popupCode('DSK.src/M000016.html');return false;">
262
+ <span class="method-name">is_dos33?</span><span class="method-args">()</span>
263
+ </a>
264
+ </div>
265
+
266
+ <div class="method-description">
267
+ <p>
268
+ does this <a href="DSK.html">DSK</a> have a standard Apple DOS 3.3 VTOC?
269
+ </p>
270
+ </div>
271
+ </div>
272
+
273
+
274
+ </div>
275
+
276
+
277
+ </div>
278
+
279
+
280
+ <div id="validator-badges">
281
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
282
+ </div>
283
+
284
+ </body>
285
+ </html>