org directive
SMarF at gmx.de
SMarF at gmx.de
Wed Jul 5 02:59:52 PDT 2006
Thanks again, but my problem is exactly controverse to the things in these chapters. I do like to have the NASM-org-functionality, but this does not work (I really don't want to fill the file like in MASM, I want to reset the current file origin: "NASM’s ORG does exactly what the directive says: origin. Its sole function is to specify one offset which is added to all internal address references within the section").
To re-phrase the problem: instead of
dw 0x1234
dummymark:
nop
mymark:
mov dx,mymark-dummymark
I would like to write
dw 0x1234
ORG 0
nop
mymark
mov dx,mymark
which should be the same I think, but it isn't.
Regards - Stefan
-------- Original-Nachricht --------
Datum: Wed, 05 Jul 2006 10:54:42 +0200
Von: Robert Riebisch <rr at bttr-software.de>
An: yasm-devel at tortall.net
Betreff: Re: org directive
> SMarF at gmx.de wrote:
>
> > Thank you for this hint. Even nasm sets the offset of a variable not
> > to zero even after ORG 0 - isn't this a bug? This is my test-code:
>
> It's not a bug. Please read sections 6.1.1 and 10.1.3 from
> doc\nasmdoc.txt carefully!
>
> Robert Riebisch
> --
> BTTR Software
> http://www.bttr-software.de/
> _______________________________________________
> yasm-devel mailing list
> yasm-devel at tortall.net
> http://cvs.tortall.net/mailman/listinfo/yasm-devel
--
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
More information about the yasm-devel
mailing list