mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-07 14:10:23 +00:00
d8e5495780
These were confirmed by host runner
52 lines
697 B
NASM
52 lines
697 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x8300",
|
|
"RCX": "0x9",
|
|
"RDX": "0x0",
|
|
"RDI": "0xE000000C",
|
|
"RSI": "0xE000001C"
|
|
},
|
|
"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, 14
|
|
|
|
lea r15, [rdx + 8 * 2]
|
|
lea r14, [rel .StringTwo]
|
|
copy r15, r14, 14
|
|
|
|
lea rdi, [rdx + 8 * 0 + 13]
|
|
lea rsi, [rdx + 8 * 2 + 13]
|
|
|
|
std
|
|
mov rcx, 10 ; Lower String length
|
|
repe cmpsb ; rdi cmp rsi
|
|
mov rax, 0
|
|
lahf
|
|
|
|
mov rdx, 0
|
|
sete dl
|
|
|
|
hlt
|
|
|
|
.StringOne: db "\0\0\0\0TestString"
|
|
.StringTwo: db "\0TestUnmatched"
|