mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-07 14:10:23 +00:00
d9bde8cfcf
Isn't all encompassing, we're still missing REPNE tests for the larger sizes
52 lines
679 B
NASM
52 lines
679 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x4600",
|
|
"RCX": "0x3",
|
|
"RDX": "0x1",
|
|
"RDI": "0xE0000007",
|
|
"RSI": "0xE0000017"
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
%macro copy 3
|
|
; Dest, Src, Size
|
|
mov rdi, %1
|
|
mov rsi, %2
|
|
mov rcx, %3
|
|
|
|
cld
|
|
rep movsb
|
|
%endmacro
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
lea r15, [rdx + 8 * 0]
|
|
lea r14, [rel .StringOne]
|
|
copy r15, r14, 11
|
|
|
|
lea r15, [rdx + 8 * 2]
|
|
lea r14, [rel .StringTwo]
|
|
copy r15, r14, 11
|
|
|
|
lea rdi, [rdx + 8 * 0]
|
|
lea rsi, [rdx + 8 * 2]
|
|
|
|
cld
|
|
mov rcx, 10 ; Lower String length
|
|
repne cmpsb ; rdi cmp rsi
|
|
mov rax, 0
|
|
lahf
|
|
|
|
mov rdx, 0
|
|
sete dl
|
|
|
|
hlt
|
|
|
|
.StringOne: db "StringTest\0"
|
|
.StringTwo: db "UnmatcTest\0"
|