GNU assembler override size of immediate operand

184 Views Asked by At

I am trying to match a specific sequence of bytes with GNU assembler. Objdump disassembles these bytes as:

81 e2 66 00 00 00       and    edx,0x66

However, GAS "helpfully" assembles this instruction more efficiently:

83 e2 66                and    edx,0x66

How can I force GAS to use the less efficient 32-bit immediate operand form? I know if I was using NASM, I could use the strict keyword. Is there an equivalent keyword for GNU assembler?

0

There are 0 best solutions below