dsktool 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/bin/dsktool.rb +14 -7
  2. data/doc/classes/AppleSoftFile.html +19 -18
  3. data/doc/classes/AppleSoftFile.src/M000011.html +4 -4
  4. data/doc/classes/AppleSoftFile.src/M000012.html +4 -4
  5. data/doc/classes/AppleSoftFile.src/M000013.html +18 -0
  6. data/doc/classes/AppleSoftFile.src/M000014.html +18 -0
  7. data/doc/classes/BinaryFile.html +19 -18
  8. data/doc/classes/BinaryFile.src/M000024.html +4 -4
  9. data/doc/classes/BinaryFile.src/M000025.html +4 -5
  10. data/doc/classes/BinaryFile.src/M000026.html +19 -0
  11. data/doc/classes/BinaryFile.src/M000029.html +18 -0
  12. data/doc/classes/BinaryFile.src/M000030.html +18 -0
  13. data/doc/classes/BinaryFile.src/M000031.html +19 -0
  14. data/doc/classes/D65.html +10 -10
  15. data/doc/classes/D65.src/M000009.html +4 -50
  16. data/doc/classes/D65.src/M000010.html +18 -0
  17. data/doc/classes/D65.src/M000011.html +64 -0
  18. data/doc/classes/DOSDisk.html +15 -15
  19. data/doc/classes/DOSDisk.src/M000014.html +6 -5
  20. data/doc/classes/DOSDisk.src/M000015.html +6 -62
  21. data/doc/classes/DOSDisk.src/M000016.html +19 -0
  22. data/doc/classes/DOSDisk.src/M000017.html +76 -0
  23. data/doc/classes/DOSFile.html +19 -18
  24. data/doc/classes/DOSFile.src/M000027.html +8 -3
  25. data/doc/classes/DOSFile.src/M000028.html +3 -4
  26. data/doc/classes/DOSFile.src/M000029.html +18 -0
  27. data/doc/classes/DOSFile.src/M000032.html +22 -0
  28. data/doc/classes/DOSFile.src/M000033.html +17 -0
  29. data/doc/classes/DOSFile.src/M000034.html +18 -0
  30. data/doc/classes/DSK.html +35 -35
  31. data/doc/classes/DSK.src/M000017.html +8 -8
  32. data/doc/classes/DSK.src/M000018.html +8 -13
  33. data/doc/classes/DSK.src/M000019.html +8 -5
  34. data/doc/classes/DSK.src/M000020.html +20 -4
  35. data/doc/classes/DSK.src/M000021.html +4 -25
  36. data/doc/classes/DSK.src/M000022.html +4 -9
  37. data/doc/classes/DSK.src/M000023.html +40 -0
  38. data/doc/classes/DSK.src/M000024.html +23 -0
  39. data/doc/classes/IntegerBasicFile.html +19 -18
  40. data/doc/classes/IntegerBasicFile.src/M000005.html +4 -4
  41. data/doc/classes/IntegerBasicFile.src/M000006.html +4 -4
  42. data/doc/classes/IntegerBasicFile.src/M000007.html +18 -0
  43. data/doc/classes/IntegerBasicFile.src/M000008.html +18 -0
  44. data/doc/classes/RDoc.html +5 -5
  45. data/doc/classes/RDoc.src/M000033.html +40 -0
  46. data/doc/classes/RDoc.src/M000038.html +40 -0
  47. data/doc/classes/SCAsmFile.html +226 -0
  48. data/doc/classes/SCAsmFile.src/M000025.html +18 -0
  49. data/doc/classes/SCAsmFile.src/M000026.html +18 -0
  50. data/doc/classes/SCAsmFile.src/M000027.html +18 -0
  51. data/doc/classes/SCAsmFile.src/M000028.html +36 -0
  52. data/doc/classes/TestDOSDisks.html +31 -1
  53. data/doc/classes/TestDOSDisks.src/M000003.html +3 -21
  54. data/doc/classes/TestDOSDisks.src/M000004.html +41 -0
  55. data/doc/classes/TestDOSDisks.src/M000005.html +27 -0
  56. data/doc/classes/TestDisassembly.html +5 -5
  57. data/doc/classes/TestDisassembly.src/M000008.html +19 -0
  58. data/doc/classes/TestDisassembly.src/M000009.html +19 -0
  59. data/doc/classes/TextFile.html +19 -18
  60. data/doc/classes/TextFile.src/M000030.html +4 -4
  61. data/doc/classes/TextFile.src/M000031.html +4 -6
  62. data/doc/classes/TextFile.src/M000032.html +20 -0
  63. data/doc/classes/TextFile.src/M000035.html +18 -0
  64. data/doc/classes/TextFile.src/M000036.html +18 -0
  65. data/doc/classes/TextFile.src/M000037.html +20 -0
  66. data/doc/created.rid +1 -1
  67. data/doc/dot/f_3.dot +13 -0
  68. data/doc/dot/f_3.png +0 -0
  69. data/doc/files/bin/dsktool_rb.html +32 -22
  70. data/doc/files/lib/DOSDisk_rb.html +1 -1
  71. data/doc/files/lib/DOSFile_rb.html +5 -4
  72. data/doc/files/lib/DSK_rb.html +3 -1
  73. data/doc/files/test/tc_dos_disks_rb.html +1 -1
  74. data/doc/fr_class_index.html +1 -0
  75. data/doc/fr_method_index.html +36 -30
  76. data/lib/CHANGES.txt +5 -0
  77. data/lib/DOSDisk.rb +1 -1
  78. data/lib/DOSFile.rb +91 -0
  79. data/lib/DSK.rb +10 -2
  80. data/test/AAL_1.DSK +0 -0
  81. data/test/tc_dos_disks.rb +25 -3
  82. metadata +37 -1
