1 2 3 4 5 6 7 8 9
BITS 16 section .text foo: cmpxchg al, bh xadd [eax], bh cmpxchg ax, bx xadd [eax], bx cmpxchg eax, ebx xadd [eax], ebx