Operand size prefix in 16-bit mode
I'm trying to understand GAS's behavior of .code16. From the manual, it seems in 16-bit section, for 32-bit operands or instructions, a 66H operand override prefix will be produced for the instruction encoding. Does that mean .code16 movw %eax, %ebx is legal in such mode? Then the code cannot run on 16-bit processor? Dirk Wolfgang Glomp These are legal instructions for 80386+. Starting with the 80386 we can use operandsize- and addresssize- override prefixes. Those prefixes can be used in combination with the 16 bit address mode and with the 32 bit address mode. Additional it can be used with