1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-22 15:38:07 +00:00
bddisasm/bdshemu_test/x86/basic/test_64_sbb01.asm
2024-09-16 12:47:03 +03:00

51 lines
606 B
NASM

bits 64
global _start
section .text
_start:
nop
stc
mov al, 0xFF
sbb al, 0xFF
; CF = 1
nop
stc
mov al, 0xFF
sbb al, 0
; CF = 0
nop
stc
mov al, 0
sbb al, 0xFF
; CF = 1
nop
stc
mov al, 0xFF
sbb al, 0x60
; CF = 0
nop
stc
mov al, 0x60
sbb al, 0xFF
; CF = 1
nop
clc
mov al, 0x20
sbb al, 0x20
; CF = 0
nop
stc
mov al, 0x20
sbb al, 0x20
; CF = 1
int3