ref: a653aac016c4f84bfaccd9b086a2736e3d7d79a4 dir: /lib9/lock-Nt-386.c/
#include "lib9.h" int _tas(int *la) { int v; _asm { mov eax, la mov ebx, 1 xchg ebx, [eax] mov v, ebx } return v; }