dsktool 0.1.2 → 0.1.3
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.
- data/bin/dsktool.rb +14 -7
- data/doc/classes/AppleSoftFile.html +19 -18
- data/doc/classes/AppleSoftFile.src/M000011.html +4 -4
- data/doc/classes/AppleSoftFile.src/M000012.html +4 -4
- data/doc/classes/AppleSoftFile.src/M000013.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000014.html +18 -0
- data/doc/classes/BinaryFile.html +19 -18
- data/doc/classes/BinaryFile.src/M000024.html +4 -4
- data/doc/classes/BinaryFile.src/M000025.html +4 -5
- data/doc/classes/BinaryFile.src/M000026.html +19 -0
- data/doc/classes/BinaryFile.src/M000029.html +18 -0
- data/doc/classes/BinaryFile.src/M000030.html +18 -0
- data/doc/classes/BinaryFile.src/M000031.html +19 -0
- data/doc/classes/D65.html +10 -10
- data/doc/classes/D65.src/M000009.html +4 -50
- data/doc/classes/D65.src/M000010.html +18 -0
- data/doc/classes/D65.src/M000011.html +64 -0
- data/doc/classes/DOSDisk.html +15 -15
- data/doc/classes/DOSDisk.src/M000014.html +6 -5
- data/doc/classes/DOSDisk.src/M000015.html +6 -62
- data/doc/classes/DOSDisk.src/M000016.html +19 -0
- data/doc/classes/DOSDisk.src/M000017.html +76 -0
- data/doc/classes/DOSFile.html +19 -18
- data/doc/classes/DOSFile.src/M000027.html +8 -3
- data/doc/classes/DOSFile.src/M000028.html +3 -4
- data/doc/classes/DOSFile.src/M000029.html +18 -0
- data/doc/classes/DOSFile.src/M000032.html +22 -0
- data/doc/classes/DOSFile.src/M000033.html +17 -0
- data/doc/classes/DOSFile.src/M000034.html +18 -0
- data/doc/classes/DSK.html +35 -35
- data/doc/classes/DSK.src/M000017.html +8 -8
- data/doc/classes/DSK.src/M000018.html +8 -13
- data/doc/classes/DSK.src/M000019.html +8 -5
- data/doc/classes/DSK.src/M000020.html +20 -4
- data/doc/classes/DSK.src/M000021.html +4 -25
- data/doc/classes/DSK.src/M000022.html +4 -9
- data/doc/classes/DSK.src/M000023.html +40 -0
- data/doc/classes/DSK.src/M000024.html +23 -0
- data/doc/classes/IntegerBasicFile.html +19 -18
- data/doc/classes/IntegerBasicFile.src/M000005.html +4 -4
- data/doc/classes/IntegerBasicFile.src/M000006.html +4 -4
- data/doc/classes/IntegerBasicFile.src/M000007.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000008.html +18 -0
- data/doc/classes/RDoc.html +5 -5
- data/doc/classes/RDoc.src/M000033.html +40 -0
- data/doc/classes/RDoc.src/M000038.html +40 -0
- data/doc/classes/SCAsmFile.html +226 -0
- data/doc/classes/SCAsmFile.src/M000025.html +18 -0
- data/doc/classes/SCAsmFile.src/M000026.html +18 -0
- data/doc/classes/SCAsmFile.src/M000027.html +18 -0
- data/doc/classes/SCAsmFile.src/M000028.html +36 -0
- data/doc/classes/TestDOSDisks.html +31 -1
- data/doc/classes/TestDOSDisks.src/M000003.html +3 -21
- data/doc/classes/TestDOSDisks.src/M000004.html +41 -0
- data/doc/classes/TestDOSDisks.src/M000005.html +27 -0
- data/doc/classes/TestDisassembly.html +5 -5
- data/doc/classes/TestDisassembly.src/M000008.html +19 -0
- data/doc/classes/TestDisassembly.src/M000009.html +19 -0
- data/doc/classes/TextFile.html +19 -18
- data/doc/classes/TextFile.src/M000030.html +4 -4
- data/doc/classes/TextFile.src/M000031.html +4 -6
- data/doc/classes/TextFile.src/M000032.html +20 -0
- data/doc/classes/TextFile.src/M000035.html +18 -0
- data/doc/classes/TextFile.src/M000036.html +18 -0
- data/doc/classes/TextFile.src/M000037.html +20 -0
- data/doc/created.rid +1 -1
- data/doc/dot/f_3.dot +13 -0
- data/doc/dot/f_3.png +0 -0
- data/doc/files/bin/dsktool_rb.html +32 -22
- data/doc/files/lib/DOSDisk_rb.html +1 -1
- data/doc/files/lib/DOSFile_rb.html +5 -4
- data/doc/files/lib/DSK_rb.html +3 -1
- data/doc/files/test/tc_dos_disks_rb.html +1 -1
- data/doc/fr_class_index.html +1 -0
- data/doc/fr_method_index.html +36 -30
- data/lib/CHANGES.txt +5 -0
- data/lib/DOSDisk.rb +1 -1
- data/lib/DOSFile.rb +91 -0
- data/lib/DSK.rb +10 -2
- data/test/AAL_1.DSK +0 -0
- data/test/tc_dos_disks.rb +25 -3
- 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 | --
|
|
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.
|
|
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.
|
|
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=
|
|
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,
|
|
87
|
-
<area shape="RECT" coords="
|
|
88
|
-
<area shape="RECT" coords="
|
|
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="#
|
|
122
|
-
<a href="#
|
|
123
|
-
<a href="#
|
|
122
|
+
<a href="#M000014">file_extension</a>
|
|
123
|
+
<a href="#M000012">file_type</a>
|
|
124
|
+
<a href="#M000013">to_s</a>
|
|
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-
|
|
159
|
-
<a name="
|
|
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/
|
|
163
|
-
onclick="popupCode('AppleSoftFile.src/
|
|
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-
|
|
173
|
-
<a name="
|
|
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/
|
|
177
|
-
onclick="popupCode('AppleSoftFile.src/
|
|
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-
|
|
187
|
-
<a name="
|
|
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/
|
|
191
|
-
onclick="popupCode('AppleSoftFile.src/
|
|
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>
|
|
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
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-
|
|
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">"A"</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>
|
|
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
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-value str">"
|
|
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">"A"</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">".bas"</span>
|
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
data/doc/classes/BinaryFile.html
CHANGED
|
@@ -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,
|
|
87
|
-
<area shape="RECT" coords="
|
|
88
|
-
<area shape="RECT" coords="
|
|
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="#
|
|
102
|
-
<a href="#
|
|
103
|
-
<a href="#
|
|
102
|
+
<a href="#M000031">disassembly</a>
|
|
103
|
+
<a href="#M000030">file_extension</a>
|
|
104
|
+
<a href="#M000029">file_type</a>
|
|
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-
|
|
126
|
-
<a name="
|
|
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/
|
|
130
|
-
onclick="popupCode('BinaryFile.src/
|
|
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-
|
|
140
|
-
<a name="
|
|
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/
|
|
144
|
-
onclick="popupCode('BinaryFile.src/
|
|
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-
|
|
154
|
-
<a name="
|
|
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/
|
|
158
|
-
onclick="popupCode('BinaryFile.src/
|
|
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>
|
|
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
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-value str">"
|
|
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">"B"</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>
|
|
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
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
|
|
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">".bin"</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">"B"</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">".bin"</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="#
|
|
96
|
-
<a href="#
|
|
95
|
+
<a href="#M000010">annotations</a>
|
|
96
|
+
<a href="#M000011">disassemble</a>
|
|
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-
|
|
137
|
-
<a name="
|
|
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/
|
|
141
|
-
onclick="popupCode('D65.src/
|
|
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"}
|
|
|
151
151
|
</div>
|
|
152
152
|
</div>
|
|
153
153
|
|
|
154
|
-
<div id="method-
|
|
155
|
-
<a name="
|
|
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/
|
|
159
|
-
onclick="popupCode('D65.src/
|
|
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>
|