flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Macro - convert to string

Author
Thread Post new topic Reply to topic
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 21 Jan 2010, 19:37
hi,

sorry to ask this question, Embarassed
I looked for a solution, but without result !

macro X
{
local toto
toto = 12
....
}

how to convert "toto" in a string ?
I feel I'm going to get chewed out here Confused
thank you.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 21 Jan 2010, 19:37
View user's profile Send private message Send e-mail Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20430
Location: In your JS exploiting you and your system
revolution 21 Jan 2010, 19:51
Perhaps this would better fit in the Macroinstructions section?

Do you want the toto string to be "toto" or "12"?

If you want "12" then you can't do it with assemble time variables. You would have to use preprocessor time equates mixed with match and the back quote (`) to complete the conversion. See this recent post to see how it can work.
Post 21 Jan 2010, 19:51
View user's profile Send private message Visit poster's website Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji 21 Jan 2010, 19:59
yes, I try to get "12"

display ... --> 12

it is not possible ? it is a pity ! Confused

(thank you for the link, I'll watch it !)
thank you revolution.

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 21 Jan 2010, 19:59
View user's profile Send private message Send e-mail 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.