1
0

cmpxchg.asm 432 B

1234567891011121314151617181920212223242526272829303132
  1. global _start
  2. section .data
  3. %include "header.inc"
  4. mov eax, 123456789
  5. mov ebx, 123456789
  6. mov edx, 123456789
  7. cmpxchg edx, ebx
  8. push eax
  9. push edx
  10. push ebx
  11. pushf
  12. and dword [esp], 8ffh
  13. cmpxchg ax, bx
  14. push eax
  15. push edx
  16. push ebx
  17. pushf
  18. and dword [esp], 8ffh
  19. cmpxchg al, bh
  20. push eax
  21. push edx
  22. push ebx
  23. pushf
  24. and dword [esp], 8ffh
  25. %include "footer.inc"