flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > [solved] How to display a string parameter?

Author
Thread Post new topic Reply to topic
sts-q



Joined: 29 Nov 2018
Posts: 57
sts-q 09 Oct 2022, 11:58
What is the trick to display a string parameter, the label name in this case?

Code:
                                                                        
macro def name {                                                                
        display ??? name ???                    ; <<===  ???                    
        display ' is defined here! ',10,13                                      
    name :                                                                     
}                                                                               
                                                                                
def otto
    


I reckon this is explained somewhere?
Long time no read!
Cool Greetings!
Post 09 Oct 2022, 11:58
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 1145
Location: Russia
macomics 09 Oct 2022, 12:06
Code:
macro def name {                                                                
        display `name, ' is defined here! ',10,13                                      
    name :                                                                     
}                                                                               
                                                                                
def otto    
Post 09 Oct 2022, 12:06
View user's profile Send private message Reply with quote
sts-q



Joined: 29 Nov 2018
Posts: 57
sts-q 09 Oct 2022, 12:17
Thank you macomics, it works!

Very Happy
Post 09 Oct 2022, 12:17
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.