v86/tests/nasm/cmpxchg8b.asm
2020-12-31 19:14:32 -06:00

22 lines
296 B
NASM

global _start
section .data
%include "header.inc"
mov eax, 123456789
mov edx, 987654321
mov dword [esp], 123456789
mov dword [esp+4], 987654321
cmpxchg8b [esp]
push eax
push ecx
push ebx
push edx
pushf
and dword [esp], 8ffh
%include "footer.inc"