title: assembly code which output to LCD screen fixing
body: <p>I have an assembly code that output to a LCD screen, I don't know how to use assembly language. But this is the code:</p>
  
  <pre><code>;  Clicking button saves &amp; builds using commands:
  ;    nasm -f elf -g -F stabs evil.asm
  ;    ld -o evil evil.o
  section .data
  Snippet: db "@E9&gt;06G@Q:CN3C57I&lt;)&lt;)*"
  SnipLen: equ $-Snippet
  section .text
  global _start
  _start:
          nop
          mov ecx,Snippet
          mov edx,SnipLen
          mov eax,6
  DoMore: add byte [ecx],af
          inc ecx
          inc eax
          dec edx
          jnz DoMore
          mov eax,4
          mov ebx,1
          sub ecx,SnipLen
          mov edx,SnipLen
          int 80H
          mov eax,1
          mov ebx,0
          int 80H
          nop
  </code></pre>
  
  <p>I know that there might be an error in the <code>sub ecx,SnipLen</code> since it gives me a different output. The output before fixing it is <code>BEEP_BOOP
  UNKNOWN_REGISTER</code> and the output after fixing that line is <code>BEEP_BOOP
  MALFUNCTION</code>.</p>