flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > concatenate two strings outside of a macro

Author
Thread Post new topic Reply to topic
yoshimitsu



Joined: 07 Jul 2011
Posts: 96
yoshimitsu 03 Oct 2012, 13:49
man, I didn't use FASM for 8 months, I was pretty into it as I used it very often but now it's all kinda gone..

anyways, I want something like
path equ 'res/'
file path#'icon.ico'


actually it's for
icon main_icon,icon_data,path#'icon.ico'
Post 03 Oct 2012, 13:49
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 03 Oct 2012, 14:13
Not sure if this is the easier way to do it but seems to work:
Code:
path equ 'res/'

match path, path{
file path#'icon.ico'
}    
Post 03 Oct 2012, 14:13
View user's profile Send private message Reply with quote
yoshimitsu



Joined: 07 Jul 2011
Posts: 96
yoshimitsu 03 Oct 2012, 14:24
yeah, I reread that # is only for usage inside a macro which is why I'd need to wrap all my resource inclusion instructions in a macro the way your example does it, thanks. But I wondered if there's a one-liner which concats such string constants like on the fly. man, I really need to take a big look into FASM's manuals again..
Post 03 Oct 2012, 14:24
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.