data/bin/dsktool.rb CHANGED
@@ -3,12 +3,12 @@
3
3
  #
4
4
  # == Synopsis
5
5
  #
6
- # Manipulate DSK format files
6
+ # Manipulate DSK format files (as used by Apple 2 emulators)
7
7
  #
8
8
  # == Usage
9
9
  #
10
10
  # dsktool.rb [switches] <filename.dsk>
11
- # -c | --catalog display catalog
11
+ # -c | --log display catalog
12
12
  # -e | --extract FILENAME extract file by name (either to stdout,
13
13
  # or file specified by --output)
14
14
  # -h | --help display this message
@@ -17,16 +17,19 @@
17
17
  # -x | --explode extract all files
18
18
  # -v | --version show version number
19
19
  #
20
+ # Currently only works with DOS 3.3 format
21
+ # DSK images can be
22
+ #
20
23
  # examples:
21
- # dsktool.rb -c DOS3MASTR.dsk
24
+ # dsktool.rb -c DOS3MASTR.dsk.gz
22
25
  # dsktool.rb -l FID DOS3MASTR.dsk
23
26
  # dsktool.rb --list fid -o fid.asm DOS3MASTR.dsk
24
27
  # dsktool.rb --extract "COLOR DEMOSOFT" DOS3MASTR.dsk
25
28
  # dsktool.rb -e HELLO -o HELLO.bas DOS3MASTR.dsk
26
- # dsktool.rb -x DOS3MASTR.dsk
29
+ # dsktool.rb -x DOS3MASTR.dsk.gz
27
30
  #
28
31
 
29
- DSKTOOL_VERSION="0.1.2"
32
+ DSKTOOL_VERSION="0.1.3"
30
33
 
31
34
  require 'optparse'
32
35
  require 'rdoc/usage'
@@ -93,11 +96,15 @@ output_file= case
93
96
  end
94
97
 
95
98
  if(catalog) then
