title: Aseembly ldi instruction
body: <p>I'm working on a project which consist on migrating an assembly project into C code. I have quite a lot already done but i came across an instruction which i can't fully understand.
  It's this one:</p>
  
  <pre><code>ldi ZH, high(V_avgbuf)
  </code></pre>
  
  <p>where V_avgbuf is a buffer holding 8 x 24-bit V samples. It was defined like this:</p>
  
  <pre><code>V_avgbuf:   .byte   24  ; 8 x 24-bit V samples
  </code></pre>
  
  <p>My question is, after the exevution of the instruction, which is the content of the ZH register? (ZH is a 8 bit register).</p>
  
  <p>Thanks in advance,</p>
  
  <p>Alex</p>