mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-01-08 22:52:51 +00:00
36 lines
564 B
NASM
36 lines
564 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RAX": "0x4142434445468348"
|
|
},
|
|
"MemoryRegions": {
|
|
"0x100000000": "4096"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rdx, 0xe0000000
|
|
|
|
mov rax, 0x4142434445464748
|
|
mov [rdx + 8 * 0], rax
|
|
mov rax, 0x5152535455565758
|
|
mov [rdx + 8 * 1], rax
|
|
|
|
cmp byte [rdx + 8 * 0 + 1], 0x61
|
|
; cmp = 0x47 - 0x61 = 0xE6
|
|
; 0: CF - 00000001
|
|
; 1: - 00000010
|
|
; 2: PF - 00000000
|
|
; 3: 0 - 00000000
|
|
; 4: AF - 00000000
|
|
; 5: 0 - 00000000
|
|
; 6: ZF - 00000000
|
|
; 7: SF - 10000000
|
|
; ================
|
|
; 10000011
|
|
; OF: LAHF doesn't load - 0
|
|
mov rax, [rdx + 8 * 0]
|
|
lahf
|
|
|
|
hlt
|