flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > another request !

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 05 Dec 2007, 02:29
is it possible to copy the content of a label to an other label in a future fasm reliese?
Code:

lbl1 dd [lbl2]
....
lbl2 dd @f-$-4
...
...
...
@@:
    

Very Happy
this will be a VERY usefull feature.

Tomasz, please forgive me for my many boring requests. Wink
but FASM is my favourite meta program.
i use it 12 hours/day everydays.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

your last realese, fasm 1.67.24 is buggy
it doesn't report the right missing label Sad
Post 05 Dec 2007, 02:29
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 05 Dec 2007, 02:35
you mean something like this?
Code:
a=b
label a at b
    
Post 05 Dec 2007, 02:35
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 05 Dec 2007, 02:38
no, just a copy of the effective content of a byte/word/dword to an other location. during compile

like an equate "byte" that can be used during execution, and not only at compilation time
Post 05 Dec 2007, 02:38
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 05 Dec 2007, 03:05
2 "administrative" things first:

1. First ask IF feature is present before filing feature request
2. Use meaningful names for threads, "another request" can be anything.

As for copying byte at compile time, it is something like this: (not sure, i didn't use "load" for some time, check manual)
Code:
load a from b
db a
    

note that it only works within same address space ("org", "virtual", etc..)
Post 05 Dec 2007, 03:05
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 05 Dec 2007, 03:12
ok, but all i want is to bring the possibility to make this in fact:
Code:
org 24
label0 dd [label1]
org 1010
label1 db 0,1,2,3
    


the dword at label0 will simply become 3020100h, it looks like the previous request, some global transparent compile addressing modes.
Post 05 Dec 2007, 03:12
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 05 Dec 2007, 03:15
this would allow lots of funny cases, like this:
Code:
label0 dd [label0]
    

anyway, it is on tomasz to explain if / why not is this possible to do.
Post 05 Dec 2007, 03:15
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4330
Location: Now
edfed 05 Dec 2007, 03:20
normally, this must report as an error.

fasmw 2.0 ;not only for ms windows
error: infinite loop reference

label0 dd [label0]

Wink
Post 05 Dec 2007, 03:20
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.