3 ms·
There is an opcode prefix in x86 machine code, that asserts 64-bit mode for the next instruction. Even when compiled for 32-bit and running on a 32-bit OS. Its
by JoeAltmaier 11y ago
There is an opcode prefix in x86 machine code, that asserts 64-bit mode for the next instruction. Even when compiled for 32-bit and running on a 32-bit OS. Its anybody's guess if your particular compiler is smart enough to use this.
- 0x0 11y agoI don't think you can access 64bit registers from 32bit code. I know you could access EAX (32bit registers) from 16bit code with a prefix (0x66), but I do not think there's an equivalent access to RAX for the 32<->64bit case.
- JoeAltmaier 11y agoAh right - those prefixes in 32-bit mode are inc/dec register operations. They only exist in 64-bit mode (where reg inc/dec is done with other instructions).