Sha256: d9e92ef11b1d70c475fc7ac57f36c55656d436ddaa95ba443c02d73f69fb9e3b

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>load_address (Trs80Cmd)</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/native_file_types/trs80/Trs80Cmd.rb, line 34</span>
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_address</span>
  <span class="ruby-identifier">records</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">record</span><span class="ruby-operator">|</span>
    <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">record</span>[<span class="ruby-identifier">:record_type</span>]<span class="ruby-operator">==</span><span class="ruby-value">0x01</span> <span class="ruby-keyword kw">then</span>
      <span class="ruby-identifier">data_area</span>=<span class="ruby-identifier">record</span>[<span class="ruby-identifier">:data_area</span>]
      <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">data_area</span>[<span class="ruby-value">0</span>]<span class="ruby-operator">+</span><span class="ruby-identifier">data_area</span>[<span class="ruby-value">1</span>]<span class="ruby-operator">*</span><span class="ruby-value">256</span>)
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span>
  <span class="ruby-value">0</span> <span class="ruby-comment cmt">#if no 'object code' records found, use 0 as the load address</span>
<span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ripxplore-0.0.1 doc/classes/Trs80Cmd.src/M000105.html
ripxplore-0.0.2 doc/classes/Trs80Cmd.src/M000105.html