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

56 lines
661 B
NASM
Raw Normal View History

bits 64
global _start
section .text
_start:
nop
clc
mov al, 0xAA
sar al, 1
; CF = 0
nop
clc
mov al, 0xAA
sar al, 7
; CF = 0
nop
clc
mov al, 0xAA
sar al, 8
; CF = 1
nop
clc
mov al, 0xAA
sar al, 30
; CF = 1
nop
clc
mov al, 0x77
sar al, 1
; CF = 1
nop
clc
mov al, 0x77
sar al, 7
; CF = 1
nop
clc
mov al, 0x77
sar al, 8
; CF = 0
nop
clc
mov al, 0x77
sar al, 30
; CF = 0
int3