title: PowerPC Assembly Load Immediate
body: <p>I am new to PowerPC assembly. I am working with an MPC8245 (yes, old school). This is a 603e family processor.</p>
  
  <p>I would like to know how to create a load immediate instruction where the immediate 16-bit value is 'unsigned'.</p>
  
  <p>Example: li r3,0xFC10</p>
  
  <p>The gcc cross-compiler, 4.4.5, I am using does not allow this instruction as the value is not a signed constant.</p>
  
  <p>Yes, I could use minus the 2-s complement, but this makes reading and documenting the code more difficult. When loading bit fields for device registers, having the exact bit fields in the instruction is much easier to read.</p>