doc/classes/C64.src/M000470.html in ripxplore-0.17.0 vs doc/classes/C64.src/M000470.html in ripxplore-0.17.1

- old
+ new

@@ -3,16 +3,29 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>start_track (C64)</title> + <title>to_ascii (C64)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/host_systems/C64.rb, line 18</span> -<span class="ruby-keyword kw">def</span> <span class="ruby-constant">C64</span>.<span class="ruby-identifier">start_track</span> - <span class="ruby-value">1</span> + <pre><span class="ruby-comment cmt"># File lib/host_systems/C64.rb, line 24</span> +<span class="ruby-keyword kw">def</span> <span class="ruby-constant">C64</span>.<span class="ruby-identifier">to_ascii</span>(<span class="ruby-identifier">b</span>) + <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">b</span><span class="ruby-operator">==</span><span class="ruby-value">0xa</span>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">b</span><span class="ruby-operator">==</span><span class="ruby-value">0x0d</span>) + <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;\n&quot;</span> + <span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">b</span><span class="ruby-operator">==</span><span class="ruby-value">0x40</span>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">b</span><span class="ruby-operator">==</span><span class="ruby-value">0x60</span>) + <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">chr</span> + <span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">b</span><span class="ruby-operator">==</span><span class="ruby-value">0x</span><span class="ruby-constant">A0</span>) <span class="ruby-operator">||</span> (<span class="ruby-identifier">b</span><span class="ruby-operator">==</span><span class="ruby-value">0x</span><span class="ruby-constant">E0</span>) <span class="ruby-comment cmt">#shifted space </span> + <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot; &quot;</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-keyword kw">case</span> (<span class="ruby-identifier">b</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0</span><span class="ruby-constant">XE0</span>) + <span class="ruby-keyword kw">when</span> <span class="ruby-value">0x40</span>,<span class="ruby-value">0x60</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">b</span><span class="ruby-operator">^</span><span class="ruby-value">0x20</span>).<span class="ruby-identifier">chr</span> + <span class="ruby-keyword kw">when</span> <span class="ruby-value">0xc0</span> <span class="ruby-keyword kw">then</span> <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">b</span><span class="ruby-operator">^</span><span class="ruby-value">0x80</span>).<span class="ruby-identifier">chr</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">b</span>.<span class="ruby-identifier">chr</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file