1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-29 10:58:06 +00:00
bddisasm/bdshemu_test/basic/test_64_flags2.asm

30 lines
691 B
NASM
Raw Normal View History

bits 64
mov rax, 1
mov rcx, 2
sub rax, rcx ; cy
mov rax, 2
mov rcx, 1
sub rax, rcx ; nc
mov rax, 0xffffffffffffffff
mov rcx, 1
sub rax, rcx ; nc
mov rax, 1
mov rcx, 0xffffffffffffffff
sub rax, rcx ; cy
mov rax, 0x7fffffffffffffff
mov rcx, 0x8000000000000000
sub rax, rcx ; cy
mov rax, 0x8000000000000000
mov rcx, 0x7fffffffffffffff
sub rax, rcx ; nc
mov rax, 1
mov rcx, 2
add rcx, rcx ; nc
mov rax, 0xffffffffffffffff
mov rcx, 2
add rax, rcx ; cy
retn