flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > New FASM feature. :)

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 30 Sep 2003, 17:24
OK, because of some problems when I write modified version of stdcall library, I check the FASM sources and come to some solution. Here is a package containing modified source file (preproce.inc), precompiled fasmw.exe and little example, how new feature works. Read "readme.inc" file for details.
Please play a little with this version and post some opinions. IMHO, there are bugs, so, bug reports are welcome too. Very Happy

Regards.

[EDIT]OK, now I can attach the file here:[/EDIT]
[EDIT] Attachement removed. Now this feature is standard in Fresh and probably will be standard in FASM 1.50[/EDIT]


Last edited by JohnFound on 06 Nov 2003, 06:56; edited 2 times in total
Post 30 Sep 2003, 17:24
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica 30 Sep 2003, 17:44
I take it you too experience attechment errors / debug mode errors... (No attached file)

_________________
... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself.
- Bradley Kuhn
Post 30 Sep 2003, 17:44
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 30 Sep 2003, 17:59
Post 30 Sep 2003, 17:59
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 30 Sep 2003, 18:41
At first glance, very good! Wink Keep up the good work!
Post 30 Sep 2003, 18:41
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 01 Oct 2003, 13:41
Tommy wrote:
At first glance, very good! Wink Keep up the good work!


Yea, but, what you think: Is it good idea to make Fresh this way, even with risk for using non standard FASM compiler?
Post 01 Oct 2003, 13:41
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 01 Oct 2003, 13:49
In my opinion, I think that Tomasz should (of course he decides himself, but I hope he do agree... Wink) include this feature to the official release of FASM, and then it's no problem, is it? Wink
Post 01 Oct 2003, 13:49
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 01 Oct 2003, 13:56
OK, let's wait a little. Maybe you are right. (IMHO: My implementation is pretty raw and buggy, so maybe Privalov should rewrite it.)
Post 01 Oct 2003, 13:56
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 01 Oct 2003, 14:22
Smile Well, I've not studied the sources so much, so I can't tell you my opinion about that, but I feel exactly the same when I try to add something into Tomasz' sources - he codes very well, while I do it buggy etc. Sad... Anyway, keep up the good work (once again Wink)!

So long!
Tommy
Post 01 Oct 2003, 14:22
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 01 Oct 2003, 14:39
Yeah, it can be done a bit better, I'll rewrite it myself, but first we need to agree: is ^ character a good choice for such operator, or has somebody some better suggestion?
Post 01 Oct 2003, 14:39
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 01 Oct 2003, 14:51
So, "^" is not used symbol, this was the only reason I use it. There are not many free chars in FASM syntax. On other hand, maybe some word function will be better choice. Something like: "name label".

BTW: My implementation works only inside macroses, and if the label is not argument, it not works properly too. It will be good if it works in whole source.

Regards.
Post 01 Oct 2003, 14:51
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 01 Oct 2003, 15:07
IMHO it should be implemented with '#' character (like in c) but unfortunatelly it is reserved for concating symbols... (in c concating is done by ## operator) This can cause some problems to programmers who are moving form c to fasm (I wanted to use # to change a symbol into string and I didn't know why it doesn't work... then I realized that there is a thing like fasm maual Very HappyVery Happy )

reagrds
Post 01 Oct 2003, 15:07
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica 01 Oct 2003, 15:09
^ is a good choice, to me it somehow says "lift the label name to a string" (ie make a string of the label name)

I don't think # is good for this, since it's already in use, it would break compabillity if it would do this:
start#varn --> start"varn"
instead of as now:
start#varn --> startvarn

_________________
... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself.
- Bradley Kuhn
Post 01 Oct 2003, 15:09
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 01 Oct 2003, 15:14
OK, so it will be ^. I prefer to implement it inside the "process_concatenations" procedure, so it will work only inside macros, as # does. Anyway, it doesn't make any sense to use such operator outside macros (this is the same situation as with the # operator).
Post 01 Oct 2003, 15:14
View user's profile Send private message Visit poster's website Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 01 Oct 2003, 15:15
I agree with you scientica, ^ seems to be a good choice! Wink
Post 01 Oct 2003, 15:15
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard 01 Oct 2003, 15:19
Well... I didn't say that the meaning # should be shanged, I just shown my opinion Very Happy. IMO ^ is good too.
Post 01 Oct 2003, 15:19
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 01 Oct 2003, 16:31
I have another proposal: the ` character. I like it even more. What do you think about it?
Post 01 Oct 2003, 16:31
View user's profile Send private message Visit poster's website Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 01 Oct 2003, 17:36
Yeah! I go for the ` character.... Wink
Post 01 Oct 2003, 17:36
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 01 Oct 2003, 18:03
Privalov wrote:
I have another proposal: the ` character. I like it even more. What do you think about it?


Of course, you are the master, but ` char is too similar to single quote ' , especially depending from the font you are using. Even ? is better. Wink
Post 01 Oct 2003, 18:03
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8367
Location: Kraków, Poland
Tomasz Grysztar 01 Oct 2003, 18:21
With the syntax highlighting it won't be hard to distinguish them. And I like it exactly because it is so similar to the single quote.
Post 01 Oct 2003, 18:21
View user's profile Send private message Visit poster's website Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica 01 Oct 2003, 18:32
I like the ^ better, but it's your choice. The ´ is as mentioned (IMO: too) easily confused with ', esp with some fonts. Plus that well see beginners/users mixing ' and ´ (and possibly `). I vote for the ^way.
But still you (as always) have a point, ´ is in a way logical, but I stay with my vote for ^. Smile

_________________
... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself.
- Bradley Kuhn
Post 01 Oct 2003, 18:32
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:  
Goto page 1, 2  Next

< 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.