dsktool 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/dsktool.rb +157 -0
- data/doc/classes/AppleSoftFile.html +215 -0
- data/doc/classes/AppleSoftFile.src/M000005.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000006.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000008.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000009.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000010.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000011.html +18 -0
- data/doc/classes/AppleSoftFile.src/M000012.html +18 -0
- data/doc/classes/BinaryFile.html +179 -0
- data/doc/classes/BinaryFile.src/M000015.html +18 -0
- data/doc/classes/BinaryFile.src/M000020.html +18 -0
- data/doc/classes/BinaryFile.src/M000021.html +18 -0
- data/doc/classes/BinaryFile.src/M000022.html +19 -0
- data/doc/classes/BinaryFile.src/M000023.html +18 -0
- data/doc/classes/BinaryFile.src/M000024.html +18 -0
- data/doc/classes/BinaryFile.src/M000025.html +19 -0
- data/doc/classes/D65.html +180 -0
- data/doc/classes/D65.src/M000002.html +18 -0
- data/doc/classes/D65.src/M000003.html +18 -0
- data/doc/classes/D65.src/M000004.html +64 -0
- data/doc/classes/D65.src/M000005.html +18 -0
- data/doc/classes/D65.src/M000006.html +18 -0
- data/doc/classes/D65.src/M000007.html +18 -0
- data/doc/classes/D65.src/M000008.html +18 -0
- data/doc/classes/D65.src/M000009.html +64 -0
- data/doc/classes/DOSDisk.html +272 -0
- data/doc/classes/DOSDisk.src/M000007.html +20 -0
- data/doc/classes/DOSDisk.src/M000008.html +77 -0
- data/doc/classes/DOSDisk.src/M000010.html +20 -0
- data/doc/classes/DOSDisk.src/M000011.html +20 -0
- data/doc/classes/DOSDisk.src/M000012.html +19 -0
- data/doc/classes/DOSDisk.src/M000013.html +20 -0
- data/doc/classes/DOSDisk.src/M000014.html +19 -0
- data/doc/classes/DOSDisk.src/M000015.html +76 -0
- data/doc/classes/DOSFile.html +221 -0
- data/doc/classes/DOSFile.src/M000016.html +22 -0
- data/doc/classes/DOSFile.src/M000017.html +17 -0
- data/doc/classes/DOSFile.src/M000018.html +18 -0
- data/doc/classes/DOSFile.src/M000021.html +22 -0
- data/doc/classes/DOSFile.src/M000022.html +22 -0
- data/doc/classes/DOSFile.src/M000023.html +22 -0
- data/doc/classes/DOSFile.src/M000024.html +17 -0
- data/doc/classes/DOSFile.src/M000025.html +18 -0
- data/doc/classes/DOSFile.src/M000026.html +22 -0
- data/doc/classes/DOSFile.src/M000027.html +17 -0
- data/doc/classes/DOSFile.src/M000028.html +18 -0
- data/doc/classes/DSK.html +285 -0
- data/doc/classes/DSK.src/M000009.html +22 -0
- data/doc/classes/DSK.src/M000010.html +27 -0
- data/doc/classes/DSK.src/M000011.html +19 -0
- data/doc/classes/DSK.src/M000012.html +18 -0
- data/doc/classes/DSK.src/M000013.html +22 -0
- data/doc/classes/DSK.src/M000014.html +22 -0
- data/doc/classes/DSK.src/M000015.html +22 -0
- data/doc/classes/DSK.src/M000016.html +22 -0
- data/doc/classes/DSK.src/M000017.html +22 -0
- data/doc/classes/DSK.src/M000018.html +27 -0
- data/doc/classes/DSK.src/M000019.html +19 -0
- data/doc/classes/DSK.src/M000020.html +18 -0
- data/doc/classes/DSK.src/M000021.html +40 -0
- data/doc/classes/DSK.src/M000022.html +23 -0
- data/doc/classes/IntegerBasicFile.html +276 -0
- data/doc/classes/IntegerBasicFile.src/M000001.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000004.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000005.html +18 -0
- data/doc/classes/IntegerBasicFile.src/M000006.html +18 -0
- data/doc/classes/TestDOSDisks.html +174 -0
- data/doc/classes/TestDOSDisks.src/M000001.html +19 -0
- data/doc/classes/TestDOSDisks.src/M000002.html +19 -0
- data/doc/classes/TestDOSDisks.src/M000003.html +43 -0
- data/doc/classes/TestDisassembly.html +144 -0
- data/doc/classes/TestDisassembly.src/M000005.html +19 -0
- data/doc/classes/TestDisassembly.src/M000006.html +19 -0
- data/doc/classes/TestDisassembly.src/M000007.html +19 -0
- data/doc/classes/TextFile.html +179 -0
- data/doc/classes/TextFile.src/M000019.html +18 -0
- data/doc/classes/TextFile.src/M000020.html +20 -0
- data/doc/classes/TextFile.src/M000024.html +18 -0
- data/doc/classes/TextFile.src/M000025.html +18 -0
- data/doc/classes/TextFile.src/M000026.html +18 -0
- data/doc/classes/TextFile.src/M000027.html +20 -0
- data/doc/classes/TextFile.src/M000029.html +18 -0
- data/doc/classes/TextFile.src/M000030.html +18 -0
- data/doc/classes/TextFile.src/M000031.html +20 -0
- data/doc/created.rid +1 -0
- data/doc/dot/f_0.dot +14 -0
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/f_1.dot +23 -0
- data/doc/dot/f_1.png +0 -0
- data/doc/dot/f_2.dot +32 -0
- data/doc/dot/f_2.png +0 -0
- data/doc/dot/f_3.dot +75 -0
- data/doc/dot/f_3.png +0 -0
- data/doc/dot/f_4.dot +23 -0
- data/doc/dot/f_4.png +0 -0
- data/doc/dot/f_5.dot +32 -0
- data/doc/dot/f_5.png +0 -0
- data/doc/dot/f_6.dot +32 -0
- data/doc/dot/f_6.png +0 -0
- data/doc/dot/f_7.dot +14 -0
- data/doc/dot/f_7.png +0 -0
- data/doc/files/bin/dsktool_rb.html +171 -0
- data/doc/files/lib/D65_rb.html +114 -0
- data/doc/files/lib/DOSDisk_rb.html +115 -0
- data/doc/files/lib/DOSFile_rb.html +118 -0
- data/doc/files/lib/DSK_rb.html +114 -0
- data/doc/files/test/tc_disassembly_rb.html +117 -0
- data/doc/files/test/tc_dos_disks_rb.html +116 -0
- data/doc/files/test/test_dos_disks_rb.html +109 -0
- data/doc/files/test/ts_test_all_rb.html +114 -0
- data/doc/fr_class_index.html +36 -0
- data/doc/fr_file_index.html +34 -0
- data/doc/fr_method_index.html +57 -0
- data/doc/index.html +24 -0
- data/lib/D65.rb +178 -0
- data/lib/DOSDisk.rb +186 -0
- data/lib/DOSFile.rb +356 -0
- data/lib/DSK.rb +121 -0
- data/lib/a2_symbols.yaml +199 -0
- data/test/dos33_with_adt.dsk +0 -0
- data/test/tc_disassembly.rb +16 -0
- data/test/tc_dos_disks.rb +49 -0
- data/test/ts_test_all.rb +5 -0
- 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>is_dos33? (DSK)</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/DSK.rb, line 10</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dos33?</span>
|
15
|
+
<span class="ruby-comment cmt"># VTOC is at offset 0x11000</span>
|
16
|
+
<span class="ruby-comment cmt"># bytes 1/2/3 are a track number, sector number and DOS version number</span>
|
17
|
+
<span class="ruby-comment cmt"># see if these are reasonable values</span>
|
18
|
+
|
19
|
+
(<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11001</span>]<span class="ruby-operator"><=</span><span class="ruby-value">34</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11002</span>]<span class="ruby-operator"><=</span><span class="ruby-value">15</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11003</span>]<span class="ruby-operator">==</span><span class="ruby-value">3</span>)
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
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 (DSK)</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/DSK.rb, line 20</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filename</span>)
|
15
|
+
<span class="ruby-ivar">@file_bytes</span>=<span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-value str">"rb"</span>).<span class="ruby-identifier">read</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@file_bytes</span>.<span class="ruby-identifier">length!</span>=<span class="ruby-value">143360</span>) <span class="ruby-keyword kw">then</span>
|
17
|
+
<span class="ruby-identifier">abort</span>(<span class="ruby-node">"#{filename} is not a valid DSK format file"</span>)
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
|
20
|
+
<span class="ruby-ivar">@files</span>=[]
|
21
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">is_dos33?</span>)
|
22
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">DOSDisk</span>
|
23
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">read_catalog</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
26
|
+
</body>
|
27
|
+
</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>get_sector (DSK)</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/DSK.rb, line 33</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_sector</span>(<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>)
|
15
|
+
<span class="ruby-identifier">start_byte</span>=<span class="ruby-identifier">track</span><span class="ruby-operator">*</span><span class="ruby-value">16</span><span class="ruby-operator">*</span><span class="ruby-value">256</span><span class="ruby-operator">+</span><span class="ruby-identifier">sector</span><span class="ruby-operator">*</span><span class="ruby-value">256</span>
|
16
|
+
<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-identifier">start_byte</span><span class="ruby-operator">..</span><span class="ruby-identifier">start_byte</span><span class="ruby-operator">+</span><span class="ruby-value">255</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>files (DSK)</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/DSK.rb, line 38</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>
|
15
|
+
<span class="ruby-ivar">@files</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>is_dos33? (DSK)</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/DSK.rb, line 13</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dos33?</span>
|
15
|
+
<span class="ruby-comment cmt"># VTOC is at offset 0x11000</span>
|
16
|
+
<span class="ruby-comment cmt"># bytes 1/2/3 are a track number, sector number and DOS version number</span>
|
17
|
+
<span class="ruby-comment cmt"># see if these are reasonable values</span>
|
18
|
+
|
19
|
+
(<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11001</span>]<span class="ruby-operator"><=</span><span class="ruby-value">34</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11002</span>]<span class="ruby-operator"><=</span><span class="ruby-value">15</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11003</span>]<span class="ruby-operator">==</span><span class="ruby-value">3</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>is_dos33? (DSK)</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/DSK.rb, line 13</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dos33?</span>
|
15
|
+
<span class="ruby-comment cmt"># VTOC is at offset 0x11000</span>
|
16
|
+
<span class="ruby-comment cmt"># bytes 1/2/3 are a track number, sector number and DOS version number</span>
|
17
|
+
<span class="ruby-comment cmt"># see if these are reasonable values</span>
|
18
|
+
|
19
|
+
(<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11001</span>]<span class="ruby-operator"><=</span><span class="ruby-value">34</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11002</span>]<span class="ruby-operator"><=</span><span class="ruby-value">15</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11003</span>]<span class="ruby-operator">==</span><span class="ruby-value">3</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 (DSK)</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/DSK.rb, line 22</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file_bytes</span>=<span class="ruby-value str">"\0"</span><span class="ruby-operator">*</span><span class="ruby-constant">DSK_FILE_LENGTH</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">file_bytes</span>.<span class="ruby-identifier">length!</span>=<span class="ruby-constant">DSK_FILE_LENGTH</span>) <span class="ruby-keyword kw">then</span>
|
16
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-node">"DSK files must be #{DSK_FILE_LENGTH} bytes long (was #{file_bytes.length} bytes)"</span>
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
18
|
+
<span class="ruby-ivar">@file_bytes</span>=<span class="ruby-identifier">file_bytes</span>
|
19
|
+
<span class="ruby-ivar">@files</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>is_dos33? (DSK)</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/DSK.rb, line 13</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">is_dos33?</span>
|
15
|
+
<span class="ruby-comment cmt"># VTOC is at offset 0x11000</span>
|
16
|
+
<span class="ruby-comment cmt"># bytes 1/2/3 are a track number, sector number and DOS version number</span>
|
17
|
+
<span class="ruby-comment cmt"># see if these are reasonable values</span>
|
18
|
+
|
19
|
+
(<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11001</span>]<span class="ruby-operator"><=</span><span class="ruby-value">34</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11002</span>]<span class="ruby-operator"><=</span><span class="ruby-value">15</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-value">0x11003</span>]<span class="ruby-operator">==</span><span class="ruby-value">3</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 (DSK)</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/DSK.rb, line 22</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">file_bytes</span>=<span class="ruby-value str">"\0"</span><span class="ruby-operator">*</span><span class="ruby-constant">DSK_FILE_LENGTH</span>)
|
15
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">file_bytes</span>.<span class="ruby-identifier">length!</span>=<span class="ruby-constant">DSK_FILE_LENGTH</span>) <span class="ruby-keyword kw">then</span>
|
16
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-node">"DSK files must be #{DSK_FILE_LENGTH} bytes long (was #{file_bytes.length} bytes)"</span>
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
18
|
+
<span class="ruby-ivar">@file_bytes</span>=<span class="ruby-identifier">file_bytes</span>
|
19
|
+
<span class="ruby-ivar">@files</span>={}
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
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>read (DSK)</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/DSK.rb, line 31</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">DSK</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">filename</span>)
|
15
|
+
<span class="ruby-identifier">file_bytes</span>=<span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-value str">"rb"</span>).<span class="ruby-identifier">read</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">file_bytes</span>.<span class="ruby-identifier">length!</span>=<span class="ruby-constant">DSK_FILE_LENGTH</span>) <span class="ruby-keyword kw">then</span>
|
17
|
+
<span class="ruby-identifier">abort</span>(<span class="ruby-node">"#{filename} is not a valid DSK format file"</span>)
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-identifier">dsk</span>=<span class="ruby-constant">DSK</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_bytes</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">is_dos33?</span>)
|
21
|
+
<span class="ruby-identifier">require</span> <span class="ruby-value str">'DOSDisk'</span>
|
22
|
+
<span class="ruby-identifier">dsk</span>=<span class="ruby-constant">DOSDisk</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">file_bytes</span>)
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
<span class="ruby-identifier">dsk</span>
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
26
|
+
</body>
|
27
|
+
</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>get_sector (DSK)</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/DSK.rb, line 44</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_sector</span>(<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>)
|
15
|
+
<span class="ruby-identifier">start_byte</span>=<span class="ruby-identifier">track</span><span class="ruby-operator">*</span><span class="ruby-value">16</span><span class="ruby-operator">*</span><span class="ruby-value">256</span><span class="ruby-operator">+</span><span class="ruby-identifier">sector</span><span class="ruby-operator">*</span><span class="ruby-value">256</span>
|
16
|
+
<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-identifier">start_byte</span><span class="ruby-operator">..</span><span class="ruby-identifier">start_byte</span><span class="ruby-operator">+</span><span class="ruby-value">255</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>files (DSK)</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/DSK.rb, line 49</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">files</span>
|
15
|
+
<span class="ruby-ivar">@files</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,40 @@
|
|
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>dump_sector (DSK)</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/DSK.rb, line 54</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump_sector</span>(<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>)
|
15
|
+
|
16
|
+
<span class="ruby-identifier">start_byte</span>=<span class="ruby-identifier">track</span><span class="ruby-operator">*</span><span class="ruby-value">16</span><span class="ruby-operator">*</span><span class="ruby-value">256</span><span class="ruby-operator">+</span><span class="ruby-identifier">sector</span><span class="ruby-operator">*</span><span class="ruby-value">256</span>
|
17
|
+
<span class="ruby-identifier">s</span>=<span class="ruby-ivar">@file_bytes</span>[<span class="ruby-identifier">start_byte</span><span class="ruby-operator">..</span><span class="ruby-identifier">start_byte</span><span class="ruby-operator">+</span><span class="ruby-value">255</span>]
|
18
|
+
|
19
|
+
<span class="ruby-identifier">print_hline</span>
|
20
|
+
<span class="ruby-identifier">printf</span>(<span class="ruby-value str">"TRACK: $%02X SECTOR $%02X\ OFFSET $%04X\n"</span>,<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>,<span class="ruby-identifier">start_byte</span>)
|
21
|
+
<span class="ruby-identifier">printf</span> <span class="ruby-value str">"\t"</span>
|
22
|
+
|
23
|
+
(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">15</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">printf</span>(<span class="ruby-value str">"%02X "</span>,<span class="ruby-identifier">x</span>) }
|
24
|
+
<span class="ruby-identifier">puts</span>
|
25
|
+
<span class="ruby-identifier">print_hline</span>
|
26
|
+
(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">15</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">line_number</span><span class="ruby-operator">|</span>
|
27
|
+
<span class="ruby-identifier">lhs</span>=<span class="ruby-value str">""</span>
|
28
|
+
<span class="ruby-identifier">rhs</span>=<span class="ruby-value str">""</span>
|
29
|
+
<span class="ruby-identifier">start_byte</span>=<span class="ruby-identifier">line_number</span><span class="ruby-operator">*</span><span class="ruby-value">16</span>
|
30
|
+
<span class="ruby-identifier">line</span>=<span class="ruby-identifier">s</span>[<span class="ruby-identifier">start_byte</span><span class="ruby-operator">..</span><span class="ruby-identifier">start_byte</span><span class="ruby-operator">+</span><span class="ruby-value">15</span>]
|
31
|
+
<span class="ruby-identifier">line</span>.<span class="ruby-identifier">each_byte</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">byte</span><span class="ruby-operator">|</span>
|
32
|
+
<span class="ruby-identifier">lhs</span><span class="ruby-operator">+=</span> <span class="ruby-identifier">sprintf</span>(<span class="ruby-value str">"%02X "</span>, <span class="ruby-identifier">byte</span>)
|
33
|
+
<span class="ruby-identifier">rhs</span><span class="ruby-operator">+=</span> (<span class="ruby-identifier">byte</span><span class="ruby-operator">%</span><span class="ruby-value">128</span>).<span class="ruby-identifier">chr</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-regexp re">/[\x00-\x1f]/</span>,<span class="ruby-value str">'.'</span>)
|
34
|
+
}
|
35
|
+
<span class="ruby-identifier">printf</span>(<span class="ruby-value str">"%02X\t%s %s\n"</span>,<span class="ruby-identifier">start_byte</span>,<span class="ruby-identifier">lhs</span>,<span class="ruby-identifier">rhs</span>)
|
36
|
+
}
|
37
|
+
|
38
|
+
<span class="ruby-keyword kw">end</span></pre>
|
39
|
+
</body>
|
40
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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>dump_disk (DSK)</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/DSK.rb, line 81</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump_disk</span>
|
15
|
+
|
16
|
+
(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">34</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">track</span><span class="ruby-operator">|</span>
|
17
|
+
(<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">15</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">sector</span><span class="ruby-operator">|</span>
|
18
|
+
<span class="ruby-identifier">dump_sector</span>(<span class="ruby-identifier">track</span>,<span class="ruby-identifier">sector</span>)
|
19
|
+
}
|
20
|
+
}
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,276 @@
|
|
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: IntegerBasicFile</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">IntegerBasicFile</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
|
+
Integer Basic file format:
|
99
|
+
</p>
|
100
|
+
<pre>
|
101
|
+
<Length_of_file> (16-bit little endian)
|
102
|
+
<Line>
|
103
|
+
......
|
104
|
+
<Line>
|
105
|
+
|
106
|
+
where <Line> is:
|
107
|
+
1 byte: Line length
|
108
|
+
2 bytes: Line number, binary little endian
|
109
|
+
<token>
|
110
|
+
<token>
|
111
|
+
<token>
|
112
|
+
......
|
113
|
+
<end-of-line token>
|
114
|
+
|
115
|
+
<token> is one of:
|
116
|
+
$12 - $7F: Tokens as listed below: 1 byte/token
|
117
|
+
$80 - $FF: ASCII characters with high bit set
|
118
|
+
$B0 - $B9: Integer constant, 3 bytes: $B0-$B9,
|
119
|
+
followed by the integer value in
|
120
|
+
2-byte binary little-endian format
|
121
|
+
(Note: a $B0-$B9 byte preceded by an
|
122
|
+
alphanumeric ASCII(hi_bit_set) byte
|
123
|
+
is not the start of an integer
|
124
|
+
constant, but instead part of a
|
125
|
+
variable name)
|
126
|
+
|
127
|
+
<end-of-line token> is:
|
128
|
+
$01: One byte having the value $01
|
129
|
+
(Note: a $01 byte may also appear
|
130
|
+
inside an integer constant)
|
131
|
+
|
132
|
+
Note that the tokens $02 to $11 represent commands which
|
133
|
+
can be executed as direct commands only -- any attempt to
|
134
|
+
enter then into an Integer Basic program will be rejected
|
135
|
+
as a syntax error. Therefore, no Integer Basic program
|
136
|
+
which was entered through the Integer Basic interpreter
|
137
|
+
will contain any of the tokens $02 to $11. The token $00
|
138
|
+
appears to be unused and won't appear in Integer Basic
|
139
|
+
programs either. However, $00 is used as an end-of-line
|
140
|
+
marker in S-C Assembler source files, which also are of
|
141
|
+
DOS file type "I".
|
142
|
+
|
143
|
+
(note here a difference from Applesoft Basic, where there
|
144
|
+
are no "direct mode only" commands - any Applesoft commands
|
145
|
+
can be entered into an Applesoft program as well).
|
146
|
+
</pre>
|
147
|
+
|
148
|
+
</div>
|
149
|
+
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<div id="method-list">
|
154
|
+
<h3 class="section-bar">Methods</h3>
|
155
|
+
|
156
|
+
<div class="name-list">
|
157
|
+
<a href="#M000005">file_extension</a>
|
158
|
+
<a href="#M000004">file_type</a>
|
159
|
+
<a href="#M000006">to_s</a>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
</div>
|
164
|
+
|
165
|
+
|
166
|
+
<!-- if includes -->
|
167
|
+
|
168
|
+
<div id="section">
|
169
|
+
|
170
|
+
|
171
|
+
<div id="constants-list">
|
172
|
+
<h3 class="section-bar">Constants</h3>
|
173
|
+
|
174
|
+
<div class="name-list">
|
175
|
+
<table summary="Constants">
|
176
|
+
<tr class="top-aligned-row context-row">
|
177
|
+
<td class="context-item-name">IB_REM_TOKEN</td>
|
178
|
+
<td>=</td>
|
179
|
+
<td class="context-item-value">0x5D</td>
|
180
|
+
</tr>
|
181
|
+
<tr class="top-aligned-row context-row">
|
182
|
+
<td class="context-item-name">IB_UNARY_PLUS</td>
|
183
|
+
<td>=</td>
|
184
|
+
<td class="context-item-value">0x35</td>
|
185
|
+
</tr>
|
186
|
+
<tr class="top-aligned-row context-row">
|
187
|
+
<td class="context-item-name">IB_UNARY_MINUS</td>
|
188
|
+
<td>=</td>
|
189
|
+
<td class="context-item-value">0x36</td>
|
190
|
+
</tr>
|
191
|
+
<tr class="top-aligned-row context-row">
|
192
|
+
<td class="context-item-name">IB_QUOTE_START</td>
|
193
|
+
<td>=</td>
|
194
|
+
<td class="context-item-value">0x28</td>
|
195
|
+
</tr>
|
196
|
+
<tr class="top-aligned-row context-row">
|
197
|
+
<td class="context-item-name">IB_QUOTE_END</td>
|
198
|
+
<td>=</td>
|
199
|
+
<td class="context-item-value">0x29</td>
|
200
|
+
</tr>
|
201
|
+
<tr class="top-aligned-row context-row">
|
202
|
+
<td class="context-item-name">INTEGER_BASIC_TOKENS</td>
|
203
|
+
<td>=</td>
|
204
|
+
<td class="context-item-value">[ # $00-$0F "HIMEM:","<$01>", "_", " : ", "LOAD", "SAVE", "CON", "RUN", # Direct commands "RUN", "DEL", ",", "NEW", "CLR", "AUTO", ",", "MAN", # $10-$1F "HIMEM:","LOMEM:","+", "-", # Binary ops "*", "/", "=", "#", ">=", ">", "<=", "<>", "<", "AND", "OR", "MOD", # $20-$2F "^", "+", "(", ",", "THEN", "THEN", ",", ",", "\"", "\"", "(", "!", "!", "(", "PEEK", "RND", # $30-$3F "SGN", "ABS", "PDL", "RNDX", "(", "+", "-", "NOT", # Unary ops "(", "=", "#", "LEN(", "ASC(", "SCRN(", ",", "(", # $40-$4F "$", "$", "(", ",", ",", ";", ";", ";", ",", ",", ",", "TEXT", # Statements "GR", "CALL", "DIM", "DIM", # $50-$5F "TAB", "END", "INPUT", "INPUT", "INPUT", "FOR", "=", "TO", "STEP", "NEXT", ",", "RETURN", "GOSUB", "REM", "LET", "GOTO", # $60-$6F "IF", "PRINT", "PRINT", "PRINT", "POKE", ",", "COLOR=","PLOT", ",", "HLIN", ",", "AT", "VLIN", ",", "AT", "VTAB", # $70-$7F "=", "=", ")", ")", "LIST", ",", "LIST", "POP", "NODSP", "DSP", "NOTRACE","DSP", "DSP", "TRACE", "PR#", "IN#", ]</td>
|
205
|
+
</tr>
|
206
|
+
</table>
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<!-- if method_list -->
|
216
|
+
<div id="methods">
|
217
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
218
|
+
|
219
|
+
<div id="method-M000005" class="method-detail">
|
220
|
+
<a name="M000005"></a>
|
221
|
+
|
222
|
+
<div class="method-heading">
|
223
|
+
<a href="IntegerBasicFile.src/M000005.html" target="Code" class="method-signature"
|
224
|
+
onclick="popupCode('IntegerBasicFile.src/M000005.html');return false;">
|
225
|
+
<span class="method-name">file_extension</span><span class="method-args">()</span>
|
226
|
+
</a>
|
227
|
+
</div>
|
228
|
+
|
229
|
+
<div class="method-description">
|
230
|
+
</div>
|
231
|
+
</div>
|
232
|
+
|
233
|
+
<div id="method-M000004" class="method-detail">
|
234
|
+
<a name="M000004"></a>
|
235
|
+
|
236
|
+
<div class="method-heading">
|
237
|
+
<a href="IntegerBasicFile.src/M000004.html" target="Code" class="method-signature"
|
238
|
+
onclick="popupCode('IntegerBasicFile.src/M000004.html');return false;">
|
239
|
+
<span class="method-name">file_type</span><span class="method-args">()</span>
|
240
|
+
</a>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
<div class="method-description">
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
<div id="method-M000006" class="method-detail">
|
248
|
+
<a name="M000006"></a>
|
249
|
+
|
250
|
+
<div class="method-heading">
|
251
|
+
<a href="IntegerBasicFile.src/M000006.html" target="Code" class="method-signature"
|
252
|
+
onclick="popupCode('IntegerBasicFile.src/M000006.html');return false;">
|
253
|
+
<span class="method-name">to_s</span><span class="method-args">()</span>
|
254
|
+
</a>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
<div class="method-description">
|
258
|
+
<p>
|
259
|
+
display file with all INTEGER BASIC tokens expanded to ASCII
|
260
|
+
</p>
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
|
264
|
+
|
265
|
+
</div>
|
266
|
+
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
<div id="validator-badges">
|
272
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
273
|
+
</div>
|
274
|
+
|
275
|
+
</body>
|
276
|
+
</html>
|