dsktool 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
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
data/bin/dsktool.rb ADDED
@@ -0,0 +1,157 @@
1
+ #
2
+ # dsktool
3
+ #
4
+ # == Synopsis
5
+ #
6
+ # Manipulate DSK format files
7
+ #
8
+ # == Usage
9
+ #
10
+ # dsktool.rb [switches] <filename.dsk>
11
+ # -c | --catalog display catalog
12
+ # -l | --list FILENAME monitor style listing (disassembles 65C02 opcodes)
13
+ # -e | --extract FILENAME extract file by name (either to stdout,
14
+ # or file specified by --output)
15
+ # -h | --help display this message
16
+ # -o | --output FILENAME specify name to save extracted file as
17
+ # -x | --explode extract all files
18
+ # -v | --version show version number
19
+ #
20
+ # examples:
21
+ # dsktool -c DOS3MASTR.dsk
22
+ # dsktool -l FID DOS3MASTR.dsk
23
+ # dsktool -d fid -o fid.asm DOS3MASTR.dsk
24
+ # dsktool -e "COLOR DEMOSOFT" DOS3MASTR.dsk
25
+ # dsktool -e HELLO -o HELLO.bas DOS3MASTR.dsk
26
+ # dsktool -x DOS3MASTR.dsk
27
+ #
28
+
29
+ DSKTOOL_VERSION="0.1.1"
30
+
31
+ require 'optparse'
32
+ require 'rdoc/usage'
33
+
34
+ #due to a bug in rdoc, tghe Usage won't work correctly when run from a gem executable
35
+ # see http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/211297
36
+ # Display usage from the given file
37
+ def RDoc.usage_from_file(input_file, *args)
38
+ comment = File.open(input_file) do |file|
39
+ RDoc.find_comment(file)
40
+ end
41
+ comment = comment.gsub(/^\s*#/, '')
42
+
43
+ markup = SM::SimpleMarkup.new
44
+ flow_convertor = SM::ToFlow.new
45
+
46
+ flow = markup.convert(comment, flow_convertor)
47
+
48
+ format = "plain"
49
+
50
+ unless args.empty?
51
+ flow = extract_sections(flow, args)
52
+ end
53
+
54
+ options = RI::Options.instance
55
+ if args = ENV["RI"]
56
+ options.parse(args.split)
57
+ end
58
+ formatter = options.formatter.new(options, "")
59
+ formatter.display_flow(flow)
60
+ exit
61
+ end
62
+
63
+
64
+ catalog=false
65
+ explode=false
66
+ output_filename=nil
67
+ extract_filename=nil
68
+ list_filename=nil
69
+ explode_directory=nil
70
+ opts=OptionParser.new
71
+ opts.on("-h","--help") {RDoc::usage_from_file(__FILE__)}
72
+ opts.on("-v","--version") do
73
+ puts "dsktool.rb "+DSKTOOL_VERSION
74
+ exit
75
+ end
76
+ opts.on("-c","--catalog") {catalog=true}
77
+ opts.on("-x","--explode") {explode=true}
78
+ opts.on("-l","--list FILENAME",String) {|val| list_filename=val.upcase}
79
+ opts.on("-e","--extract FILENAME",String) {|val| extract_filename=val.upcase}
80
+ opts.on("-o","--output FILENAME",String) {|val| output_filename=val}
81
+ filename=opts.parse(ARGV)[0] rescue RDoc::usage_from_file(__FILE__,'Usage')
82
+ RDoc::usage_from_file(__FILE__,'Usage') if (filename.nil?)
83
+
84
+ #make sure the relevant folder with our libraries is in the require path
85
+ lib_path=File.expand_path(File.dirname(__FILE__)+"//..//lib")
86
+ $:.unshift(lib_path) unless $:.include?(lib_path)
87
+
88
+ require 'DSK'
89
+ dsk=DSK.read(filename)
90
+ output_file= case
91
+ when (output_filename.nil?) then STDOUT
92
+ else File.open(output_filename,"wb")
93
+ end
94
+
95
+ if(catalog) then
96
+ dsk.dump_catalog
97
+ end
98
+
99
+ if(explode) then
100
+ output_dir=filename.sub(/\.[^.]*$/,"")
101
+ if !(File.exists?(output_dir)) then
102
+ Dir.mkdir(output_dir)
103
+ end
104
+
105
+ dsk.files.each_value do |f|
106
+ output_filename=output_dir+"/"+f.filename+f.file_extension
107
+ File.open(output_filename,"wb") <<f
108
+ end
109
+ end
110
+
111
+
112
+ if (!extract_filename.nil?) then
113
+ file=dsk.files[extract_filename]
114
+ if file.nil? then
115
+ puts "'#{extract_filename}' not found in #{filename}"
116
+ else
117
+ output_file<<file
118
+ end
119
+ end
120
+
121
+ if (!list_filename.nil?) then
122
+ file=dsk.files[list_filename]
123
+ if file.nil? then
124
+ puts "'#{list_filename}' not found in #{filename}"
125
+ else
126
+ if file.instance_of?(BinaryFile)
127
+ output_file<<file.disassembly
128
+ else
129
+ puts "'#{list_filename}' is not a binary file"
130
+ end
131
+ end
132
+ end
133
+
134
+ # == Author
135
+ # Jonno Downes (jonno@jamtronix.com)
136
+ #
137
+ # == Copyright
138
+ # Copyright (c) 2007 Jonno Downes (jonno@jamtronix.com)
139
+ #
140
+ #Permission is hereby granted, free of charge, to any person obtaining
141
+ #a copy of this software and associated documentation files (the
142
+ #"Software"), to deal in the Software without restriction, including
143
+ #without limitation the rights to use, copy, modify, merge, publish,
144
+ #distribute, sublicense, and/or sell copies of the Software, and to
145
+ #permit persons to whom the Software is furnished to do so, subject to
146
+ #the following conditions:
147
+ #
148
+ # The above copyright notice and this permission notice shall be
149
+ # included in all copies or substantial portions of the Software.
150
+ #
151
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
152
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
153
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
154
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
155
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
156
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
157
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,215 @@
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: AppleSoftFile</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">AppleSoftFile</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/DOSFile_rb.html">
59
+ lib/DOSFile.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
+ <a href="DOSFile.html">
69
+ DOSFile
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+ <div id="diagram">
83
+ <map id="map" name="map">
84
+ <area shape="RECT" coords="5,101,109,149" href="IntegerBasicFile.html" alt="IntegerBasicFile">
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">
89
+ </map>
90
+ <img src="../dot/f_3.png" usemap="#map" border=0 alt="TopLevel">
91
+ </div>
92
+
93
+ <div id="description">
94
+ <pre>
95
+ Adapted from FID.C -- a utility to browse Apple II .DSK image files by Paul Schlyter (pausch@saaf.se)
96
+ </pre>
97
+ <p>
98
+ Applesoft file format:
99
+ </p>
100
+ <pre>
101
+ &lt;Length_of_file&gt; (16-bit little endian)
102
+ &lt;Line&gt;
103
+ ......
104
+ &lt;Line&gt;
105
+ where &lt;Line&gt; is:
106
+ &lt;Next addr&gt; (16-bit little endian)
107
+ &lt;Line no&gt; (16-bit little endian: 0-65535)
108
+ &lt;Tokens and/or characters&gt;
109
+ &lt;End-of-line marker: $00 $00 bytes&gt;
110
+ </pre>
111
+
112
+ </div>
113
+
114
+
115
+ </div>
116
+
117
+ <div id="method-list">
118
+ <h3 class="section-bar">Methods</h3>
119
+
120
+ <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;
124
+ </div>
125
+ </div>
126
+
127
+ </div>
128
+
129
+
130
+ <!-- if includes -->
131
+
132
+ <div id="section">
133
+
134
+
135
+ <div id="constants-list">
136
+ <h3 class="section-bar">Constants</h3>
137
+
138
+ <div class="name-list">
139
+ <table summary="Constants">
140
+ <tr class="top-aligned-row context-row">
141
+ <td class="context-item-name">APPLESOFT_TOKENS</td>
142
+ <td>=</td>
143
+ <td class="context-item-value">[ &quot;END&quot;,&quot;FOR&quot;,&quot;NEXT&quot;,&quot;DATA&quot;,&quot;INPUT&quot;,&quot;DEL&quot;,&quot;DIM&quot;,&quot;READ&quot;, &quot;GR&quot;,&quot;TEXT&quot;,&quot;PR#&quot;,&quot;IN#&quot;,&quot;CALL&quot;,&quot;PLOT&quot;,&quot;HLIN&quot;,&quot;VLIN&quot;, &quot;HGR2&quot;,&quot;HGR&quot;,&quot;HCOLOR=&quot;,&quot;HPLOT&quot;,&quot;DRAW&quot;,&quot;XDRAW&quot;,&quot;HTAB&quot;, &quot;HOME&quot;,&quot;ROT=&quot;,&quot;SCALE=&quot;,&quot;SHLOAD&quot;,&quot;TRACE&quot;,&quot;NOTRACE&quot;, &quot;NORMAL&quot;,&quot;INVERSE&quot;,&quot;FLASH&quot;,&quot;COLOR=&quot;,&quot;POP&quot;,&quot;VTAB&quot;, &quot;HIMEM=&quot;,&quot;LOMEM=&quot;,&quot;ONERR&quot;,&quot;RESUME&quot;,&quot;RECALL&quot;,&quot;STORE&quot;, &quot;SPEED=&quot;,&quot;LET&quot;,&quot;GOTO&quot;,&quot;RUN&quot;,&quot;IF&quot;,&quot;RESTORE&quot;,&quot;&amp;&quot;,&quot;GOSUB&quot;, &quot;RETURN&quot;,&quot;REM&quot;,&quot;STOP&quot;,&quot;ON&quot;,&quot;WAIT&quot;,&quot;LOAD&quot;,&quot;SAVE&quot;,&quot;DEF&quot;, &quot;POKE&quot;,&quot;PRINT&quot;,&quot;CONT&quot;,&quot;LIST&quot;,&quot;CLEAR&quot;,&quot;GET&quot;,&quot;NEW&quot;, &quot;TAB(&quot;,&quot;TO&quot;,&quot;FN&quot;,&quot;SPC(&quot;,&quot;THEN&quot;,&quot;AT&quot;,&quot;NOT&quot;,&quot;STEP&quot;,&quot;+&quot;, &quot;-&quot;,&quot;*&quot;,&quot;/&quot;,&quot;^&quot;,&quot;AND&quot;,&quot;OR&quot;,&quot;&gt;&quot;,&quot;=&quot;,&quot;&lt;&quot;,&quot;SGN&quot;,&quot;INT&quot;, &quot;ABS&quot;,&quot;USR&quot;,&quot;FRE&quot;,&quot;SCRN(&quot;,&quot;PDL&quot;,&quot;POS&quot;,&quot;SQR&quot;,&quot;RND&quot;, &quot;LOG&quot;,&quot;EXP&quot;,&quot;COS&quot;,&quot;SIN&quot;,&quot;TAN&quot;,&quot;ATN&quot;,&quot;PEEK&quot;,&quot;LEN&quot;, &quot;STR$&quot;,&quot;VAL&quot;,&quot;ASC&quot;,&quot;CHR$&quot;, &quot;LEFT$&quot;,&quot;RIGHT$&quot;,&quot;MID$&quot;,&quot;?&quot;, &quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;,&quot;?&quot;</td>
144
+ </tr>
145
+ </table>
146
+ </div>
147
+ </div>
148
+
149
+
150
+
151
+
152
+
153
+
154
+ <!-- if method_list -->
155
+ <div id="methods">
156
+ <h3 class="section-bar">Public Instance methods</h3>
157
+
158
+ <div id="method-M000012" class="method-detail">
159
+ <a name="M000012"></a>
160
+
161
+ <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;">
164
+ <span class="method-name">file_extension</span><span class="method-args">()</span>
165
+ </a>
166
+ </div>
167
+
168
+ <div class="method-description">
169
+ </div>
170
+ </div>
171
+
172
+ <div id="method-M000010" class="method-detail">
173
+ <a name="M000010"></a>
174
+
175
+ <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;">
178
+ <span class="method-name">file_type</span><span class="method-args">()</span>
179
+ </a>
180
+ </div>
181
+
182
+ <div class="method-description">
183
+ </div>
184
+ </div>
185
+
186
+ <div id="method-M000011" class="method-detail">
187
+ <a name="M000011"></a>
188
+
189
+ <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;">
192
+ <span class="method-name">to_s</span><span class="method-args">()</span>
193
+ </a>
194
+ </div>
195
+
196
+ <div class="method-description">
197
+ <p>
198
+ display file with all AppleSoft BASIC tokens expanded to ASCII
199
+ </p>
200
+ </div>
201
+ </div>
202
+
203
+
204
+ </div>
205
+
206
+
207
+ </div>
208
+
209
+
210
+ <div id="validator-badges">
211
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
212
+ </div>
213
+
214
+ </body>
215
+ </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 (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 53</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
+ <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>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 57</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_type (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 60</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
+ <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_type (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 251</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
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>