flat assembler
Message board for the users of flat assembler.

Index > Main > Labels

Author
Thread Post new topic Reply to topic
avcaballero



Joined: 02 Feb 2004
Posts: 192
Location: Madrid - Spain
avcaballero
Hi there

In MASM I can do something like this

MOV BX, OFFSET Position + 2
[...]
Position:

Can I do something similar with FASM? Maybe using macroes?

Thank you
Post 07 Jul 2005, 08:59
View user's profile Send private message Visit poster's website Reply with quote
avcaballero



Joined: 02 Feb 2004
Posts: 192
Location: Madrid - Spain
avcaballero
I'm sorry,

Too fast typing, I have just seen i can do it with:

MOV BX, Position + 2
[...]
Position:

Razz
Post 07 Jul 2005, 09:14
View user's profile Send private message Visit poster's website Reply with quote
THEWizardGenius



Joined: 14 Jan 2005
Posts: 382
Location: California, USA
THEWizardGenius
If you want to do be more "MASM-compliant" you can use the code
Code:
OFFSET equ 
    

at the beginning of your program, then the MASM code will work just fine.
Post 07 Jul 2005, 18:19
View user's profile Send private message AIM Address 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-2020, Tomasz Grysztar.

Powered by rwasa.