This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Compiler Error C2400
inline assembler syntax error in 'context'; found 'token'
The token caused a syntax error in the specified context.
Possible cause
- Specifying a Pentium instruction. Choosing the Pentium option (/G5) causes the compiler to generate instruction sequences optimized for the Pentium, but does not allow Pentium-specific instructions.
The following sample generates C2400:
void main() {
__asm {
heh ax,bx; // C2400
// try..
// mov ax,bx;
}
}