flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Main > [fasmg] Inline concatenation of strings

Author
Thread Post new topic Reply to topic
VEG



Joined: 06 Feb 2013
Posts: 51
Location: Minsk, Belarus
[fasmg] Inline concatenation of strings
In FASM1 is was possible to write:

Code:
PROD_REVISION         fix "0335"
PROD_DAY              fix "04"
PROD_MONTH            fix "05"
PROD_YEAR             fix "2017"

...

rsrc_versioninfo rsrc_versioninfo_dataVFT_APP, \
    'FileVersion',       PROD_YEAR # '.' # PROD_MONTH # '.' # PROD_DAY # '.' # PROD_REVISION, \
    ...


In FASMG, I've replaced "fix" to "equ", but it seems that inline concatenation of strings isn't allowed anymore, and I have to write something like this:

Code:
PROD_REVISION         equ "0335"
PROD_DAY              equ "04"
PROD_MONTH            equ "05"
PROD_YEAR             equ "2017"

...

virtual at 0
    db PROD_YEAR'.'PROD_MONTH'.'PROD_DAY'.'PROD_REVISION
    load FILE_VERSION:$ from 0
end virtual

rsrc_versioninfo rsrc_versioninfo_dataVFT_APP, \
    'FileVersion',       FILE_VERSION, \
    ...

Is it right that there is no inline string concatenation anymore?
Post 10 May 2017, 13:22
View user's profile Send private message Visit poster's website Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 468
Location: Belarus
Post 10 May 2017, 13:49
View user's profile Send private message 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.