NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2431

illegal index register in 'identifier'

The ESP register is scaled or used as both index and base register. The SIB encoding for the 80386 processor does not allow either.

Example

_asm mov ax, [ESI+2*ESP]
_asm mov ax, [esp+esp]