1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2025-01-07 22:00:54 +00:00
bddisasm/bdshemu_test/x86/basic/test_64_sbb01.asm

51 lines
606 B
NASM
Raw Normal View History

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