title: 64bit nasm division idiv
body: <pre><code>;print out division message
  mov rcx, 0                       ;zero out register
  mov rax, [input]
  mov rcx, [input2]
  idiv rcx                        ;divide rax by rcx
  mov rdi, rax                    ;for printing purposes
  call print_int
  </code></pre>
  
  <p>I can't seem to figure out why this isn't dividing, I'm getting a enrror "Floating Point Exception" I'm using a 64bit machine and the values are integers not floating point.... ideas?</p>
  
  <p>I know after the division takes place the quotient should be in rax, and the remainder should be in rdx i believe, but as of right now i'm just trying to get my hands on the quotient.</p>