FEX/unittests/ASM/PrimaryGroup/2_D3_07.asm
2020-03-07 21:54:25 -08:00

33 lines
554 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142434411514748",
"RBX": "0x51525354155595D6",
"RCX": "0x00000000185898D9"
},
"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 cl, 0x62
sar word [rdx + 8 * 0 + 2], cl
sar dword [rdx + 8 * 1 + 0], cl
sar qword [rdx + 8 * 2 + 0], cl
mov rax, [rdx + 8 * 0]
mov rbx, [rdx + 8 * 1]
mov rcx, [rdx + 8 * 2]
hlt