Hello,
The attached patch fixes two opcodes generated by i386 internal assembler. The first one fixes the "mov ax, word ptr [somevar]" command which was generated without $66 prefix (reported by freepascal.ru forum user, don't know if it is in bugtracker).
The second one fixes ModRM generated from the wrong operand for "test" instruction, should fix #11786.
Regards,
Sergei
