flat assembler
Message board for the users of flat assembler.

Index > Main > [fasmg] Inline concatenation of strings

Author
Thread Post new topic Reply to topic
VEG



Joined: 06 Feb 2013
Posts: 80
Location: Minsk, Belarus
VEG 10 May 2017, 13:22
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_data, VFT_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_data, VFT_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: 501
Location: Belarus
zhak 10 May 2017, 13:49
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


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

Website powered by rwasa.