|
From: PcX <xun...@gm...> - 2011-07-11 11:14:21
|
于 2011/7/11 19:11, Kai Tietz 写道: > 2011/7/11 PcX<xun...@gm...>: >> 于 2011/7/11 19:02, Kai Tietz 写道: >>> So I don't understand here this ill-instruction failure you see. xadd >>> (which is used here underhood for .InterlockedDecrement is present >>> beginning with i486. see >>> http://asm.inightmare.org/opcodelst/index.php?op=XADD >> It's very strange. >> >> I write : >> >> __asm{ >> mov eax, 16 >> mov ebx, b >> xadd [ebx], eax >> } >> >> The code can be runed by VC. >> >> -- >> Best Regards, >> PcX > Yes, eax should -1 and not 16 > > Regards, > Kai Yea... But my cpu know "xadd". ps:"-1" can also run.. -- Best Regards, PcX |