title: Convert checksum to Delphi
body: <p>I need to convert this code to Delphi, and I do not know how to:</p>
  
  <pre class="lang-c prettyprint-override"><code>{
      LRC=0
      for (ch=1;ch&lt;n+1;ch++){
          LRC=LRC^BYTE[ch];
      }
      LRC=LRC^ETX;
  }
  </code></pre>