mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
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 - $
|