FEX/unittests/ASM/Primary/Primary_87_3.asm
Stefanos Kornilios Mitsis Poiitidis 0736b13800 Tests: Add xchg 32 and 64 bit
2020-08-20 10:32:38 +03:00

25 lines
356 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434445464748",
"RBX": "0xFFFFFFFFFFFFFFFF"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov rax, -1
xchg qword [rdx + 8 * 0], rax
mov rbx, [rdx + 8 * 0]
hlt