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

38 lines
557 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x0600"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
test byte [rdx + 8 * 0 + 1], 0x61
; test = 0x47 & 0x61 = 0x41
; 0: CF - 00000000
; 1: - 00000010
; 2: PF - 00000100
; 3: 0 - 00000000
; 4: AF - 00000000 <- Undefined
; 5: 0 - 00000000
; 6: ZF - 00000000
; 7: SF - 00000000
; ================
; 00000110
; OF: LAHF doesn't load - 0
mov rax, 0
lahf
hlt