title: Printing 0-9 in Assembly
body: <p>I am a complete newbie to this Language, and i am trying my best to learn it.</p>
  
  <p>This is my first time dealing with low level language.</p>
  
  <p>Here's my incomplete code:</p>
  
  <pre><code>;------------Block 1----------
  .386
  .model flat,stdcall
  option casemap:none
  
  
  ;------------Block 2----------
  include windows.inc
  include user32.inc
  includelib user32.lib
  include kernel32.inc
  includelib kernel32.lib
  
  
  ;------------block 3----------
  .data
  first DW 1 ; increment this value
  
  
  ;------------Block 4----------
  .data?
  retvalue dd ?
  
  
  ;------------Block 5----------
  .code
  start:
  mov ecx,10
  mov eax, '1'
  
  l1:
      nop  ;Add code here
  loop l1
  
  
  
  xor eax,eax
  invoke ExitProcess,eax        
  end start
  </code></pre>
  
  <p>Its 64bit Architecture with Intel processor.</p>
  
  <p>I referred to these articles, but none of them seems to fit in my architecture of code.</p>
  
  <ul>
  <li><a href="http://www.dailyfreecode.com/code/print-digits-0-1-9-1741.aspx" rel="nofollow noreferrer">http://www.dailyfreecode.com/code/print-digits-0-1-9-1741.aspx</a></li>
  <li><a href="https://stackoverflow.com/questions/15621258/assembly-printing-ascii-number">Assembly, printing ascii number</a></li>
  <li><a href="https://stackoverflow.com/questions/2504974/outputting-variable-values-in-x86-asm">Outputting variable values in x86 asm</a></li>
  </ul>
  
  <p>It's been irritating me for 4 hours.</p>
  
  <p>Any help would be highly appreciated.</p>