96
- dsk.dump_catalog
99
+ if (dsk.is_dos33?) then
100
+ dsk.dump_catalog
101
+ else
102
+ puts "#{filename} is not in DOS 3.3 format"
103
+ end
97
104
  end
98
105
 
99
106
  if(explode) then
100
- output_dir=filename.sub(/\.[^.]*$/,"")
107
+ output_dir=File.basename(filename,".*")
101
108
  if !(File.exists?(output_dir)) then
102
109
  Dir.mkdir(output_dir)
103
110
  end
@@ -83,9 +83,10 @@
83
83
  <map id="map" name="map">
84
84
  <area shape="RECT" coords="5,101,109,149" href="IntegerBasicFile.html" alt="IntegerBasicFile">
85
85
  <area shape="RECT" coords="133,101,227,149" href="AppleSoftFile.html" alt="AppleSoftFile">
86
- <area shape="RECT" coords="251,101,325,149" href="BinaryFile.html" alt="BinaryFile">
87
- <area shape="RECT" coords="197,5,269,53" href="DOSFile.html" alt="DOSFile">
88
- <area shape="RECT" coords="349,101,421,149" href="TextFile.html" alt="TextFile">
86
+ <area shape="RECT" coords="251,101,333,149" href="SCAsmFile.html" alt="SCAsmFile">
87
+ <area shape="RECT" coords="357,101,432,149" href="BinaryFile.html" alt="BinaryFile">
88
+ <area shape="RECT" coords="256,5,328,53" href="DOSFile.html" alt="DOSFile">
89
+ <area shape="RECT" coords="456,101,528,149" href="TextFile.html" alt="TextFile">
89
90
  </map>
90
91
  <img src="../dot/f_3.png" usemap="#map" border=0 alt="TopLevel">
91
92
  </div>
@@ -118,9 +119,9 @@ Applesoft file format:
118
119
  <h3 class="section-bar">Methods</h3>
119
120
 
120
121
  <div class="name-list">
121
- <a href="#M000012">file_extension</a>&nbsp;&nbsp;
122
- <a href="#M000010">file_type</a>&nbsp;&nbsp;
123
- <a href="#M000011">to_s</a>&nbsp;&nbsp;
122
+ <a href="#M000014">file_extension</a>&nbsp;&nbsp;
123
+ <a href="#M000012">file_type</a>&nbsp;&nbsp;
124
+ <a href="#M000013">to_s</a>&nbsp;&nbsp;
124
125
  </div>
125
126
  </div>
126
127
 
@@ -155,12 +156,12 @@ Applesoft file format:
155
156
  <div id="methods">
156
157
  <h3 class="section-bar">Public Instance methods</h3>
157
158
 
158
- <div id="method-M000012" class="method-detail">
159
- <a name="M000012"></a>
159
+ <div id="method-M000014" class="method-detail">
160
+ <a name="M000014"></a>
160
161
 
161
162
  <div class="method-heading">
162
- <a href="AppleSoftFile.src/M000012.html" target="Code" class="method-signature"
163
- onclick="popupCode('AppleSoftFile.src/M000012.html');return false;">
163
+ <a href="AppleSoftFile.src/M000014.html" target="Code" class="method-signature"
164
+ onclick="popupCode('AppleSoftFile.src/M000014.html');return false;">
164
165
  <span class="method-name">file_extension</span><span class="method-args">()</span>
165
166
  </a>
166
167
  </div>
@@ -169,12 +170,12 @@ Applesoft file format:
169
170
  </div>
170
171
  </div>
171
172
 
172
- <div id="method-M000010" class="method-detail">
173
- <a name="M000010"></a>
173
+ <div id="method-M000012" class="method-detail">
174
+ <a name="M000012"></a>
174
175
 
175
176
  <div class="method-heading">
