title: assembly lang 8085 .. how to find even/odd parity
body: <p>I have the following code to count the number of 1s and save it to reg B. I need to modify it to find if the parity is even or odd... </p>
  
  <pre><code>LXI H, var1
  MVI B, 00H
  MVI D, 00H
  MVI C, 08H
  MOV A, M
  
  LOOP: RAR
  JNC SKIP
  INR B
  SKIP: DCR C
  JNZ LOOP
  
  HLT
  
  var1: db 72
  </code></pre>