mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-08 15:47:10 +00:00
50 lines
631 B
NASM
50 lines
631 B
NASM
%ifdef CONFIG
|
|
{
|
|
"RegData": {
|
|
"RBX": "0x8000",
|
|
"RCX": "0x0000",
|
|
"RDX": "0xC000",
|
|
"RSI": "0x4000",
|
|
"R8": "0x1",
|
|
"R9": "0x1",
|
|
"R10": "0x0",
|
|
"R11": "0x0"
|
|
}
|
|
}
|
|
%endif
|
|
|
|
mov rbx, 0x0001
|
|
mov rcx, 0x0001
|
|
mov rdx, 0x8000
|
|
mov rsi, 0x8000
|
|
|
|
stc
|
|
rcr bx, 1
|
|
lahf
|
|
mov r8w, ax
|
|
shr r8, 8
|
|
and r8, 1 ; We only care about carry flag here
|
|
|
|
clc
|
|
rcr cx, 1
|
|
lahf
|
|
mov r9w, ax
|
|
shr r9, 8
|
|
and r9, 1 ; We only care about carry flag here
|
|
|
|
stc
|
|
rcr dx, 1
|
|
lahf
|
|
mov r10w, ax
|
|
shr r10, 8
|
|
and r10, 1 ; We only care about carry flag here
|
|
|
|
clc
|
|
rcr si, 1
|
|
lahf
|
|
mov r11w, ax
|
|
shr r11, 8
|
|
and r11, 1 ; We only care about carry flag here
|
|
|
|
hlt
|