176
- <a href="AppleSoftFile.src/M000010.html" target="Code" class="method-signature"
177
- onclick="popupCode('AppleSoftFile.src/M000010.html');return false;">
177
+ <a href="AppleSoftFile.src/M000012.html" target="Code" class="method-signature"
178
+ onclick="popupCode('AppleSoftFile.src/M000012.html');return false;">
178
179
  <span class="method-name">file_type</span><span class="method-args">()</span>
179
180
  </a>
180
181
  </div>
@@ -183,12 +184,12 @@ Applesoft file format:
183
184
  </div>
184
185
  </div>
185
186
 
186
- <div id="method-M000011" class="method-detail">
187
- <a name="M000011"></a>
187
+ <div id="method-M000013" class="method-detail">
188
+ <a name="M000013"></a>
188
189
 
189
190
  <div class="method-heading">
190
- <a href="AppleSoftFile.src/M000011.html" target="Code" class="method-signature"
191
- onclick="popupCode('AppleSoftFile.src/M000011.html');return false;">
191
+ <a href="AppleSoftFile.src/M000013.html" target="Code" class="method-signature"
192
+ onclick="popupCode('AppleSoftFile.src/M000013.html');return false;">
192
193
  <span class="method-name">to_s</span><span class="method-args">()</span>
193
194
  </a>
194
195
  </div>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>to_s (AppleSoftFile)</title>
8
+ <title>file_type (AppleSoftFile)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 275</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
- <span class="ruby-identifier">buffer_as_applesoft_file</span>(<span class="ruby-ivar">@contents</span>)
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 271</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_type</span>
15
+ <span class="ruby-value str">&quot;A&quot;</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>file_extension (AppleSoftFile)</title>
8
+ <title>file_type (AppleSoftFile)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 279</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_extension</span>
15
- <span class="ruby-value str">&quot;.bas&quot;</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 271</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_type</span>
15
+ <span class="ruby-value str">&quot;A&quot;</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </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 (AppleSoftFile)</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 275</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-identifier">buffer_as_applesoft_file</span>(<span class="ruby-ivar">@contents</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </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>file_extension (AppleSoftFile)</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 279</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_extension</span>
15
+ <span class="ruby-value str">&quot;.bas&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -83,9 +83,10 @@
83
83
  <map id="map" name="map">
84
84
  <area shape="RECT" coords="5,101,109,149" href="IntegerBasicFile.html" alt="IntegerBasicFile">
85
85
  <area shape="RECT" coords="133,101,227,149" href="AppleSoftFile.html" alt="AppleSoftFile">
86
- <area shape="RECT" coords="251,101,325,149" href="BinaryFile.html" alt="BinaryFile">
87
- <area shape="RECT" coords="197,5,269,53" href="DOSFile.html" alt="DOSFile">
88
- <area shape="RECT" coords="349,101,421,149" href="TextFile.html" alt="TextFile">
86
+ <area shape="RECT" coords="251,101,333,149" href="SCAsmFile.html" alt="SCAsmFile">
87
+ <area shape="RECT" coords="357,101,432,149" href="BinaryFile.html" alt="BinaryFile">
88
+ <area shape="RECT" coords="256,5,328,53" href="DOSFile.html" alt="DOSFile">
89
+ <area shape="RECT" coords="456,101,528,149" href="TextFile.html" alt="TextFile">
89
90
  </map>
90
91
  <img src="../dot/f_3.png" usemap="#map" border=0 alt="TopLevel">
91
92
  </div>
@@ -98,9 +99,9 @@
98
99
  <h3 class="section-bar">Methods</h3>
99
100
 
100
101
  <div class="name-list">
101
- <a href="#M000025">disassembly</a>&nbsp;&nbsp;
102
- <a href="#M000024">file_extension</a>&nbsp;&nbsp;
103
- <a href="#M000023">file_type</a>&nbsp;&nbsp;
102
+ <a href="#M000031">disassembly</a>&nbsp;&nbsp;
103
+ <a href="#M000030">file_extension</a>&nbsp;&nbsp;
104
+ <a href="#M000029">file_type</a>&nbsp;&nbsp;
104
105
  </div>
