iw4x-client/deps/udis86/tests/asm/32/sext.asm
2024-03-07 05:13:50 -05:00

24 lines
400 B
NASM

[bits 32]
;; test sign extension
adc ax, -100
and edx, -3
or dx, -1000
or dx, -1
add edx, -1000
imul dx, bx, -100
imul edx, ebx, -1
imul edx, ebx, -128
imul edx, ebx, -129
imul ax, bx, -129
sub dword [eax], -1
sub word [eax], -2000
test eax, 1
test eax, -1
push byte -1
push word -1
push dword -1000
push word -1000