flat assembler
Message board for the users of flat assembler.

Index > Main > ORG Directive Problems

Author
Thread Post new topic Reply to topic
brucew



Joined: 12 May 2004
Posts: 1
Location: Nevada
brucew 12 May 2004, 17:41
I am an experienced MASM 5.0 programmer, but with FASM 1.52 operating under Windows XP Pro, I cannot get the "ORG" (or equivalent "$=") directive to do anything. I am using "format binary" output. What is the proper usage for the "ORG" directive?
Post 12 May 2004, 17:41
View user's profile Send private message Reply with quote
bogdanontanu



Joined: 07 Jan 2004
Posts: 403
Location: Sol. Earth. Europe. Romania. Bucuresti
bogdanontanu 12 May 2004, 19:36
Read the Faq?

Well in FASm the ORG directive is not going to jump you in the output file. Instead it will just setup the address reference counter. If you also want to jump arround (forward) in output file you have to use a form of "db" aka rb (reserve byte) and do some "simple" arithmetics for determining how much...

Why is this?

Well a decission of the creator i guess.

Since FASM is able to directly output binary without a linker imagine what will happen if ORG 07C00h would jump in output location... --> you will get a 7C00h od zeroes or whatever in front of your code Wink


MASM and TASM and other assemblers use the linker to fix this Wink

IMHO in SOl_ASM i will use another directive for this issue Wink

_________________
"Any intelligent fool can make things bigger,
more complex, and more violent.
It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."
Post 12 May 2004, 19:36
View user's profile Send private message Visit poster's website Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 12 May 2004, 19:56
Hi bogdanontanu!

How is SOL_ASM going? Any demos available?

/Tommy
Post 12 May 2004, 19:56
View user's profile Send private message Visit poster's website Reply with quote
bogdanontanu



Joined: 07 Jan 2004
Posts: 403
Location: Sol. Earth. Europe. Romania. Bucuresti
bogdanontanu 12 May 2004, 21:23
SOL_ASM is going just fine, but as all of my projects pretty slow in development Rolling Eyes

The slowness is because i have to work in other areas to make a living and i can only allocate small ammounts of time for other projects

I guess there will be a demo of SOL_ASM pretty soon
1-2weeks up to 1 month, keep me hot and it might be even faster Razz

_________________
"Any intelligent fool can make things bigger,
more complex, and more violent.
It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."


Last edited by bogdanontanu on 13 May 2004, 14:25; edited 1 time in total
Post 12 May 2004, 21:23
View user's profile Send private message Visit poster's website Reply with quote
bogdanontanu



Joined: 07 Jan 2004
Posts: 403
Location: Sol. Earth. Europe. Romania. Bucuresti
bogdanontanu 12 May 2004, 21:44
If anybody wants a demo in its actuall state (for testing/bugs/help/etc)...

Just let me know

_________________
"Any intelligent fool can make things bigger,
more complex, and more violent.
It takes a touch of genius -- and a lot of courage --
to move in the opposite direction."
Post 12 May 2004, 21:44
View user's profile Send private message Visit poster's website Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 13 May 2004, 08:50
I would like to test it... Wink
Post 13 May 2004, 08:50
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.