This doesn\'t exactly seem to be right although I am unsure why. Advice would be great as the documentation for CMPXCHG16B is pretty minimal (I don\'t own any intel manuals...)<
All Intel documentation is available for free: Intel® 64 and IA-32 Architectures Software Developer's Manuals.