Author Topic: Label OFFSET  (Read 16884 times)

Alfonso V

  • Guest
Label OFFSET
« 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

Alfonso V

  • Guest
Re: Label OFFSET
« Reply #1 on: November 29, 2004, 08:49:16 AM »
Excuse me, erase "section .bss" from this code

:-)