<div dir="ltr">Hi,<div><br></div><div>I'm trying to assemble the following statement with nasm[1] on Ubuntu 20.04</div><div><br></div><div>rex.w retf</div><div><br></div><div>This should generate the following byte sequence 0x48 0xCB.</div><div>But I only seem to get 0xCB. I've tried rex64 instead of rex.w but</div><div>the result is the same.</div><div><br></div><div>Assembling the above instructions on GNU AS[2] works fine.</div><div>My current workaround is to manually input the 0x48 byte inline</div><div><br></div><div>db 0x48</div><div>retf</div><div><br></div><div>But that seems like a hack. Is this a bug or am I missing something?</div><div><br></div><div>Best regards,</div><div><br></div><div>Marcus </div><div><br></div><div>1. NASM version 2.14.02-1</div><div>2. binutils version 2.34-6ubuntu1.1</div></div>