FEX/unittests/ASM/PrimaryGroup/1_81_01.asm

39 lines
700 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434465664748",
"RBX": "0x515253547576777C",
"RCX": "0x616263646566676C",
"RDX": "0xFFFFFFFFFFFFFF68"
},
"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, 0x6162636465666768
mov [rdx + 8 * 2], rax
mov rax, 0x6162636465666768
mov [rdx + 8 * 3], rax
or word [rdx + 8 * 0 + 2], 0x6162
or dword [rdx + 8 * 1 + 0], 0x61626364
or qword [rdx + 8 * 2 + 0], 0x61626364
or qword [rdx + 8 * 3 + 0], -256
mov rax, [rdx + 8 * 0]
mov rbx, [rdx + 8 * 1]
mov rcx, [rdx + 8 * 2]
mov rdx, [rdx + 8 * 3]
hlt