title: How can I set an lc-3 register to "1000000000000000" efficiently?
body: <p>I can use 5 empty registers. They are set to zero. I want to set a register to the number above efficiently. </p>
  
  <pre><code>AND R1, R1, #0 ; 
  ADD R1, R1, x8000
  </code></pre>
  
  <p>"x8000" is hexadecimal for the number i'm trying to put into the register. I think the code above did not work because only 5 digit binary numbers can be passed ass immediate values for add instructions. They are later zero-extended to 16 bits. Therefore trying to pass a 16 bit number does not work. This is small part of a program I am working on. </p>