FEX/unittests/ASM/Primary/Primary_F5.asm
Ryan Houdek ee410cf1be Implements Primary table unit tests
Not full coverage, skips the string ops and doesn't confirm that flag
setting is correct. Those are forthcoming
2020-03-09 18:15:43 -07:00

22 lines
186 B
NASM

%ifdef CONFIG
{
"RegData": {
"RAX": "0x1"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
; Set CF to known value
clc
cmc
; Get CF
sbb rax, rax
and rax, 1
hlt