nasm/test/imm.asm
H. Peter Anvin 472a7c1d17 Allow relative references to external symbols in data
Allow constructs like:

      dd foo - $

... where foo is an external symbol.  Currently this is only
implemented for extops, i.e. dx opcodes.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2016-10-31 08:44:25 -07:00

11 lines
151 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