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_sar01.asm
2024-09-16 12:47:03 +03:00

56 lines
661 B
NASM

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