0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-07-24 10:25:42 -04:00
nasm/travis/test/imm.asm
Cyrill Gorcunov 4431776fc0 travis: add imm
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2020-10-15 22:12:02 +03:00

27 lines
432 B
NASM

bits 64
mov eax,1
mov eax,-1
mov eax,0x11111111
mov ecx,2
add ecx,-6
add ecx,strict dword -6
add ecx,4
add ecx,strict dword 4
add ecx,10000
xor ecx,0xffffffff
xor ecx,dword 0xffffffff
xor ecx,strict dword 0xffffffff
xor ecx,-1
xor ecx,dword -1
xor ecx,strict dword -1
add edx,byte ($-$$)
mov rax, 0xfafafafaafafafaf
%ifnidn __OUTPUT_FORMAT__,bin
extern foo, bar
add eax,byte foo
add edx,byte (bar-$$)
%endif