flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > # in ''

Author
Thread Post new topic Reply to topic
fanxes



Joined: 21 Jul 2009
Posts: 2
fanxes 21 Jul 2009, 15:54

I want some code like this::

public isr1 as '_isr1'
public isr2 as '_isr2'
public isr3 as '_isr3'
public isr4 as '_isr4'

so I need a macro like::

macro cpublic name
{
public name as '_#name'
}

but it not work, when # in ' ', It do nothing
Post 21 Jul 2009, 15:54
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 21 Jul 2009, 16:40
try this:
Code:
macro cpublic name
{
public name as '_'#`name
}

cpublic isr1
cpublic isr2
cpublic isr3
cpublic isr4

    


Can you tell us more about what are you trying to achieve? You can't do much with it because the code won't assemble. Maybe it only preprocesses.
Post 21 Jul 2009, 16:40
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
fanxes



Joined: 21 Jul 2009
Posts: 2
fanxes 22 Jul 2009, 00:21
Thanks

The official document not explain marco so comprehensive.
Post 22 Jul 2009, 00:21
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.