105
106
  </div>
106
107
 
@@ -122,12 +123,12 @@
122
123
  <div id="methods">
123
124
  <h3 class="section-bar">Public Instance methods</h3>
124
125
 
125
- <div id="method-M000025" class="method-detail">
126
- <a name="M000025"></a>
126
+ <div id="method-M000031" class="method-detail">
127
+ <a name="M000031"></a>
127
128
 
128
129
  <div class="method-heading">
129
- <a href="BinaryFile.src/M000025.html" target="Code" class="method-signature"
130
- onclick="popupCode('BinaryFile.src/M000025.html');return false;">
130
+ <a href="BinaryFile.src/M000031.html" target="Code" class="method-signature"
131
+ onclick="popupCode('BinaryFile.src/M000031.html');return false;">
131
132
  <span class="method-name">disassembly</span><span class="method-args">()</span>
132
133
  </a>
133
134
  </div>
@@ -136,12 +137,12 @@
136
137
  </div>
137
138
  </div>
138
139
 
139
- <div id="method-M000024" class="method-detail">
140
- <a name="M000024"></a>
140
+ <div id="method-M000030" class="method-detail">
141
+ <a name="M000030"></a>
141
142
 
142
143
  <div class="method-heading">
143
- <a href="BinaryFile.src/M000024.html" target="Code" class="method-signature"
144
- onclick="popupCode('BinaryFile.src/M000024.html');return false;">
144
+ <a href="BinaryFile.src/M000030.html" target="Code" class="method-signature"
145
+ onclick="popupCode('BinaryFile.src/M000030.html');return false;">
145
146
  <span class="method-name">file_extension</span><span class="method-args">()</span>
146
147
  </a>
147
148
  </div>
@@ -150,12 +151,12 @@
150
151
  </div>
151
152
  </div>
152
153
 
153
- <div id="method-M000023" class="method-detail">
154
- <a name="M000023"></a>
154
+ <div id="method-M000029" class="method-detail">
155
+ <a name="M000029"></a>
155
156
 
156
157
  <div class="method-heading">
157
- <a href="BinaryFile.src/M000023.html" target="Code" class="method-signature"
158
- onclick="popupCode('BinaryFile.src/M000023.html');return false;">
158
+ <a href="BinaryFile.src/M000029.html" target="Code" class="method-signature"
159
+ onclick="popupCode('BinaryFile.src/M000029.html');return false;">
159
160
  <span class="method-name">file_type</span><span class="method-args">()</span>
160
161
  </a>
161
162
  </div>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>file_extension (BinaryFile)</title>
