title: Unary and Binary Operations in Assembly
body: <p>I've been working through my textbook on the chapter concerning assembly language and have come to a practice problem that I do not understand (the section on unary and binary operations is quite minimal so I'm pretty lost).</p>
  <p>Here are two instructions from the practice problem. I am supposed to give the destination and value of each instruction:</p>
  <blockquote>
  <p>addq %rcx, (%rax)</p>
  <p>imulq $16 , (%rax, %rdx, 8)</p>
  </blockquote>
  <p>Where %rax's value is 0x100, %rdx's value is 0x3 and %rcx's value is 0x1.</p>
  <p>Can anyone explain in detail how to solve both instructions? I have the answer in the back of the book but there's no real explanation to go along with it. Thanks.</p>