NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: Alfonso V on November 29, 2004, 08:45:10 AM
-
Is there any way to get the label offset into a constant?.
I have next code:
ORG 100h
section .text
[...]
section .data
Array:
DW 0
DW 4000
DW 2400
DW -100
section .bss
%define L Array + 2 ; <- ERROR
%rep 3
DW L
%define L L + 2
%endrep
Nasm doesn't allow to use "Array" into "%define" directive, how can i do this?
Regards
alfonso
-
Excuse me, erase "section .bss" from this code
:-)