1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
bits 32 xacquire lock add [esi],eax xacquire xchg [eax],ebx xrelease lock mov [eax],ecx xrelease mov [eax],ecx xacquire add ecx,[eax] xrelease mov [eax],ecx ; Different opcodes! mov [sym],eax xrelease mov [sym],eax xacquire mov [sym],eax mov [sym],al xrelease mov [sym],al xacquire mov [sym],al sym dd 0