flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > underscore separaated literals

Author
Thread Post new topic Reply to topic
ProMiNick



Joined: 24 Mar 2012
Posts: 804
Location: Russian Federation, Sochi
ProMiNick 14 Apr 2020, 17:55
Tomasz, can thou explain how this work:
Code:
macro menuitem string,id,resinfo,status,type
 { du string,0 }

menuitem '&New' _ 'Ctrl+N'    

this part of menuitem macro a bit confuse me. It dosn`t processed when standalone, but when it in resource section in macro menu all is worked. But I don`t see things that override du behavior.

_________________
I don`t like to refer by "you" to one person.
My soul requires acronim "thou" instead.
Post 14 Apr 2020, 17:55
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: 20451
Location: In your JS exploiting you and your system
revolution 14 Apr 2020, 17:58
The underscore is an equ earlier in the code.

It saves you from having to put angle brackets around macro parameters.


Last edited by revolution on 14 Apr 2020, 18:20; edited 1 time in total
Post 14 Apr 2020, 17:58
View user's profile Send private message Visit poster's website Reply with quote
ProMiNick



Joined: 24 Mar 2012
Posts: 804
Location: Russian Federation, Sochi
ProMiNick 14 Apr 2020, 18:17
_ equ ,09h,

yes, I made stupid post(
Post 14 Apr 2020, 18:17
View user's profile Send private message Send e-mail Reply with quote
guignol



Joined: 06 Dec 2008
Posts: 763
guignol 15 Apr 2020, 07:49
that's because you're not taoist
Post 15 Apr 2020, 07: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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.