8
+ <title>file_type (BinaryFile)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 49</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_extension</span>
15
- <span class="ruby-value str">&quot;.bin&quot;</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 45</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_type</span>
15
+ <span class="ruby-value str">&quot;B&quot;</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,15 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>disassembly (BinaryFile)</title>
8
+ <title>file_extension (BinaryFile)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 53</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">disassembly</span>
15
- <span class="ruby-identifier">start_address</span>=(<span class="ruby-ivar">@contents</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">+</span><span class="ruby-ivar">@contents</span>[<span class="ruby-value">1</span>]<span class="ruby-operator">*</span><span class="ruby-value">256</span>)
16
- <span class="ruby-constant">D65</span>.<span class="ruby-identifier">disassemble</span>(<span class="ruby-ivar">@contents</span>[<span class="ruby-value">2</span><span class="ruby-operator">..</span><span class="ruby-ivar">@contents</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>],<span class="ruby-identifier">start_address</span>)
13
+ <pre><span class="ruby-comment cmt"># File lib/DOSFile.rb, line 49</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_extension</span>
15
+ <span class="ruby-value str">&quot;.bin&quot;</span>
17
16
  <span class="ruby-keyword kw">end</span></pre>
18
17
  </body>
19
18
  </html>
@@ -0,0 +1,19 @@
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>disassembly (BinaryFile)</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 53</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">disassembly</span>
15
+ <span class="ruby-identifier">start_address</span>=(<span class="ruby-ivar">@contents</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">+</span><span class="ruby-ivar">@contents</span>[<span class="ruby-value">1</span>]<span class="ruby-operator">*</span><span class="ruby-value">256</span>)
16
+ <span class="ruby-constant">D65</span>.<span class="ruby-identifier">disassemble</span>(<span class="ruby-ivar">@contents</span>[<span class="ruby-value">2</span><span class="ruby-operator">..</span><span class="ruby-ivar">@contents</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>],<span class="ruby-identifier">start_address</span>)
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </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>file_type (BinaryFile)</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 45</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_type</span>
15
+ <span class="ruby-value str">&quot;B&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </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>file_extension (BinaryFile)</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 49</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_extension</span>
15
+ <span class="ruby-value str">&quot;.bin&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,19 @@
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>disassembly (BinaryFile)</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 53</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">disassembly</span>
15
+ <span class="ruby-identifier">start_address</span>=(<span class="ruby-ivar">@contents</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">+</span><span class="ruby-ivar">@contents</span>[<span class="ruby-value">1</span>]<span class="ruby-operator">*</span><span class="ruby-value">256</span>)
16
+ <span class="ruby-constant">D65</span>.<span class="ruby-identifier">disassemble</span>(<span class="ruby-ivar">@contents</span>[<span class="ruby-value">2</span><span class="ruby-operator">..</span><span class="ruby-ivar">@contents</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>],<span class="ruby-identifier">start_address</span>)
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
data/doc/classes/D65.html CHANGED
@@ -92,8 +92,8 @@
92
92
  <h3 class="section-bar">Methods</h3>
93
93
 
94
94
  <div class="name-list">
95
- <a href="#M000008">annotations</a>&nbsp;&nbsp;
96
- <a href="#M000009">disassemble</a>&nbsp;&nbsp;
95
+ <a href="#M000010">annotations</a>&nbsp;&nbsp;
96
+ <a href="#M000011">disassemble</a>&nbsp;&nbsp;
97
97
  </div>
98
98
  </div>
99
99
 
@@ -133,12 +133,12 @@
133
133
  <div id="methods">
134
134
  <h3 class="section-bar">Public Class methods</h3>
135
135
 
136
- <div id="method-M000008" class="method-detail">
137
- <a name="M000008"></a>
136
+ <div id="method-M000010" class="method-detail">
137
+ <a name="M000010"></a>
138
138
 
139
139
  <div class="method-heading">
140
- <a href="D65.src/M000008.html" target="Code" class="method-signature"
141
- onclick="popupCode('D65.src/M000008.html');return false;">
140
+ <a href="D65.src/M000010.html" target="Code" class="method-signature"
141
+ onclick="popupCode('D65.src/M000010.html');return false;">
142
142
  <span class="method-name">annotations</span><span class="method-args">()</span>
143
143
  </a>
144
144
  </div>
@@ -151,12 +151,12 @@ writes a ^G to stdout&quot;}
151
151
  </div>
152
152
  </div>
153
153
 
154
- <div id="method-M000009" class="method-detail">
155
- <a name="M000009"></a>
154
+ <div id="method-M000011" class="method-detail">
155
+ <a name="M000011"></a>
156
156
 
157
157
  <div class="method-heading">
158
- <a href="D65.src/M000009.html" target="Code" class="method-signature"
159
- onclick="popupCode('D65.src/M000009.html');return false;">
158
+ <a href="D65.src/M000011.html" target="Code" class="method-signature"
159
+ onclick="popupCode('D65.src/M000011.html');return false;">
160
160
  <span class="method-name">disassemble</span><span class="method-args">(buffer,start_address=0)</span>
161
161
  </a>
162
162
  </div>