flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Growing list of params

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd 05 Nov 2010, 07:17
After finally sitting down with this problem again and reviewing your code, i realized that match can simply dereference a list into an actual comma separated list.

Code:
list equ kitty, cat


macro temp [a] { a db 0 }

match meow, list {
        temp meow
}

dq cat    


Embarassed The result makes me feel very, very silly.
Post 05 Nov 2010, 07:17
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20571
Location: In your JS exploiting you and your system
revolution 05 Nov 2010, 07:39
cvtss2sd wrote:
After finally sitting down with this problem again and reviewing your code, i realized that match can simply dereference a list into an actual comma separated list.

Code:
list equ kitty, cat


macro temp [a] { a db 0 }

match meow, list {
   temp meow
}

dq cat    


Embarassed The result makes me feel very, very silly.
Hehe, looks just like this, but with the names changed:

http://board.flatassembler.net/topic.php?p=119960#119960
Post 05 Nov 2010, 07:39
View user's profile Send private message Visit poster's website Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd 07 Nov 2010, 05:08
It is, which is what's embarrassing. My attempt at a solution after i read what you said was the problem i had to get around. My puny mind didn't grasp the concept that match essentially de-equates a statement.
Post 07 Nov 2010, 05:08
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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.