??? 07/24/08 14:28 Read: times |
#157032 - Motorola versus Intel Responding to: ???'s previous message |
Please check the assembler format used by gcc/gas for x86, and compare with the Intel standard.
The mnemonics are the same, but the sources and destinations are swapped and the syntax is totally changed. Such things could happen to other processor architectures too (I haven't checked for gcc support for 8051 processors), but I would expect the assembler to use the same order of source and destinations for all instructions, so in this case, there shouldn't be a need to check if the assembler handles this specific instruction in the correct way. Switching all sources and destinations would result in a number of forbidden instructions, where the source would try to load a value into a constant. |