Is there any such instruction? This would be an instruction that would: - Be a register-and-immediate instruction, with a halfword immediate value as the source.
- Load the halfword in bytes 48-63. - Load zeroes in bytes 32-47. - Leave bytes 1-31 unchanged. I can't find anything that will do exactly this. Why do I want to do exactly this? I "just do", and it bugs me I can't find a single instruction to do it. I don't want LLILL because it sets bytes 1-47 to zero. I don't want IILL because it does not set 32-47 to zeroes (yes, I could follow the IILL with IILH Rx,0). I don't want IILF because it uses a fullword immediate value instead of a halfword immediate value. I don't want LHI because it sign extends. LA could almost be used, except it allows a value of "3/4s of a halfword". LLH does exactly what I want, except that it's register-and-storage, not register-and-immediate. In the end is it really a big deal? No; but I'm obsessing about it, thinking I'm just overlooking it. Probably I'll use either LLILL or IILF, depending on if I really care about bits 1-31 (which I don't really...). Thanks for putting up with this perhaps silly inquiry! Frank The information contained in this electronic communication and any document attached hereto or transmitted herewith is confidential and intended for the exclusive use of the individual or entity named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any examination, use, dissemination, distribution or copying of this communication or any part thereof is strictly prohibited. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this communication. Thank you.
