mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
472a7c1d17
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>
10 lines
85 B
NASM
10 lines
85 B
NASM
bits 64
|
|
|
|
extern bar
|
|
|
|
section .data
|
|
foo: dd bar
|
|
dd foo - $
|
|
; dd foo*2
|
|
dd bar - $
|