Reputation: 6268
The GCC compiler as you can see on this page: https://defuse.ca/online-x86-assembler.htm#disassembly
Treats both pushf and pushfd as 0x9C when pushf should be 0x66, 0x9C. Is there a way to make this compiler not convert pushf to pushfd?
Upvotes: 1
Views: 546
Reputation: 2761
Check out http://faydoc.tripod.com/cpu/pushfd.htm. They do indeed share the same operand and which gets executed is a product of the environment, not the instruction.
Upvotes: 0