title: How to print a number in ARM assembly?
body: <p>I am trying to print a number that I have stored.  I'm not sure if I am close or way off.  Any help would be appreciated though.  Here is my code:</p>
  
  <pre><code>.data
  .balign 4
  a: .word 4
  
  .text
  .global main
  main:
          ldr r0, addr_of_a
          mov r1, #8
          str r1, [r0]
  write:
          mov r0, #1
          ldr r1, addr_of_a
          mov r2, #4
          mov r7, #4
          swi #0
          bx lr
  
  addr_of_a: .word a
  </code></pre>
  
  <p>It compiles and runs, but I don't see anything printed.  From what I understand,  I need the address of where to start printing in r1, how many bytes in r2, the file descriptor in r0, and r7 specifies the write call if it is set to #4.  I am simply trying to store #8, then print the stored number.</p>